Loops

Quiz
•
Computers
•
5th - 12th Grade
•
Medium
Khushi H
Used 369+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following program segment display?
for(int a = 2; a <= 10; a += 3)
System.out.print(a+””);
2 5 8
2 5
2 5 8 11
2
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int count = 0;
while (count < 10) {
System.out.println("Welcome to Java");
count++;
}
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x = 0;
while (x < 4) {
x = x + 1;
}
System.out.println("x is " + x);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Repeating a task multiple times in programming is known as ?
Iterators
Scope
Looping
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which loop loops a set number of times?
for
while
infinite
loopy
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these is the correct syntax for a loop?
for(int i = 0; i<10; 1++){}
fore(integer i = 0; i>10; i++){}
for(int i = 0; i<10){}
for(int i){}
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way to create a String?
String s = "I am cool";
string string = i am cool;
String s = I am cool
String s = "I" am cool;
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Processing 2

Quiz
•
6th Grade
20 questions
AP CA A Unit 4 Review

Quiz
•
11th - 12th Grade
19 questions
Python Year 9 Quiz

Quiz
•
8th - 10th Grade
21 questions
CodeHS JavaScript Control Functions

Quiz
•
8th - 12th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
17 questions
Flow of Control in C++ ( Conditional statements)

Quiz
•
9th Grade - University
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
15 questions
Java Level 1 - C

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade