This type of loop will repeat as long as a condition is true
What is a while loop?
It’s used to print something to the console
What is cout ?
if (________)
It”s what goes in the blank
What is a boolean expression?
You must do this before you can use a variable
What is declare it?
This symbol must be used at the end of a statement
What is ; ?
while (________)
Its what goes in the blank
What is a Boolean expression?
You can use this to get a value that a user types in
What is cin?
Use this keyword to indicate what to do when the “if” condition is not met
What is else ?
You would use this keyword to indicate an integer
What is int?
This means NOT
What is ! ?
Though not often used, this type of loop always executes once
What is a do-while loop?
You need to include this to read and write to the console.
what is <iostream> ?
This type of conditional statement is useful when you want to test for a value rather than just true or false
What is a switch ?
These two data types have decimal points
What are float and double?
This is used when comparing two values to see if they are equivalent
What is == ?
while (true){
cout << "Hello World"; }
will give this result
What is an infinite loop ?
You should use this function when you want to get a multi-word response that the user inputs
What is getline() ?
if (true) {cout<< ”false”;}
will cause this to happen
What is false will be printed to the console ?
__ myVar = ‘a’;
It goes in the blank.
What is char ?
&& represents this
What is logical AND ?
For (int i = 1; i < 3; i++) {
cout << ”hello”; }
Will print hello this many times
What is 2 ?
When mixing cin and getline() you might need to do this.
What is clear the input buffer ?
( use cin.ignore() )
After your last case in a switch, you should put one of these, in case there is no matching value
What is a default ?
___ myVar = ”b”;
It goes in the blank
What is string?
Blocks of code are encased in these
What are {} ?