WorksheetsControl Statements - Java
Total questions: 15
Worksheet time: 3mins
In Given syntax, condition refers to ________ expression
int
char
boolean
None
What is the output of the following program?
blank screen
Statement outside if block
The number is negative
Error
What will be the output of the following program?
Age is greater than 18
age=20
age=18
Error
The given syntax represents what type of selection control statement?
If-then
If-else
If-else Ladder
None
Write the type of Selective control statement for the given image?
If-else
if-then
Ladder if-else
None
What is the output for the given program?
20 is greater than 18
Error
Blank Screen
None
Fill the gaps in the code given
if & ==
if & >
if & >=
None
What is the output for the given code?
Good day
Good evening
time=20
Error
What will be the output for the given program?
Thursady
Friday
Saturday
Sunday
What is the output for the given program?
Today is Sunday
Today is Saturday
Looking forward to the Weekend
Compile Error
In the given while loop statement, what statement will be used in the place of updation?
continue
break
Increment/ Decrement
update
Sum of 'n' numbers=11
Sum of 'n' numbers=55
Compile Error
10
What the output for the given switch statement?
Small
Medium
Large
Unknown
Predict the output for the given program
Case 2
Case 3
Default Case
Case 2
Case 3
Default Case
Is this given statement of for loop declaration is correct or not?
True
False
