
Branching & Loop (Set B)
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Suryani Sulong
Used 40+ times
FREE Resource
Enhance your content in a minute
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
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 pertemuan 2 asik ddp
Quiz
•
University
15 questions
Computer Science Quiz
Quiz
•
University
10 questions
Hari 3 - Kuis Coding & Perkenalan AI
Quiz
•
8th Grade - University
10 questions
Java Control Flow statements
Quiz
•
University
10 questions
Software Testing
Quiz
•
University
15 questions
HTML Quiz
Quiz
•
11th Grade - University
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
C++ Array Quiz
Quiz
•
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
