Exam 3: Expressions and Interactivity
Exam 1: Introduction to Computers and Programming47 Questions
Exam 2: Introduction to C62 Questions
Exam 3: Expressions and Interactivity45 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Loops and Files60 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays and Vectors56 Questions
Exam 8: Searching and Sorting Arrays30 Questions
Exam 9: Pointers47 Questions
Exam 10: Characters, C-Strings, and More About the String Class47 Questions
Exam 11: Structured Data46 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes54 Questions
Exam 14: More About Classes46 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions43 Questions
Exam 16: Exceptions and Templates36 Questions
Exam 17: The Standard Template Library38 Questions
Exam 18: Linked Lists41 Questions
Exam 19: Stacks and Queues47 Questions
Exam 20: Recursion27 Questions
Exam 21: Binary Trees39 Questions
Select questions type
What is the value of number after the following statements execute?
Int number = 10;
Number += 5;
Number -= 2;
Number *= 3;
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
C
Associativity is either right to left or
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
C
What is the value of cube after the following code executes?
Double cube, side;
Side = 5.0;
Cube = pow(side, 3.0);
Free
(Multiple Choice)
4.8/5
(48)
Correct Answer:
C
When the final value of an expression is assigned to a variable, it will be converted to
(Multiple Choice)
4.8/5
(32)
What is true about the following statement?
cout << setw(4) << num4 << " ";
(Multiple Choice)
5.0/5
(37)
Which of the following statements will allow the user to enter three values to be stored in variables length, width, and height, in that order?
(Multiple Choice)
4.7/5
(37)
Which statement is equivalent to the following?
Number += 1;
(Multiple Choice)
4.9/5
(29)
When a user types values at the keyboard, those values are first stored
(Multiple Choice)
4.7/5
(39)
Which of the following statements will read an entire line of input into the string object, address?
(Multiple Choice)
4.7/5
(34)
When C++ is working with an operator, it strives to convert operands to the same type. This is known as
(Multiple Choice)
4.9/5
(38)
Arithmetic operators that share the same precedence have right to left associativity.
(True/False)
4.7/5
(25)
Which statement is equivalent to the following?
Number = number * 2;
(Multiple Choice)
4.9/5
(35)
What is the value of average after the following code executes?
Double average;
Average = 1.0 + 2.0 + 3.0 / 3.0;
(Multiple Choice)
4.7/5
(33)
When a variable is assigned a number that is too large for its data type, it
(Multiple Choice)
4.7/5
(41)
In C++, it is impossible to display the number 34.789 in a field of 9 spaces with 2 decimal places of precision.
(True/False)
4.9/5
(36)
When the fixed manipulator is used, the value specified by the setprecision manipulator will be the number of digits to appear after the decimal point.
(True/False)
4.9/5
(28)
The only difference between the get function and the >> operator is that get reads the first character typed, even if it is a space, tab, or the [Enter] key.
(True/False)
4.8/5
(34)
The __________ causes a program to wait until information is typed at the keyboard and the [Enter] key is pressed.
(Multiple Choice)
4.8/5
(26)
What is the value of x after the following code executes?
Int x;
X = 3 / static_cast<int>(4.5 + 6.4);
(Multiple Choice)
4.7/5
(27)
Which of the following functions tells the cin object to skip one or more characters in the keyboard buffer?
(Multiple Choice)
4.8/5
(42)
Showing 1 - 20 of 45
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)