for and while loops level 2
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Brian Miller
Used 6+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The x variable in the FOR LOOP starts at what value
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The x variable in the FOR LOOP ends at what value?
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The x variable in the FOR LOOP increments by how much after each iteration of the loop?
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The variable s is initialized before the FOR LOOP starts. What value is the starting value for s?
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The variable s is initialized before the FOR LOOP starts and is incremented in the loop. What LINE in the given code INITIALIZES s?
int s = 0;
for(int x=0; x<=30; x=x+10){
s=s+x;
System.out.println(x+" "+s);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The variable s is initialized before the FOR LOOP starts and is incremented in the loop. What LINE in the given code INCREMENTS s?
int s= 0;
for(int x=0; x<=30; x=x+10){
s=s+x;
System.out.println(x+" "+s);
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the FIRST line of the output produced by this code?
0 10
0 0
x s
10 30
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
15 questions
Arduino
Quiz
•
7th - 9th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
11 questions
ICT - Networks and communication
Quiz
•
9th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th Grade
10 questions
Quiz Excel 3
Quiz
•
10th Grade
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
