Search Header Logo

JF S8

Authored by Jerry Mahana

Computers

9th - 12th Grade

Used 74+ times

JF S8
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the danger of catching a generic Exception type as shown below?

The details of the Exception object ex are too general to be useful.

An Exception will never occur.

An ArithmeticException cannot be caught.

An ArrayIndexOutOfBoundsException cannot be caught.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which exception is thrown when an application attempts to use null when an object is required?

NullPointerException

FileNotFoundException

ArithmeticException

ArrayIndexOutOfBoundsException

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each catch block is an exception handler that handles the type of exception indicated by its argument.

True

False

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What are two advantages of adding print statements for debugging?

You can identify which methods have been called.

You can identify compilation errors.

You can identify runtime errors.

You can identify the order in which methods have been called.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Testing and debugging are important activities in software development.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Runtime errors can be caught by Java’s exception handling mechanism.

True

False

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which two are limitations of an array of primitives (ie: int[] x)?

The size of the array is fixed during array creation and cannot grow once initialized.

You cannot overwrite the contents of an array once initialized.

You can create only one array in a class.

You need to create your own methods to manipulate array contents.

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?