
JF S8
Authored by Jerry Mahana
Computers
9th - 12th Grade
Used 74+ times

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
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

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?