Loops

Loops

5th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

UNIT 3- DATA COMMUNICATION

UNIT 3- DATA COMMUNICATION

12th Grade

20 Qs

Word

Word

3rd - 7th Grade

15 Qs

Cell Phone Vocabulary

Cell Phone Vocabulary

9th - 12th Grade

12 Qs

Arduino

Arduino

7th - 9th Grade

15 Qs

Bài 11. Tệp và quản lý tệp

Bài 11. Tệp và quản lý tệp

10th Grade

20 Qs

Lekcja14 7-8

Lekcja14 7-8

7th - 8th Grade

13 Qs

ข้อสอบ หุ่นยนต์ ม.3 กลางภาคเรียนที่ 1

ข้อสอบ หุ่นยนต์ ม.3 กลางภาคเรียนที่ 1

9th Grade

20 Qs

Loops

Loops

Assessment

Quiz

Computers

5th - 12th Grade

Practice Problem

Medium

Created by

Khushi H

Used 370+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

How many times will the following code print "Welcome to Java"?
int count = 0;
while (count < 10) {
 System.out.println("Welcome to Java");
 count++;
}

8
9
10
0

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?
int x = 0;
while (x < 4) {
 x = x + 1;
}
System.out.println("x is " + x);

0
1
3
4

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;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?