Team 1
0
Team 2
0
Teams
Name
Score
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Loading
10
×
Which variable type would you use to store the following: a person's name
string
Oops!
Check
Okay!
Check
10
×
True or False: You must declare a variable before you use it in C++.
True.
Oops!
Check
Okay!
Check
10
×
Fill in the blanks to make this code work:
<iostream>, std, main
Oops!
Check
Okay!
Check
10
×
True or False: The int data type can store decimal values.
False.
Oops!
Check
Okay!
Check
×
seesaw
Swap points!
Oops!
×
gold
Win 50 points!
Okay!
×
gift
Win 15 points!
Okay!
×
baam
Lose 10 points!
Oops!
10
×
Fill in the blank: In C++, the ________ keyword is used to declare a variable that stores text.
string
Oops!
Check
Okay!
Check
10
×
Name two basic variable types in C++.
string, int, float
Oops!
Check
Okay!
Check
20
×
What will happen if you forget the return 0; statement in main()?
In most modern compilers, the program will still run, as it assumes return 0;, but itâs good practice to include it.
Oops!
Check
Okay!
Check
×
seesaw
Swap points!
Oops!
×
seesaw
Swap points!
Okay!
×
gift
Win 20 points!
Okay!
×
banana
Go to last place!
Oops!
10
×
If you want to store the number 3.14, which data type would you use?
float
Oops!
Check
Okay!
Check
10
×
True or false: A float variable can store whole numbers.
True (though it is usually used for decimal values).
Oops!
Check
Okay!
Check
15
×
What will this code output?
Oops!
Check
Okay!
Check
×
banana
Go to last place!
Oops!
×
rocket
Go to first place!
Okay!
×
rocket
Go to first place!
Okay!
×
banana
Go to last place!
Oops!
10
×
Which variable type would you use to store the following: a person's height in meters
float
Oops!
Check
Okay!
Check
15
×
True or False: A string variable can hold numbers as well as text.
True. (Numbers in string are treated as text.)
Oops!
Check
Okay!
Check
×
heart
Other team wins 25 points!
Oops!
×
star
Double points!
Okay!
×
fairy
Take points!
5
10
15
20
25
×
baam
Lose 10 points!
Oops!
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies