Java Loops
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Jeanine Bryde
Used 638+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output of the following code segment be?
int a = 1, b = 2;
System.out.println(++a+”,”+b++);
1,2
2,2
2,3
3,3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following program segment display?
for(int a = 2; a <= 10; a += 3)
System.out.print(a+””);
2 5 8
2 5
2 5 8 11
2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the expression number++, the ++ operator is in what mode?
prefix
pretest
postfix
posttest
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is each repetition of a loop known as?
cycle
revlolution
orbit
iteration
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This is a variable that controls the number of iterations performed by a loop.
loop control variable
accumulator
iteration register variable
repetition meter
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The while loop is this type of loop.
pretest
posttest
prefix
postfix
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The do-while loop is this type of loop.
a. pretest
b. posttest
c. prefix
d. postfix
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
16 questions
National 5 Computing Science SDD - Loops
Quiz
•
9th Grade
16 questions
COMPUTER SCIENCE LOOP STRUCTURES
Quiz
•
10th Grade
17 questions
Tracing Loops in Java
Quiz
•
12th Grade
12 questions
Python Loops
Quiz
•
9th - 11th Grade
10 questions
Flow Charts
Quiz
•
1st - 10th Grade
9 questions
2.1.2 CSE Coding Fundamentals: Dead Reckoning
Quiz
•
9th - 12th Grade
15 questions
KS4 - Python Turtle
Quiz
•
9th - 11th Grade
12 questions
Hour of Code
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
15 questions
MLA Formatting
Quiz
•
9th Grade
20 questions
Typing Practice
Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz
Quiz
•
9th Grade