
Unit 3
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Mr. V
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Packages in Java are used for:
Improving code readability
Grouping related classes and interfaces
Reducing code complexity
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. Which keyword is used to import a specific class from a package in Java?
include
require
import
use
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. In Java, a class can belong to:
Only one package
Multiple packages
No package at all
Two packages only
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. An interface in Java can contain:
Instance variables
Constructors
Abstract methods
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. A class in Java can implement multiple interfaces:
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. Which access modifier is used for an interface method that should be accessible only within the same package?
public
protected
private
default (package-private)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. Which keyword is used to explicitly throw an exception in Java?
exception
throw
catch
try
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
INTO Artificial Intelligence
Quiz
•
University - Professi...
10 questions
DBMS 1
Quiz
•
University
14 questions
ITF Chapter 1 Computing Devices
Quiz
•
University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th 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
