
C++ Exit slip Quiz 2 on Operators and Loops 12A
Authored by Dina Sharawy
Education
12th Grade
Used 1+ times

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
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
Write the output of the following code:
(a)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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

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?