C++ chapter one and two quiz
A date type is called _________ if the variable or named constant of that type can store only one value at a time.
Simple
A(n) ____________________ is a sequence of zero or more characters
String
Choose the output of the following C++ statement:cout << "Sunny " << '\n' << "Day " << endl;
Sunny day
A program that loads an executable program into main memory is called a(n) ____.
loader
Assembly language uses easy-to-remember instructions called ____________________.
mnemonics
A(n) ____ consists of data and the operations on those data.
object
In a C++ program, one and two are double variables and input values are 10.5 and 30.6. After the statement cin >> one >> two; executes, ____.
one for 10.5 and two for 30.6
Dividing a problem into smaller subproblems is called ____ design.
structured design
A comma is also called a statement terminator. (T/F)
False
An operator that has only one operand is called a unique operator. (T/F)
False
If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right. (T/F)
True
used to separate special symbols, reserved words, and identifiers.
White Spaces
A program called a(n) ____ combines the object program with the programs from libraries.
linker
A step-by-step problem-solving process in which a solution is arrived at in a finite amount of time is called a(n) ____.
algorithm
A sequence of 0s and 1s is sometimes referred to as ____________________ code.
binary
In C++, the mechanism that allows you to combine data and operations on the data into a single unit is called a(n)
class
#include <iostream>using namespace std;int main(){cout << "Hello World "return 0;}In the cout statement, the missing semicolon in the code above will be caught by the ____.
compiler
A program called a(n) ____ translates instructions written in high-level languages into machine code.
compiler
In C++, you can use a(n) ____________________ to instruct a program to mark those memory locations in which data is fixed throughout program execution.
constant
A(n) ____________________ is a memory location whose contents can be changed.
variable