Loops

Loops

5th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

RAM&HDD/SSD

RAM&HDD/SSD

10th - 12th Grade

13 Qs

Quiz informatyczny

Quiz informatyczny

1st - 8th Grade

15 Qs

Online Platform Block Q

Online Platform Block Q

11th - 12th Grade

20 Qs

4 budowa komputera

4 budowa komputera

1st - 5th Grade

12 Qs

Nhập môn HTML

Nhập môn HTML

6th - 9th Grade

13 Qs

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

7ICT - Algorithms Revision Quiz

7ICT - Algorithms Revision Quiz

7th Grade

15 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?