
Branching & Loop (Set B)

Quiz
•
Computers
•
University
•
Medium
Suryani Sulong
Used 40+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The __________ statement uses single expression for multiple choices
loop
switch
multiple value
if else
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
name the for loop used for two time ___________
loop
if else
nested for loop
for loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a ____ control structure, the computer executes particular statements depending on some condition(s).
looping
repetition
selection
sequence
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose x is 5 and y is 7. Choose the value of the following expression:
(x != 7) && (x <= y)
false
true
0
null
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators has the highest precedence?
!
*
%
=
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The expression in an if statement is sometimes called a(n) ____.
selection statement
action statement
decision maker
action maker
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following C++ code?
int x = 35;
int y = 45;
int z;
if (x > y)
z = x + y;
else
z = y – x;
cout << x << " " << y << " " << z << endl;
35 45 80
35 45 10
35 45 –10
35 45 0
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Defensive Design/ Robust Coding

Quiz
•
9th Grade - University
10 questions
Java Quiz 2 based on loop and if else

Quiz
•
University
10 questions
Python-1st

Quiz
•
University
15 questions
FOP - CHAPTER 7

Quiz
•
University
10 questions
Nested Statement

Quiz
•
University
12 questions
UTS Semester 1 Informatika 2024/2025

Quiz
•
8th Grade - University
10 questions
Java MCQ Test on Control Statements

Quiz
•
University
10 questions
Conditional and Iterative Statements

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University