Unit 3

Unit 3

University

10 Qs

quiz-placeholder

Similar activities

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

Herencia y Paquetes

Herencia y Paquetes

University

10 Qs

Spreadsheet Starter

Spreadsheet Starter

7th Grade - University

12 Qs

Database

Database

2nd Grade - University

15 Qs

social engineering

social engineering

1st Grade - Professional Development

10 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

CIT 111 Theory Lecture Quiz

CIT 111 Theory Lecture Quiz

University

10 Qs

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

Unit 3

Unit 3

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Mr. V

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?