Intro to Java Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
ELIZABETH DIERKER
Used 76+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why are loops used in programming?
To make your code look more complex.
To avoid using if statements.
To make your program look more professional.
To run blocks of code repeatedly.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each time through a loop is called a(n) ______________.
iteration
culmination
concatenation
itemization
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the final value of x?
int x = 0;
while (x < 5)
x++;
6
5
4
0
infinite loop
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the final value of x?
int x = 4;
while (x <= 5)
x++;
6
5
4
0
infinite loop
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the final value of x?
int x = 3;
while (x > 5)
x++;
6
5
4
3
infinite loop
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the final value of x?
int x = 0;
for(int i = 1; i < 8; i += 3)
x += i;
12
22
7
0
infinite loop
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the final value of x?
int x = 0;
for(int i = 5; i > 0; i --)
x ++;
5
4
6
0
infinite loop
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Microbit (python)

Quiz
•
8th - 10th Grade
10 questions
Control Structures

Quiz
•
12th Grade
15 questions
Python Revision Tour - I

Quiz
•
12th Grade
20 questions
OOP & c#

Quiz
•
11th Grade
20 questions
Квиз по Python: Условия и Циклы

Quiz
•
12th Grade
20 questions
Chapter 5 loops structure

Quiz
•
10th Grade
20 questions
Basic Python

Quiz
•
10th - 12th Grade
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade