Exam 3: Expressions and Interactivity
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C Plus Plus40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions40 Questions
Exam 5: Looping40 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays40 Questions
Exam 9: Searching, Sorting, Algorithm Analysis40 Questions
Exam 10: Pointers62 Questions
Exam 11: More About Classes and Object-Oriented Programming70 Questions
Exam 12: More on C-Strings and the String Class40 Questions
Exam 13: Advanced File and Io Operations40 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions22 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees38 Questions
Select questions type
When the final value of an expression is assigned to a variable, it will be converted to
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
C
The following statement sets the value of total to -3.
total -= 3;
(True/False)
5.0/5
(34)
Program code that can be evaluated to a value is called a(n)
(Multiple Choice)
4.9/5
(38)
To use stream manipulators, you should include the ________ header file.
(Multiple Choice)
4.9/5
(38)
The ________ operator always follows the cin object, and the ________ operator follows the cout object.
(Multiple Choice)
4.7/5
(32)
The cin object lets the user enter a string that contains embedded blanks.
(True/False)
4.8/5
(34)
When an operator's operands are of different data types, such as int and double, C++ automatically converts one of them so that they are the same data type.
(True/False)
4.8/5
(39)
When a C++ expression is evaluated, binary operations are performed before unary operations.
(True/False)
5.0/5
(37)
What does the following C++ expression evaluate to?
6 - 6 / 3 + 3
(Multiple Choice)
4.7/5
(35)
The following C++ statement will assign 1.5 to the result variable.
int result = 3.0 / 2.0;
(True/False)
4.7/5
(36)
Which of the following will allow an entire line of text to be read into a string object, even if it contains embedded blanks?
(Multiple Choice)
4.9/5
(31)
In C++, the 5 basic arithmetic operators are
addition (+), subtraction (-), multiplication (*), division (/), and exponentiation (^).
(True/False)
4.9/5
(36)
The following pair of C++ statements is legal.
const double taxRate;
taxRate = .05;
(True/False)
4.8/5
(37)
The cin object can be used to input more than one value in a single statement.
(True/False)
4.9/5
(50)
To use the sqrt() function, or other mathematical library functions, you must #include the ________ header file in your program.
(Multiple Choice)
4.8/5
(33)
If the value of dollars is 5.0, the following statement will output 5.00 to the monitor:
cout << fixed << showpoint << setprecision(4) << dollars << endl;
(True/False)
4.8/5
(41)
Which of the following statements will assign number a value from 90 - 100.
(Multiple Choice)
4.8/5
(39)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)