Exam 4: Procedural Abstraction and Functions That Return a Value
Exam 1: Introduction to Computer and C++ Programming56 Questions
Exam 2: C++ Basics57 Questions
Exam 3: More Flow of Control45 Questions
Exam 4: Procedural Abstraction and Functions That Return a Value53 Questions
Exam 5: Functions for All Sub Tasks54 Questions
Exam 6: Io Streams As an Introduction to Objects and Classes52 Questions
Exam 7: Arrays48 Questions
Exam 8: Strings and Vectors69 Questions
Exam 9: Pointers and Dynamic Arrays39 Questions
Exam 10: Defining Classes61 Questions
Exam 11: Friends, Overloaded Operators, and Arrays in Classes56 Questions
Exam 12: Separate Compilation and Namespaces41 Questions
Exam 13: Pointers and Linked Lists64 Questions
Exam 14: Recursion48 Questions
Exam 15: Inheritance53 Questions
Exam 16: Exception Handling47 Questions
Exam 17: Templates35 Questions
Exam 18: Standard Template Library59 Questions
Select questions type
In the function declaration shown, the mechanism used to call this function is known as:
Double powdouble base, double exp);
Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
B
What is the value of the following?
Sqrtsqrtpow2,4)));
Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
B
the types of parameters are optional in the function declaration
Free
(True/False)
4.9/5
(34)
Correct Answer:
False
Varibles that are declared inside a function are said to be _________ to that function.
(Short Answer)
4.8/5
(36)
If the variable x has the original value of 3.4, what is the value in x after the following?
Cout << static_cast<int>x);
(Multiple Choice)
4.9/5
(37)
Write the code to convert the value in an integer variable named count to a double. _____________________.
(Short Answer)
4.9/5
(35)
If you have the following variable declaration in your program,
Const int SIZE=34;
Then which of the following statements are legal?
(Multiple Choice)
4.8/5
(36)
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;
(Multiple Choice)
4.8/5
(48)
What is the output of the following program fragment?
Cout << static_cast<float>3/4) << endl;
(Multiple Choice)
4.9/5
(38)
What is the output of the following program fragment?
Cout << pow4,2) << endl;
(Multiple Choice)
4.9/5
(42)
the parameters listed in the function declaration are considered global variables
(True/False)
4.9/5
(37)
Which of the following are valid function calls to the pow function?
(Multiple Choice)
4.7/5
(31)
Showing 1 - 20 of 53
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)