ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ JAVA - JAVA CONDITIONAL STATEMENTS MCQ Questions
English
Hindi
Question No. -
01
Report Bug
The continue statement in a switch block is used to avoid fall through.
The continue statement in a switch block is used to avoid fall through.
The continue statement in a switch block is used to avoid fall through.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
02
Report Bug
The default statement is essential in a switch block
The default statement is essential in a switch block
The default statement is essential in a switch block
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
03
Report Bug
. Which among the following constants are used in switch-case statements?
. Which among the following constants are used in switch-case statements?
A.
char
char
B.
int
int
C.
float
float
D.
Both a and b
Both a and b
Question No. -
04
Report Bug
If a relational expression is satisfied it results in
If a relational expression is satisfied it results in
A.
true
true
B.
false
false
C.
Both a nd b
Both a nd b
D.
None of these
None of these
Question No. -
05
Report Bug
Which among the following relational operator is used to check for the equality between two quantities ?
Which among the following relational operator is used to check for the equality between two quantities ?
A.
=
=
B.
==
==
C.
equals
equals
D.
None of these
None of these
Question No. -
06
Report Bug
An if statement inside another if statement is called
An if statement inside another if statement is called
A.
Nested if
Nested if
B.
Internal if
Internal if
C.
Concentric if
Concentric if
D.
None of these
None of these
Question No. -
07
Report Bug
What is the problem called in which an optional else clause in an if–then(–else) statement results in nested conditionals being ambiguous?
What is the problem called in which an optional else clause in an if–then(–else) statement results in nested conditionals being ambiguous?
A.
Dangling if
Dangling if
B.
Dangling else
Dangling else
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
08
Report Bug
Which of these selection statements test only for equality?
Which of these selection statements test only for equality?
A.
if
if
B.
switch
switch
C.
if and switch
if and switch
D.
none of the mentioned
none of the mentioned
1
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