Exam 2: Introduction to C
Exam 1: Introduction to Computers and Programming47 Questions
Exam 2: Introduction to C62 Questions
Exam 3: Expressions and Interactivity45 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Loops and Files60 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays and Vectors56 Questions
Exam 8: Searching and Sorting Arrays30 Questions
Exam 9: Pointers47 Questions
Exam 10: Characters, C-Strings, and More About the String Class47 Questions
Exam 11: Structured Data46 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes54 Questions
Exam 14: More About Classes46 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions43 Questions
Exam 16: Exceptions and Templates36 Questions
Exam 17: The Standard Template Library38 Questions
Exam 18: Linked Lists41 Questions
Exam 19: Stacks and Queues47 Questions
Exam 20: Recursion27 Questions
Exam 21: Binary Trees39 Questions
Select questions type
When typing your source code into the computer, you should be careful since most of your C++ instructions, header files, and variable names are case sensitive.
(True/False)
4.7/5
(36)
What will the following code display?
Cout << "Monday";
Cout << "Tuesday";
Cout << "Wednesday";
(Multiple Choice)
4.9/5
(33)
Which of the following statements correctly assigns the character M to the variable named letter?
(Multiple Choice)
4.8/5
(35)
What is the value of number after the following statements execute?
Int number;
Number = 18 / 4;
(Multiple Choice)
4.8/5
(31)
Which of the following lines must be included in a program that has string variables?
(Multiple Choice)
4.8/5
(33)
Which control sequence is used to skip over to the next horizontal tab stop?
(Multiple Choice)
4.8/5
(40)
You must have a _____________ for every variable you intend to use in a program.
(Multiple Choice)
4.9/5
(31)
C++ does not have a built-in data type for storing strings of data.
(True/False)
4.8/5
(35)
The data type of a variable whose value can be either true or False is
(Multiple Choice)
4.7/5
(39)
A variable's __________ is the part of the program that has access to the variable.
(Multiple Choice)
4.9/5
(32)
What will the following code display?
Int number = 23;
Cout << "The number is " << "number" << endl;
(Multiple Choice)
4.8/5
(33)
In C++11, if you want an integer literal to be treated as a long long int, you can append __________ at the end of the number.
(Multiple Choice)
4.8/5
(31)
The preprocessor reads a program before it is compiled and only executes those lines beginning with # symbol.
(True/False)
4.7/5
(38)
For every opening brace ({) in a C++ program, there must be a
(Multiple Choice)
5.0/5
(39)
Which part of the following line is ignored by the compiler?
Double userName = "janedoe"; // user's name is janedoe
(Multiple Choice)
4.8/5
(45)
The __________ is(are) used to display information on the computer's screen.
(Multiple Choice)
4.8/5
(34)
Showing 21 - 40 of 62
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)