
JAVA control Structure
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Dr Manishankar S
Used 32+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a selection statement in Java?
for
switch
while
do-while
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int x = 5; if (x > 2) System.out.println("A"); else System.out.println("B"); System.out.println("C");
A C
B C
A
C
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop executes at least once, regardless of the condition?
while
for
do-while
switch
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The statement continue; inside a loop:
Terminates the loop immediately
Skips the rest of the loop body and jumps to the next iteration
Exits the program
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? for (int i = 1; i <= 3; i++) { if (i == 2) break; System.out.print(i + " "); }
1 2 3
1
1 2
2 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to read an integer from console using Scanner?
int x = Scanner.nextInt();
Scanner sc = new Scanner(System.in); int x = sc.nextInt();
sc.nextInt(); Scanner sc = new Scanner(System.in);
None of these
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, System.out.println() is used to:
Read data from console
Print data to console followed by a newline
Print data without newline
None of the above
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?
Similar Resources on Wayground
12 questions
DBMS-Transactions-Revision
Quiz
•
Professional Development
13 questions
Digital Technology Office 365 - 29May2020
Quiz
•
University - Professi...
11 questions
Office 365
Quiz
•
Professional Development
11 questions
Email of request
Quiz
•
12th Grade - Professi...
10 questions
Mothers Competition
Quiz
•
Professional Development
11 questions
Int Prog Semana 1
Quiz
•
Professional Development
10 questions
Scrum Quiz
Quiz
•
Professional Development
16 questions
CPU scheduling
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
