Exam 2: Introduction to C Programming; Inputoutput and Operators
Exam 1: Introduction to Computers and C++32 Questions
Exam 2: Introduction to C Programming; Inputoutput and Operators22 Questions
Exam 3: Introduction to Classes, Objects and Strings33 Questions
Exam 4: Control Statements, Assignment, and Operators29 Questions
Exam 5: Control Statements, Logical Operators31 Questions
Exam 6: Functions and an Introduction to Recursion48 Questions
Exam 7: Class Templates Array and Vector; Catching Exceptions18 Questions
Exam 8: Pointers and Pointer-Based Strings32 Questions
Exam 9: Classes: a Deeper Look; Throwing Exceptions35 Questions
Exam 10: Operator Overloading; String and Array Objects34 Questions
Exam 11: Object-Oriented Programming: Inheritance17 Questions
Exam 12: Object-Oriented Programming: Polymorphism27 Questions
Exam 13: Stream Inputoutput: a Deeper Look34 Questions
Exam 14: File Processing19 Questions
Exam 15: Standard Library Containers and Iterators33 Questions
Exam 16: Standard Library Algorithms27 Questions
Exam 17: Exception Handling: a Deeper Look20 Questions
Exam 18: Introduction to Custom Templates9 Questions
Exam 19: Custom Templatized Data Structures17 Questions
Exam 20: Searching and Sorting10 Questions
Exam 21: Class String and String Stream Processing28 Questions
Exam 22: Bits, Characters, C Strings and Structs30 Questions
Exam 23: Other Topics22 Questions
Exam 24: C++11 Additional Features56 Questions
Select questions type
The std::endl stream manipulator________.
Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
C
The ________ object enables a program to read data from the user.
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
B
Which of the following is a variable declaration statement?
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
A
Each of the following is a relational or equality operator except:
(Multiple Choice)
5.0/5
(39)
End-of-line comments that should be ignored by the compiler are denoted using:
(Multiple Choice)
5.0/5
(32)
Which of the following statements does not overwrite a preexisting value stored in a memory location?
(Multiple Choice)
4.7/5
(35)
The assignment operator ________ assigns the value of the expression on its right to the variable on its left.
(Multiple Choice)
5.0/5
(36)
In what order would the following operators be evaluated -, *, /, +, %
Assume that if two operations have the same precedence, the one listed first will be evaluated first.
(Multiple Choice)
4.9/5
(41)
Which of the following does not cause a syntax error to be reported by the C++ compiler?
(Multiple Choice)
4.9/5
(35)
Which of the following uses C++11's list initialization to initialize count to 0?
(Multiple Choice)
4.9/5
(25)
Which is the output of the following statements? std::cout << "Hello ";
Std::cout << "World";
(Multiple Choice)
4.9/5
(29)
Which of the following statements would display the phrase C++ is fun?
(Multiple Choice)
4.8/5
(42)
Which of the following statements could potentially change the value of number2?
(Multiple Choice)
4.7/5
(34)
What will be the output after the following C++ statements have been executed? int a{4};
Int b{12};
Int c{37};
Int d{51};
If (a < b) {
Cout << "a < b" << endl;
}
If (a > b) {
Cout << "a > b" << endl;
}
If (d <= c) {
Cout << "d <= c" << endl;
}
If (c != d) {
Cout << "c != d" << endl;
}
(Multiple Choice)
4.9/5
(34)
Showing 1 - 20 of 22
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)