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
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
20 questions
looping and branching statements in C

Quiz
•
9th Grade
12 questions
7 клас. Підсумкова робота "Циклічні алгоритми""

Quiz
•
7th Grade
20 questions
Debugging

Quiz
•
10th Grade
15 questions
Soal Java

Quiz
•
11th Grade - University
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th Grade
12 questions
Loops

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

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade