
Week #3 C++ Variable Types and Constants York College CS 172
Authored by Mr. Martin
Computers
12th Grade
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store whole numbers without decimals?
int
double
char
string
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store floating point numbers with decimals?
int
double
char
string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store single characters?
int
double
char
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store text?
int
double
char
string
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store values with two states: true or false?
int
double
char
bool
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? int x = 5, y = 6, z = 50; cout << x + y + z;
11
71
50
61
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? int x, y, z; x = y = z = 50; cout << x + y + z;
11
61
50
150
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?