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
21 questions
C Programming Quiz(session2)

Quiz
•
10th Grade
15 questions
Intermediate Python

Quiz
•
9th - 11th Grade
20 questions
JavaScript Level 1

Quiz
•
5th - 9th Grade
15 questions
C Programming Concepts

Quiz
•
10th Grade
15 questions
Looping Review

Quiz
•
10th - 12th Grade
19 questions
Unit 5 - Two-Dimensional Arrays

Quiz
•
9th - 12th Grade
20 questions
Unit 5 TEST

Quiz
•
11th - 12th Grade
14 questions
Exploring Computer Science

Quiz
•
10th - 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
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
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
12 questions
3-5 Digital Citizenship: Appropriate Use

Quiz
•
3rd - 5th 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