Control Statements - Java

Quiz
•
Computers
•
University
•
Medium
Stewart Kirubakaran
Used 95+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Array in C

Quiz
•
University
15 questions
GAGC-JAVA-SET1

Quiz
•
University
10 questions
java quiz based on interface

Quiz
•
University
10 questions
Java Basic Programming Quiz

Quiz
•
University
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
10 questions
Input And Output in C

Quiz
•
University
15 questions
Exam 1 Practice

Quiz
•
University
20 questions
Python Strings

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University