Java Questions & Answers

Quiz
•
Computers
•
University
•
Medium
Chaya Td
Used 40+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these selection statements test only for equality?
if
switch
if & switch
none of the above mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these are selection statements in Java?
if()
for()
continue
break
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of this statement is incorrect?
switch statement is more efficient than a set of nested ifs
two case constants in the same switch can have identical values
switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression
it is possible to create a nested switch statements
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Java program?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid jump statement?
break
goto
continue
return
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The while loop repeats a set of code while the condition is not met?
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is it called if an object has its own lifecycle and there is no owner?
Aggregation
Composition
Encapsulation
Association
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Principles of Programming Languages

Quiz
•
University
10 questions
JAVA FOR ANDROID-JAVA

Quiz
•
University
12 questions
Java History Characteristics Environment

Quiz
•
University
14 questions
Programming Paradigms

Quiz
•
University
15 questions
JAVA-BootCamp - Day1

Quiz
•
University
15 questions
Types of Programming Languages - Quiz

Quiz
•
University
10 questions
Visual Basic Intro

Quiz
•
University
15 questions
code trivia

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade