Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : java - JAVA LOOPING STATEMENTS
JAVA LOOPING STATEMENTS
00:00:00
English
Hindi
Question No# :
01
out of 11
In while and do-while loops, a statement causes control to be transferred directly to the conditional expression that controls the loop.
In while and do-while loops, a statement causes control to be transferred directly to the conditional expression that controls the loop.
A.
break
break
B.
pause
pause
C.
start
start
D.
continue
continue
Question No# :
02
out of 11
By using you can force immediate termination of loop, bypassing the conditional expression and any remaining code in the body of the loop.
By using you can force immediate termination of loop, bypassing the conditional expression and any remaining code in the body of the loop.
A.
switch
switch
B.
break
break
C.
continue
continue
D.
default
default
Question No# :
03
out of 11
Which of these jump statements can skip processing remainder of code in its body for a particular iteration?
Which of these jump statements can skip processing remainder of code in its body for a particular iteration?
A.
break
break
B.
return
return
C.
exit
exit
D.
continue
continue
Question No# :
04
out of 11
Which looping process checks the test condition at the end of the loop?
Which looping process checks the test condition at the end of the loop?
A.
for
for
B.
while
while
C.
do-while
do-while
D.
no looping process checks the test condition at the end
no looping process checks the test condition at the end
Question No# :
05
out of 11
A type of loop that is usually used when the number of iteration is known.
A type of loop that is usually used when the number of iteration is known.
A.
for
for
B.
while
while
C.
do-while
do-while
D.
None of these
None of these
Question No# :
06
out of 11
In a group of nested loops, which loop is executed the most number of times?
In a group of nested loops, which loop is executed the most number of times?
A.
the outermost loop
the outermost loop
B.
the innermost loop
the innermost loop
C.
all loops are executed the same number of times
all loops are executed the same number of times
D.
cannot be determined without knowing the size of the loops
cannot be determined without knowing the size of the loops
Question No# :
07
out of 11
What’s wrong? for (int k = 2, k <= 12, k++)
What’s wrong? for (int k = 2, k <= 12, k++)
A.
the increment should always be ++k
the increment should always be ++k
B.
the variable must always be the letter i when using a for loop
the variable must always be the letter i when using a for loop
C.
there should be a semicolon at the end of the statement
there should be a semicolon at the end of the statement
D.
the commas should be semicolons
the commas should be semicolons
Question No# :
08
out of 11
What is an infinite loop?
What is an infinite loop?
A.
A loop that functions infinitely well
A loop that functions infinitely well
B.
A loop that runs forever
A loop that runs forever
C.
A loop that never starts
A loop that never starts
D.
A loop that will never function
A loop that will never function
Question No# :
09
out of 11
What’s wrong? while( (i < 10) && (i > 24))
What’s wrong? while( (i < 10) && (i > 24))
A.
the logical operator && cannot be used in a test condition
the logical operator && cannot be used in a test condition
B.
the while loop is an exit-condition loop
the while loop is an exit-condition loop
C.
the test condition is always false
the test condition is always false
D.
the test condition is always true
the test condition is always true
Question No# :
10
out of 11
How often is the inner loop of a nested loop run?
How often is the inner loop of a nested loop run?
A.
Forever
Forever
B.
One fewer time than the main loop
One fewer time than the main loop
C.
Each time the main loop is run
Each time the main loop is run
D.
One more time than the main loop
One more time than the main loop
Question No# :
11
out of 11
A type of loop when the loop executes atleast once even if the test expression evaluates to ‘true’.
A type of loop when the loop executes atleast once even if the test expression evaluates to ‘true’.
A.
for
for
B.
while
while
C.
do-while
do-while
D.
None of these
None of these
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz