Vocabulary
C++ Code
Find the Error
True/False
Pot Luck
100
Assigning an initial value to a memory location.
What is initialization?
100
The declaration statement of a constant must begin with the ____ keyword.
What is const?
100
retrn 0;
What is u or return spelled wrong?
100
All C++ statements must end with a colon.
False. A semi-colon.
100
If a variable name contains more than one word, the standard naming convention says to use this.
What is camel case?
200
The standard input stream.
What is cin?
200
Insertion operator.
What is <<, as in cout <<
200
cout << “The answer is “ << answer << endl
What is ; or the semi-colon is missing at the end of the statement?
200
The standard output stream is cout.
True
200
All names used for variables and constants must begin with this.
What is a letter?
300
An error that occurs as the result of calculation statements that are incorrect mathematically.
What is a logic error?
300
You create a comment by typing this before the text you want treated as a comment.
What is //
300
length * width = area;
What is area is in the wrong location? What is the assignment statement is backwards? area = length * width;
300
A comment is a message to the person reading the program and is not executed by the compiler.
True
300
Examples of these in the C++ programming language include int, double, and return.
What is keywords?
400
Identifying the data type and name of a memory location.
What is declaration?
400
This data type stores a real number.
What is double?
400
int testScore;
What is missing initialization in the declaration? int testScore = 0;
400
A constant is a memory location whose value can change during runtime.
False. A constant cannot change during runtime. A variable can change.
400
The precedence rule says to do this first.
What is parenthesis?
500
Object used to perform standard input and output operations.
What is stream object?
500
The main function heading.
What is int main()
500
const TAX_RATE = .06;
What is missing data type double?
500
The assignment operator is the # symbol.
False. The assignment operator is the equal sign (=).
500
You create this kind of error when you enter an instruction that violates the programming language’s rules.
What is syntax error?
Continue
ESC
Reveal Correct Response
Spacebar
M
e
n
u
Team 1
0
+
-
Coding a Solution with C++
No teams
1 team
2 teams
3 teams
4 teams
5 teams
6 teams
7 teams
8 teams
9 teams
10 teams
Custom
Press
F11
Select menu option
View > Enter Fullscreen
for full-screen mode
Edit
•
Print
•
Download
•
Embed
•
JeopardyLabs