Loops & Operator

Loops & Operator

University

10 Qs

quiz-placeholder

Similar activities

Latihan 3 : Array dan grafik, multiple plot dan XY Graph

Latihan 3 : Array dan grafik, multiple plot dan XY Graph

University

10 Qs

Code Blitz 40

Code Blitz 40

University

15 Qs

FCS-Review

FCS-Review

University

15 Qs

Servo motor Quiz

Servo motor Quiz

University

10 Qs

TRICODE CHALLENGE ROUND 1

TRICODE CHALLENGE ROUND 1

University

15 Qs

Post Quiz on PID Controllers

Post Quiz on PID Controllers

University

10 Qs

Quiz Master's 2.0

Quiz Master's 2.0

University

15 Qs

Java Array Mastery

Java Array Mastery

University

10 Qs

Loops & Operator

Loops & Operator

Assessment

Quiz

Engineering

University

Medium

Created by

Arti Sonawane

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop construct in Java best suits when the number of iterations is known? 

for loop

while loop

do-while loop

break statement

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this?

5

0

4

Compilation error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the continue statement in a loop?

To exit the loop immediately

To skip the current iteration and move to the next iteration

To terminate the program

To execute a specific block of code

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this?

5 4 3 2 1

-5 -4 -3 -2 -1

-4 -3 -2 -1 0

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be used to exit a loop early?

continue

break

stop

exit

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a logical operator in Java?

&&

||

!

&|

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: System.out.println(10 + 20 + "Java");

30Java

Java30

1020Java

Java1020

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?