Intro to Java Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
ELIZABETH DIERKER
Used 69+ 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
20 questions
Python while loops

Quiz
•
12th Grade
13 questions
C++ Loops

Quiz
•
9th - 12th Grade
18 questions
Computer Science

Quiz
•
9th - 12th Grade
20 questions
C# Intro

Quiz
•
9th Grade
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
20 questions
AP Computer Science A Final Review

Quiz
•
10th Grade
14 questions
C++ - Loops and Random Numbers

Quiz
•
9th - 12th Grade
20 questions
Python - Iteration (For Loops)

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade