Search Header Logo

C++ Exit slip Quiz 2 on Operators and Loops 12A

Authored by Dina Sharawy

Education

12th Grade

Used 1+ times

C++ Exit slip Quiz 2 on Operators and Loops 12A
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

A) 5

B) 10

C) 15

D) 20

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a logical operator in C++?

A) +

B) ==

C) &&

D) %

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The modulus operator % can only be used with integer values.

True

False

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Media Image

Write the output of the following code:



(a)  

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

A) a is greater

B) b is greater

C) No output

D) Error

6.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

In a for loop, the (a)   operator is commonly used to increment the loop counter by 1.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the following loop execute?

A) 4 times

B) 5 times

C) 6 times

D) Infinite times

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?