int recFunc(int num){ if (num >= 10) return 10; else return num * recFunc(num + 1);}
Consider the accompanying definition of a recursive function. What is the output of the following statement?cout << recFunc(10) << endl;
A. 10
B. 11
C. 100
D. 110
Answer: A
Computer Science & Information Technology
You might also like to view...
Which of the following is not true about validation text?
A) It provides feedback on what was wrong with the data. B) It displays anytime a field is entered to aid in data entry. C) It is considered a custom error message. D) It displays when a data violation has occurred.
Computer Science & Information Technology
Document properties are displayed on the ________ page of the Backstage view
A) Print B) Info C) Share D) Help
Computer Science & Information Technology
When information (such as a title) spans more than one column in a table, those cells should be ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
____________________ perform arithmetic operations on selected records in a crosstab query.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology