Exam 3: Expressions and Interactivity
Exam 1: Introduction to Computers and Programming50 Questions
Exam 2: Introduction to C Plus Plus60 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files63 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays58 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 9: Pointers45 Questions
Exam 10: Characters, C-Strings, and More About the String Class45 Questions
Exam 11: Structured Data53 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes47 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions40 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues47 Questions
Exam 19: Recursion22 Questions
Exam 20: Binary Trees38 Questions
Select questions type
________ reads a line of input, including leading and embedded spaces, and stores it in a string object.
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
B
To use the rand()function, you must #include this header file in your program.
Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
D
The total number of digits that appear before and after the decimal point is sometimes referred to as:
Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
D
When this operator is used with string operands it concatenates them, or joins them together.
(Multiple Choice)
4.8/5
(40)
Which statement will read an entire line of input into the following string object?
String address;
(Multiple Choice)
4.7/5
(40)
What is the value of number after the following statements execute?


(Multiple Choice)
4.8/5
(32)
In any program that uses the cin object, you must include the ________.
(Multiple Choice)
4.8/5
(41)
This manipulator is used to establish a field width for the value immediately following it.
(Multiple Choice)
4.8/5
(40)
The ________ causes a program to wait until information is typed at the keyboard and the Enter key is pressed.
(Multiple Choice)
4.8/5
(33)
You want the user to enter the length, width, and height from the keyboard. Which cin statement is correctly written?
(Multiple Choice)
4.9/5
(36)
The statement:
Will read up to this many characters into str.

(Multiple Choice)
4.7/5
(29)
When a variable is assigned a number that is too large for its data type, it:
(Multiple Choice)
4.8/5
(36)
The following statement will output $5.00 to the screen:
cout << setprecision(5)<< dollars << endl;
(True/False)
4.8/5
(46)
When a program uses the setw manipulator, the iosetwidth header file must be included in a preprocessor directive.
(True/False)
4.7/5
(42)
In the following C++ statement, what will be executed first according to the order of precedence?


(Multiple Choice)
4.8/5
(34)
This statement will pause the screen, until the [Enter] key is pressed.
(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)