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
What will the value of x be after the following statements execute?


(Multiple Choice)
4.8/5
(39)
When the final value of an expression is assigned to a variable, it will be converted to:
(Multiple Choice)
4.7/5
(38)
Which line in the following program will cause a compiler error?


(Multiple Choice)
4.9/5
(33)
When C++ is working with an operator, it strives to convert the operands to the same type.
(True/False)
4.9/5
(38)
Which line in the following program will cause a compiler error?


(Multiple Choice)
4.8/5
(34)
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
(39)
Arithmetic operators that share the same precedence have right to left associativity.
(True/False)
4.8/5
(47)
When converting some algebraic expressions to C++, you may need to insert ________ that do not appear in the algebraic expression.
(Multiple Choice)
4.7/5
(40)
The ________ operator always follows the cin object, and the ________ operator follows the cout object.
(Multiple Choice)
5.0/5
(38)
What is the value of average after the following code executes?


(Multiple Choice)
4.9/5
(38)
This function tells the cin object to skip one or more characters in the keyboard buffer.
(Multiple Choice)
5.0/5
(40)
This manipulator causes the field to be left-justified with padding spaces printed to the right.
(Multiple Choice)
4.9/5
(37)
If you want to know the length of the string that is stored in a string object, you can call the object's size member function.
(True/False)
4.8/5
(30)
Which statement is equivalent to the following?
Number += 1;
(Multiple Choice)
4.8/5
(36)
The fixed manipulator causes a number to be displayed in scientific notation.
(True/False)
4.8/5
(35)
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.7/5
(35)
This stream manipulator forces cout to print the digits in fixed-point notation.
(Multiple Choice)
4.8/5
(42)
Assume that x is an int variable. What value is assigned to x after the following assignment statement is executed?


(Multiple Choice)
4.8/5
(40)
You can use these to override the rules of operator precedence in a mathematical expression.
(Multiple Choice)
4.8/5
(31)
Showing 21 - 40 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)