Question 1
while
for
do-while
None of the above
Good Job!
Oops!
Explanation: The do-while loop is always executed at least once.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
Start
Question 2
Explanation: This is the correct syntax for writing an if condition in Java.
Question 3
Break Statements
Decision making statements
Iteration Statements
Jump Statements
Explanation:Decision making statements determines which statements are to be executed and when.
Question 4
Switch
if
Explanation:Switch statements tests for equality.
Question 5
if-else
switch
Explanation:Switch statements enhance the program’s readability.
Question 6
for-each
none of the above
Explanation:For-each loops performs auto increment of the iterator.
Question 7
Decision-making statements
Jump statements
Branching Statements
Explanation:Branching statements are used to jump from one statement to another.
Question 8
Jump
Continue
Break
Explanation:Break statement breaks the current flow of the program.
Question 9
None of the Above
Explanation: Continue is used to jump to the next iteration.
Question 10
Int,string and enum type
Any data type
Float,double
Boolean
Explanation:Int,string and enum type are the permissible data types for switch statements.
Please login to report
Login/Signup
Personalized Analytics only Availble for Logged in users
Analytics below shows your performance in various Mocks on PrepInsta
Your average Analytics for this Quiz
Rank
-
Percentile
0%
Completed
0/0
Accuracy
April 2, 2021