Input/Output and Data Types
Operators and Variables
If Conditions and Loops
Input/Output, Data Types, Operators, Variables, If Conditions, and Loops (Slightly harder, but DOUBLE POINTS FOR ALL!!!!!!)
Miscellaneous
100

What does cin stand for?

Console Input

100

Name the five arithmetic (aka mathematic) operators.

Bonus 100 points (using the order of operations):

(15*2 + 16) / 0

The five mathematical operators are addition (+), subtraction (-), multiplication (*), division (/), and modulus (%).

In case you forgot, modulus takes the remainder after you divide it. (ex. 15 % 4 is 3)

100
Do if conditions need brackets?

No

100

What data type is double similar to?

float

100

What language is C++ based off of?

C++ is based off of C.

200

What data type can store words?

The data type string can store words (and more generally, characters)

200

What is one way to initialize a variable with data type char and assign it a value to be '5'? Try to put it on one line. 

Here are four possible ways to initialize the variable:

char my_char = '5';

char my_char = 53;

char my_char{'5'};

char my_char{53};

200

True or false: If statements cannot be put inside each other.

Why not?

200

How do you insert comments in C++?

/* This is not a comment

// This is also not a comment

# This is a comment

// This is also not a comment

200

What is the C++ file extension (Triple points for this one)?  Hint: Use the process of elimination

.pdf

.txt

.mp4

.h

.wav

.zip

.java

.ppt

.h

300

Why are floats called floats?

Float is short for floating-point integer, where the decimal is a 'floating' point inside an integer number. floats also take up about twice the memory of an integer.

300

What two data types can a variable with data type bool store?

The boolean data type can have two values: true and false (lowercase).

300

True or false: If is an example of controlling the flow of the program.

Yes!

P.S. Oops didn't answer the question. "True".

300

Which of the following is a valid C++ variable name?

54321

one2three4

:<}:"|>|

namespace

one2three4

300

Which of the following is a string constant?

'G'

"pen-pineapple-apple-pie"

15.234

1235123412341243123414314312341341234123412341234134123412341234134123413412341324134123

"pen-pineapple-apple-pie"

400

What are three data types?

The data types are long, short, void, bool, string, char, int, float, double, and auto. (you can have any three)

400

What are compound assignment operators? (Hint: They change the value of a variable)

Bonus 100 pts: Can you name all of them? 

Compound assignment operators are exactly what they sound like: compound assignment. 

They compress an expression like a = a + b into something easier to read and write: a += b, which means you're adding b to a.

The compound assignment operators are: +=, -=, *=, /=, %=

400

What will the program output if this if-condition is run and the value of a is 15?

if(!(a>25)){

cout << "endl" << endl;

} else {

cout << "cout" << endl;

}

endl

400

Which statement executes one set of statements when true and another when false?

The if statement

The if/else statement

The if/else if statement

The switch statement

The if/else statement

400

Who was the inventor of C++ (Use the process of elimination!)

Babe Ruth

Bjarne Stroustrup

Albert Einstein

Tom Cruise

Bjarne Stroustrup

500

What is the >> operator called? (hint: the other one is called the extraction operator)

The >> is called the insertion operator because it is used during input and inserts data from the console into the variable.

500

What boolean does this shorten to (extra time for this one :D)?

!((true && false) || false)

True

500

True or false: This program outputs hello if the name of the person is Joe.

if (name = "Joe"){

cout << "hello";

}

False, it will produce an error

500

Which loop tests a condition after its iteration but before incrementation?

The while loop

The for loop

The do-while loop

The do-for loop

There is no such loop, what are you talking about?

The do-while loop

500

What type of programming language is C++?

Objected Oriented Programming (OOP)

User Oriented Programming (UOP)

Player Oriented Programming (POP)

Speed Oriented Programming (SOP)

Objected Oriented Programming (OOP)

M
e
n
u