Java Loops
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Jeanine Bryde
Used 645+ times
FREE Resource
Enhance your content in a minute
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
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
16 questions
Computer Science 2.2
Quiz
•
10th Grade
10 questions
Scratch intro & Pen Commands Quiz
Quiz
•
1st - 10th Grade
10 questions
Python Alternating Turns
Quiz
•
7th - 12th Grade
10 questions
CSP I: Unit 4 – Lessons 5-8 (Conditionals)
Quiz
•
9th Grade
10 questions
AP Computer Science Principles - Unit 7: Parameters, Returns
Quiz
•
9th - 12th Grade
13 questions
Loops Review
Quiz
•
12th Grade
14 questions
C++ - Loops and Random Numbers
Quiz
•
9th - 12th Grade
16 questions
Introduction to Programming Vocabulary
Quiz
•
9th - 12th Grade
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
