Search Header Logo

C++ Operators

Authored by Natalia Fumero

Science, Computers, Mathematics

6th - 8th Grade

Used 137+ times

C++ Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these operators increments an integer variable by one?

" * "

" - - "

" + + "

>

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these operators gets the remainder of dividing two numbers?

#

&

%

==

3.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Fill in the blank to get 1 outputted from this code:


int main() {


int a = 2;

int b = 13;


cout<< b _ a <<endl;


}

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

True or False. This code will output 0


cout<< 23 % 2 <<endl;

True

False

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

True or False. This code will output 1


cout<< 55 % 2 <<endl;

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank to get 0 outputted from this code:


int main() {


cout<< 12 ___ 12 <<endl;


}

-

+

==

%

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Fill in the blank to get 0 outputted from this code:


int main() {


cout<< 12 ___ 3 <<endl;


}

-

+

==

%

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?