
Java Questions & Answers
Authored by Chaya Td
Computers
University
Used 40+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
10 questions
BIOMETRICS-UNIT-I
Quiz
•
University
15 questions
AWS ACF Módulo 2 - Economia e Faturamento na Nuvem
Quiz
•
University
10 questions
System Integration and Arch Exam 2
Quiz
•
University
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
13 questions
Chap 1: What is a program made of?
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
15 questions
Komponen Jaringan & Pengkabelan
Quiz
•
University
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade