for and while loops level 2

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
The x variable in the FOR LOOP starts at what value?
Back
0
2.
FLASHCARD QUESTION
Front
The x variable in the FOR LOOP ends at what value?
Back
30
3.
FLASHCARD QUESTION
Front
The x variable in the FOR LOOP increments by how much after each iteration of the loop?
Back
10
4.
FLASHCARD QUESTION
Front
The variable s is initialized before the FOR LOOP starts. What value is the starting value for s?
Back
0
5.
FLASHCARD QUESTION
Front
What LINE in the given code INITIALIZES s?
Back
int s = 0;
6.
FLASHCARD QUESTION
Front
What LINE in the given code INCREMENTS s? Options: int s= 0;, for(int x=0; x<=30; x=x+10){, s=s+x;, System.out.println(x+" "+s);
Back
s=s+x;
7.
FLASHCARD QUESTION
Front
What is the FIRST line of the output produced by this code? Options: 0 10, 0 0, x s, 10 30
Back
0 0
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
Photography Lighting

Flashcard
•
9th - 12th Grade
11 questions
Sphero Block Coding

Flashcard
•
KG - 12th Grade
8 questions
java while loop

Flashcard
•
9th - 12th Grade
15 questions
AP Computer Science A Review 1

Flashcard
•
10th - 12th Grade
10 questions
If/Else

Flashcard
•
9th - 12th Grade
12 questions
Introduction to Java Basics

Flashcard
•
10th Grade
7 questions
Java Basics #2

Flashcard
•
10th - 12th Grade
9 questions
Unit 4 Lesson 1 While Loops

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade