What is the output of the following code?
if(10>1)
cout << "correct";
What is "correct"?
This operation is denoted by the '%' symbol.
What is remainder division? (What is modulus? accepted)
C++ originated from this language.
What is C?
'cout <<' performs this function
What is console output?
Nonalphabetic characters that a variable name can start with.
What is an underscore?
In order for an if statement to execute, the condition must have this value.
What is "true"?
What is 9?
What is C?
Block coding for if statements executes all statements if the condition is true between these characters.
What are brackets?
Variable names cannot be named as the same as these in C++.
What are identifiers/key words?
What is the output of the following code?
if (5>2*3) cout << "Tar Heels";
if (6> 2*2) cout << "This is true";
What is "This is true";
++x will increment before or after x is used?
What is before?
C++ is named for this operator.
What is ++?
The end of a statement is marked by this.
What is a semi-colon?
Legal or illegal variable name?
double
What is illegal?
The mean of this symbol !=
What is "not equal to"?
The preprocessor directive required to use the pow() and sin() functions.
What is #include <cmath>
The developed of C++ is from this country.
What is Denmark?
After starting with a brace in coding, it is proper to do this until finishing the bracket.
What is indent?
Legal or illegal variable name?
nameSpace
What is Legal?
int x = 11;
if(x>=11){ cout << "Hello ";
cout << "World";
cout << "\n"; }
if(x<=11) cout << "500";
What is "Hello World
500"?
This operator has the highest order of precedence.
What is/are ()?
Computer language that was the first widely used language.
What is FORTRAN?
Find the error. cin << length;
What is cin >>?
The term used to describe how variable names are typically written.
What is camelCase?