Java For Loop basic syntax

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Brian Miller
Used 39+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This FOR loop starts counting at x = ___
10
0
x
1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This FOR will keep repeating up through and including the x value of ___
10
0
x
1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each time through the FOR loop the value of x will increase by ___
10
0
x
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This loop will output
0
1
2
3
4
5
6
7
8
9
10
1 10
x
0 1 2 3 4 5 6 7 8 9 10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(Assuming no variables have been declared) What goes in the blank to make the x value start at 1?
x = 1
int x == 1
int x = 1
x == 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(Assuming no variables have been declared) What goes in the blank to make the x value start at -10?
int x = -10
x = x - 10
int x = x - 10
x = -10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(Assuming no variables have been declared) What goes in the blank to make the x value start at 5?
x <= 5
int x = 5
int x <= 5
x = 5
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python - Iteration (For Loops)

Quiz
•
10th Grade
20 questions
Basic Python

Quiz
•
10th - 12th Grade
15 questions
Intro to Java Loops

Quiz
•
9th - 12th Grade
16 questions
Python Beginner

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

Quiz
•
9th - 10th Grade
20 questions
Chapter 5 loops structure

Quiz
•
10th Grade
20 questions
looping and branching statements in C

Quiz
•
9th Grade
20 questions
Python while loops

Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade