Search Header Logo

C++ Unit Quiz

Authored by Brenda Larson

Computers

11th - 12th Grade

Used 4+ times

C++ Unit Quiz
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

1 min • 1 pt

Which escape sequence moves the text to the next line?

\t

\n

\r

\s

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following initializes a variable that allows only whole numbers?

string house;

int house;

array house;

double house;

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following initializes a variable that allows words?

string house;

int house;

array house;

double house;

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

After running the following code, what will be the value of x?
y = 3;
x = 5 * y;

3
5
15
0

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Where do we write the code for the program?

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one has the correct code to calculate your age?

Note : Your birth year will be in the variable called birth.

cout << "Your age is equal to " << 2018-birth;

cout << "Your age is equal to " << 2018-birth

cout << "Your age is equal to 2018-birth";

cout << "Your age is equal to " << birth;

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the symbol used to multiply?

%

&

*

/

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?