ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ CORE JAVA - JAVA LOOPING STATEMENTS MCQ Questions
English
Hindi
Question No. -
11
Report Bug
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. -
12
Report Bug
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. -
13
Report Bug
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. -
14
Report Bug
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. -
15
Report Bug
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
1
2
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad