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
The ________ stream manipulator can be used to establish a field width for the value immediately following it.
(Multiple Choice)
4.8/5
(24)
________ can be used to override the rules of operator precedence.
(Multiple Choice)
4.8/5
(35)
The ________ object causes data to be input from the keyboard.
(Multiple Choice)
4.8/5
(38)
The following two statements will assign the same value to result.
result = a + b * c;
result = b * c + a;
(True/False)
4.9/5
(35)
The following statement number = rand() % 5 + 10;
Assigns number a value in the range of
(Multiple Choice)
4.7/5
(33)
________ causes a program to wait until information is typed at the keyboard and the Enter key is pressed.
(Multiple Choice)
4.8/5
(32)
The following pair of C++ statements will cause 3.5 to be output.
double number = 7 / 2;
cout << number;
(True/False)
4.8/5
(37)
The following two expressions evaluate to the same thing:
c + a * b
c + (a * b)
(True/False)
4.8/5
(31)
When an arithmetic expression contains two or more different operators, such as * and +, the order in which the operations is done is determined by
(Multiple Choice)
4.8/5
(27)
When converting some algebraic expressions to C++, you may need to insert ________ and ________ that do not appear in the algebraic expression.
(Multiple Choice)
4.7/5
(28)
The only difference between C-strings and string objects is how they are declared and internally stored. They are used exactly the same way.
(True/False)
4.8/5
(30)
Which of the following statements about named constants is/are True?
(Multiple Choice)
4.8/5
(32)
The following 4 lines of C++ code, use strings. string firstName; // Define a string object
Char lastName[7]; // Define a C-string
FirstName = "Abraham"; // Assign a value to the string object
LastName = "Lincoln"; // Assign a value to the C-string
Which of the following statements is /are True?
(Multiple Choice)
4.8/5
(36)
The following statement sets sum1, sum2, and sum3 all to zero.
sum1 = sum2 = sum3 = 0;
(True/False)
4.9/5
(44)
Which of the following statements doubles the value stored in answer?
(Multiple Choice)
4.9/5
(36)
When an operator has two operands of different data types, C++ always converts them both to double before performing the operation.
(True/False)
4.8/5
(31)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)