Loops

Loops

5th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

kuis informatika perangkat lunak

kuis informatika perangkat lunak

10th - 12th Grade

20 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Kuis PPJ - Materi VLSM

Kuis PPJ - Materi VLSM

11th Grade

15 Qs

Мотылек

Мотылек

6th - 8th Grade

14 Qs

quizz tkinter

quizz tkinter

11th Grade - University

20 Qs

فيجوال بيسك

فيجوال بيسك

10th Grade

11 Qs

Internet

Internet

4th - 6th Grade

11 Qs

Tercer Simulacro ZETA EDUCARE SJC

Tercer Simulacro ZETA EDUCARE SJC

6th Grade

17 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;

Create a free account and access millions of resources

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?