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
7 questions
Instructiuni Repetitive C++

Flashcard
•
10th Grade
10 questions
Graphing Quadratic Equations

Flashcard
•
9th - 11th Grade
14 questions
C++ тест

Flashcard
•
10th - 11th Grade
15 questions
Find x and y intercepts

Flashcard
•
9th - 12th Grade
5 questions
User Inputs JavaScript

Flashcard
•
10th Grade
10 questions
chủ đề A_CS. Bài 1

Flashcard
•
10th Grade
15 questions
Uvod u algoritme i programiranje

Flashcard
•
9th - 12th Grade
11 questions
Deklaracja dwuwymiarowej tablicy C++

Flashcard
•
10th 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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade