Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Problem Solving with C++ Study Set 1
Quiz 4: Procedural Abstraction and Functions That Return a Value
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 41
Multiple Choice
What is the value of i after the following function call? //function definition Int doSomethingint value) { Value = 35; Return value; Value = 13 } //fragment of main program Int i=0; Cout << doSomethingi) ;
Question 42
Multiple Choice
Using functions in a program is known as
Question 43
Multiple Choice
What is the output of the following function call? //function body Int factorialint n) { Int product=0; Whilen > 0) { Product = product * n; N-; } Return product; } //function call Cout << factorial4) ;
Question 44
Multiple Choice
If you have the following variable declaration in your program, Const int SIZE=34; Then which of the following statements are legal?
Question 45
Multiple Choice
Which of the following functions is a properly overloaded function of the following? Int doSomethingint first, float second) ;
Question 46
Multiple Choice
In the function declaration shown, the mechanism used to call this function is known as: Double powdouble base, double exp) ;
Question 47
Multiple Choice
What is the value of the following? Sqrtsqrtpow2,4) ) ) ;
Question 48
Multiple Choice
Information Hiding is analogous to using
Question 49
Multiple Choice
Which of the following are not legal function declarations?
Question 50
Multiple Choice
When the function below is called, the _____ of the actual parameters is passed to the function definition. Double sqrtdouble value) ;
Question 51
Multiple Choice
Which of the following are valid function calls to the pow function?
Question 52
Multiple Choice
What is the output of the following code fragement? Double size, volume=16.0; Size = sqrtsqrtvolume) ) / 3; Cout.setfios::fixed) Cout.setfios::showpoint) ; Cout.precision2) ; Cout << size;