Search Header Logo

Week #3 C++ Variable Types and Constants York College CS 172

Authored by Mr. Martin

Computers

12th Grade

Used 12+ times

Week #3  C++ Variable Types and Constants York College CS 172
AI

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?