Java Loops

Java Loops

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Evaluasi Mail Server

Evaluasi Mail Server

11th Grade

10 Qs

Practice for CPA JavaScript quiz #4

Practice for CPA JavaScript quiz #4

9th - 12th Grade

15 Qs

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

12th Grade

15 Qs

DATSRUC Week 6

DATSRUC Week 6

10th Grade - University

15 Qs

Laser Defender Part 3 Worksheet

Laser Defender Part 3 Worksheet

9th - 12th Grade

15 Qs

Python Control structures

Python Control structures

12th Grade

10 Qs

مسابقات لأوامر البرمجة

مسابقات لأوامر البرمجة

12th Grade

10 Qs

Robotics quiz 2

Robotics quiz 2

1st - 12th Grade

12 Qs

Java Loops

Java Loops

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Jeanine Bryde

Used 638+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output of the following code segment be?


int a = 1, b = 2;

System.out.println(++a+”,”+b++);

1,2

2,2

2,3

3,3

2.

MULTIPLE CHOICE QUESTION

30 sec • 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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the expression number++, the ++ operator is in what mode?

prefix

pretest

postfix

posttest

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is each repetition of a loop known as?

cycle

revlolution

orbit

iteration

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This is a variable that controls the number of iterations performed by a loop.

loop control variable

accumulator

iteration register variable

repetition meter

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The while loop is this type of loop.

pretest

posttest

prefix

postfix

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The do-while loop is this type of loop.

a. pretest

b. posttest

c. prefix

d. postfix

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?