Exam 2: Introduction to C++
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
Which data type typically requires only one byte of storage?
(Multiple Choice)
4.8/5
(70)
In the C++ instruction, cookies = number % children;
Given the following declaration statement:
Int number = 38, children = 4, cookies;
What is the value of cookies after the execution of the statement?
(Multiple Choice)
4.9/5
(86)
A variable called "average" should be declared as an integer data type because it will probably hold data that contains decimal places.
(True/False)
4.9/5
(73)
What will the following code display? cout << "Monday";
Cout << "Tuesday";
Cout << "Wednesday";
(Multiple Choice)
4.9/5
(90)
How would you consolidate the following declaration statements into one statement? int x = 7;
Int y = 16;
Int z = 28;
(Multiple Choice)
4.8/5
(68)
What is the output of the following statement? cout << 4 * (15 / (1 + 3)) << endl;
(Multiple Choice)
4.9/5
(84)
A variable's ___________ is the part of the program that has access to the variable.
(Multiple Choice)
4.9/5
(79)
Which one of the following would be an illegal variable name?
(Multiple Choice)
4.9/5
(71)
What will the value of x be after the following statements execute? int x;
x = 18.0 / 4;
(Multiple Choice)
4.7/5
(74)
A variable whose value can be either true or false is of this data type.
(Multiple Choice)
4.8/5
(73)
Assume that a program has the following variable definition: char letter;
Which of the following statements correctly assigns the character Z to the variable?
(Multiple Choice)
4.9/5
(81)
Floating point constants are normally stored in memory as doubles.
(True/False)
4.8/5
(71)
The _____ causes the contents of another file to be inserted into a program.
(Multiple Choice)
4.7/5
(92)
In programming terms, a group of characters inside a set of quotation marks is called a:
(Multiple Choice)
4.9/5
(75)
Showing 41 - 56 of 56
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)