Exam 3: Expressions and Interactivity
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 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 Trees37 Questions
Select questions type
The following two statements will assign the same value to result.


Free
(True/False)
4.9/5
(39)
Correct Answer:
True
When an arithmetic expression contains two or more different operators, such as * and +, the order in which the operations is done is determined by
Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
E
Operator associativity is either left to right or
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
B
causes a program to wait until information is typed at the keyboard and the Enter key is pressed.
(Multiple Choice)
5.0/5
(38)
The following two expressions evaluate to the same thing:
c + a * b c + (a * b)
(True/False)
4.8/5
(38)
What does the following C++ expression evaluate to? 6 - 6 / 3 + 3
(Multiple Choice)
4.8/5
(38)
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.7/5
(43)
The following pair of C++ statements is legal.
const double taxRate; taxRate = .05;
(True/False)
4.8/5
(32)
The following 4 lines of C++ code, use strings.
Which of the following statements is /are true?

(Multiple Choice)
4.8/5
(38)
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
(37)
To use stream manipulators, you should include the _ header file.
(Multiple Choice)
5.0/5
(37)
The following C++ statement will assign 1.5 to the result variable.
int result = 3.0 / 2.0;
(True/False)
4.9/5
(33)
When a C++ expression is evaluated, binary operations are performed before unary operations.
(True/False)
4.8/5
(43)
When an operator has two operands of different data types, C++ always converts them both to double before performing the operation.
(True/False)
5.0/5
(39)
The following statement sets the value of total to - 3.
total -= 3;
(True/False)
4.8/5
(37)
Which of the following statements about named constants is/are true?
(Multiple Choice)
4.8/5
(43)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)