37. For loop

37. For loop

Professional Development

40 Qs

quiz-placeholder

Similar activities

Intro to Python class open book quiz.

Intro to Python class open book quiz.

Professional Development

45 Qs

36.Switch case - Part 3

36.Switch case - Part 3

Professional Development

40 Qs

2ºDAW - Desarrollo Web Ent.Cliente - Trim.2 - Prof. C. Boni

2ºDAW - Desarrollo Web Ent.Cliente - Trim.2 - Prof. C. Boni

University - Professional Development

40 Qs

Java Training Final Assessment

Java Training Final Assessment

Professional Development

40 Qs

Switch Staff Challenge 2025 - Explorer

Switch Staff Challenge 2025 - Explorer

Professional Development

41 Qs

Java Control Statement and Arrays practice

Java Control Statement and Arrays practice

Professional Development

45 Qs

Python

Python

Professional Development

35 Qs

37. For loop

37. For loop

Assessment

Quiz

Computers

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the for loop in Java?
For loop in Java iterates a given set of statements multiple times.
The Java while loop executes a set of instructions until a boolean condition is met.
The do-while loop executes a set of statements at least once, even if the condition is not met.
All of the above.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the 4 types of loops in Java?
For loop, Enhanced for loop, while loop, do-while loop.
For loop, foreach loop, while loop, do-while loop.
For loop, do-while loop, while loop, switch loop.
For loop, foreach loop, if-else loop, do-while loop.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the 3 types of loops?
Loops, Iterating statements, Looping constructs.
For loop, while loop, do-while loop.
Entry controlled loop, Exit controlled loop, Infinite loop.
For loop, if-else loop, do-while loop.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to use loop in loop Java?
Nested loops are not supported in Java.
A loop inside another loop is called a nested loop.
Nested loops can only be used with while loops.
Nested loops can only be used with for loops.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the 3 types of loops in Java?
for, while, do-while.
for, if, switch.
while, do-while, switch.
while, if, for.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the 3 parts of a for loop Java?
Initialization expression, Loop condition, Update expression.
Beginning, Middle, End.
Setup, Test, Increment.
Start, Stop, Continue.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is I and J in Java?
Both I and J are used for Cartesian x-axis basis unit vector.
Both I and J are used for Cartesian y-axis basis unit vector.
I is used for Cartesian x-axis basis unit vector, and J is used for Cartesian y-axis basis unit vector.
I is used for Cartesian y-axis basis unit vector, and J is used for Cartesian x-axis basis unit vector.

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?