Search Header Logo

Quiz 5

Authored by Farah Habib

Computers

University

Used 5+ times

Quiz 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Exceptions allow code to indicate an error occurred without specifying the details of handling that error. This is ____.

Abstraction

Inheritance

Encapsulation

Polymorphism

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The keyword used to produce a new Exception is ____.

handle

launch

start

throw

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following exception does not need to be caught:

ClassNotFoundException

FileNotFoundException

IOException

NullPointerException

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Within Java, files are represented as ____.

streams

exceptions

fountains

writer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Implementing the ____ interface allows objects of a class to be written/read directly to/from files.

Writable

Comparable

Implementable

Serializable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following classes writes binary data to a file?

DataInputStream

DataOutputStream

Filewriter

PrintWriter

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assuming a class is properly implemented, if x.hashCode() == y.hashCode(), then ____.

x.equals(y) == true

x.equals(y) == false

It is uncertain

NullPointerException

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?