
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
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
15 questions
LA1.C1: Introduction to Small Basic
Quiz
•
9th Grade
20 questions
Advantages and Disadvantages of Collecting Data
Quiz
•
10th Grade
16 questions
Unit 8 Practice Test For CSP
Quiz
•
9th Grade
16 questions
AI Checkpoint 1 Revision
Quiz
•
9th - 12th Grade
20 questions
NP IT Quiz ปริศนาไอที #4
Quiz
•
9th - 12th Grade
20 questions
Pointers
Quiz
•
12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade