
Revision on loops
Authored by pranali naik
Computers
9th - 12th Grade
Used 5+ times

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 operator cannot be used with if-else statement?
<=
? :
&&
||
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of the following code snippet:
Both values are equal
Incorrect use of the == operator
Values are not equal
No output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code snippet:
x = (c >d) ? c : d;
x = (c >d) ? d : c;
x = (c >d) ? c : c;
x = (c >d) ? d : d;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if ((a > b) && (a > c)), then which of the following statements is true?
a is the largest number.
b is the largest number.
c is the largest number.
b is the smallest number.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code snippet:
Which of the following statements is correct?
case 1 will be executed.
case 2 will be executed.
default will be executed.
both case 1 and 2 will be executed.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A sequence of statements enclosed between a pair of curly brackets is called
an empty statement
a compound statement
a null statement
a void statement
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which clause is optional in the switch statement?
default
case
switch
none of these
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?
Similar Resources on Wayground
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
20 questions
Introducción a las bases de datos
Quiz
•
12th Grade
18 questions
Roblox. 1 модуль. Итоговый тест
Quiz
•
3rd - 10th Grade
15 questions
CSS Quarter IV QUIZ 2
Quiz
•
10th Grade
20 questions
Quiz 4
Quiz
•
1st - 10th Grade
22 questions
HTML Quiz
Quiz
•
9th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade