Exam 2: Introduction to C Plus Plus
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 ________ directive causes the contents of another file to be inserted into a program.
(Multiple Choice)
4.8/5
(29)
The following two statements could be used interchangeably in a C++ program.
// Program Payroll
/* Program Payroll */
(True/False)
5.0/5
(39)
________ are data items whose values cannot change while the program is running.
(Multiple Choice)
4.7/5
(31)
A C++ character literal is enclosed in ______ quotation marks, whereas a string literal is enclosed in ______ quotation marks.
(Multiple Choice)
4.8/5
(29)
If a variable is defined as
int sum;
it may be written in the program code as sum or Sum, but not SUM.
(True/False)
4.8/5
(33)
If number is an int variable, both of the following statements will print out its value:
cout << number;
cout << "number";
(True/False)
4.8/5
(41)
The following statements both declare the variable num to be an integer.
int num;
INT num;
(True/False)
4.9/5
(35)
Which of the following will cause the next output to begin on a new line?
(Multiple Choice)
4.8/5
(36)
In a C++ program, two slash marks ( // ) indicate the beginning of
(Multiple Choice)
4.7/5
(31)
What value will be assigned to the variable number by the following statement?
Int number = 3.75;
(Multiple Choice)
4.8/5
(35)
Which of the following keywords is/are the names of C++ data types?
(Multiple Choice)
4.7/5
(30)
What literal(s) appear in the following C++ statement?
Int number = 4 + 8;
(Multiple Choice)
4.7/5
(34)
A ________ variable can hold only one of two values: True or false.
(Multiple Choice)
4.9/5
(40)
________ must be included in a program in order to use the cout object.
(Multiple Choice)
4.8/5
(35)
C++ automatically places ________ at the end of a string literal.
(Multiple Choice)
4.9/5
(31)
The following two C++ statements perform the same operation.
wages = regPay + overTime;
regPay + overTime = wages;
(True/False)
5.0/5
(34)
An operation that copies a value into a variable is called a(n) ________ operation.
(Multiple Choice)
4.9/5
(30)
In programming terms, a group of characters inside a set of double quotation marks (" ") is called
(Multiple Choice)
5.0/5
(39)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)