
Control Statements - Java
Authored by Stewart Kirubakaran
Computers
University
Used 97+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
In Given syntax, condition refers to ________ expression
int
char
boolean
None
2.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
What is the output of the following program?
blank screen
Statement outside if block
The number is negative
Error
3.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
What will be the output of the following program?
Age is greater than 18
age=20
age=18
Error
4.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
The given syntax represents what type of selection control statement?
If-then
If-else
If-else Ladder
None
5.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Write the type of Selective control statement for the given image?
If-else
if-then
Ladder if-else
None
6.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
What is the output for the given program?
20 is greater than 18
Error
Blank Screen
None
7.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Fill the gaps in the code given
if & ==
if & >
if & >=
None
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?