Exam 4: Procedural Abstraction and Functions That Return a Value
Exam 1: Introduction to Computer and C Programming55 Questions
Exam 2: C++ Basics54 Questions
Exam 3: More Flow of Control44 Questions
Exam 4: Procedural Abstraction and Functions That Return a Value51 Questions
Exam 5: Functions for All Sub Tasks53 Questions
Exam 6: Io Streams As an Introduction to Objects and Classes51 Questions
Exam 7: Arrays34 Questions
Exam 8: Strings and Vectors63 Questions
Exam 9: Pointers and Dynamic Arrays40 Questions
Exam 10: Defining Classes50 Questions
Exam 11: Friends, overloaded Operators, and Arrays in Classes49 Questions
Exam 12: Separate Compilation and Namespaces38 Questions
Exam 13: Pointers and Linked Lists51 Questions
Exam 14: Recursion43 Questions
Exam 15: Inheritance53 Questions
Exam 16: Exception Handling47 Questions
Exam 17: Templates33 Questions
Exam 18: Standard Template Library57 Questions
Select questions type
The absolute value function abs is located in the _________ library.
Free
(Short Answer)
4.8/5
(37)
Correct Answer:
cstdlib
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);
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
D
Varibles that are declared inside a function are said to be _________ to that function.
(Short Answer)
4.8/5
(31)
Constant variables that might be used in different functions should be _________
(Short Answer)
4.7/5
(36)
In the following function declaration,the variable size is known as a _________________.
int myFunction int size);
(Short Answer)
5.0/5
(38)
What is the output of the following program fragment?
Cout << pow4,2)<< endl;
(Multiple Choice)
4.8/5
(39)
Which of the following functions is a properly overloaded function of the following?
Int doSomethingint first,float second);
(Multiple Choice)
4.8/5
(33)
What is the value returned by the following function?
Int function)
{
Int value = 35;
Return value + 5;
Value += 10;
}
(Multiple Choice)
4.8/5
(40)
In the function declaration shown,the mechanism used to call this function is known as:
Double powdouble base,double exp);
(Multiple Choice)
5.0/5
(40)
When a variable is local to a function,we say that it has ___ of the function
(Multiple Choice)
4.9/5
(43)
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
(41)
Showing 1 - 20 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)