If Statements
For Loops
Coding History
Code Segments
Variables/Keywords
100
if(10>1) cout << "correct";
What is "correct"?
100
for(int i = 0; i < 10; i++) cout<< i;
What is 12345678910?
100
C++ originated from this language.
What is C?
100
cout << performs this function
What is console output?
100
Characters that a variable name can start with.
What is an underscore or letter?
200
In order an an if statement to execute, the condition must have this value.
What is "true"?
200
What is the increment value of the following loop? for(int i = 0; i < 5; i++)
What is 1?
200
The use of brackets in coding to separate different classes.
What is encapsulation?
200
Block coding for if statements executes all statements if the condition is true between these characters.
What are brackets?
200
Variable names cannot be named as the same as these in C++.
What are identifiers?
300
if (5>2*3) cout << "Tar Heels"; if (6> 2*2) cout << "This is true";
What is "This is true";
300
++x will increment before or after x is used?
What is before?
300
This key to object oriented programming allows objects to acquire other objects properties.
What is inheritance?
300
The end of a statement is marked by this.
What is a semi-colon?
300
Legal variable name? double
What is illegal?
400
The mean of this symbol !=
What is "not equal to"?
400
What is the output? for(int y = 1; y < 30; y = y*2) cout<<y;
What is 124816
400
C++ allows for larger programs than C (True/False)
What is True?
400
After starting with a brace in coding, it is proper to do this until finishing the bracket.
What is indent?
400
Legal variable name? nameSpace
What is Legal?
500
int x = 11; if(x>=11){ cout << "Hello "; cout << "World"; cout << "\n"; if(x<=11) cout << "500";
What is "Hello World 500"
500
What is the following output? for(int x = 25; x >7; x=x-6) cout << x; cout << "\n";
What is 251912
500
Computer language that was the first widely used language.
What is FORTRAN?
500
Find the error. cin << length;
What is cin >>?
500
Is the following variable name legal? mutable
What is illegal?