Day 22 - C10p1

Day 22 - C10p1

Professional Development

7 Qs

quiz-placeholder

Similar activities

General C#

General C#

Professional Development

10 Qs

Pedagogik

Pedagogik

Professional Development

10 Qs

Physical Security Controls

Physical Security Controls

Professional Development

10 Qs

KC35

KC35

Professional Development

10 Qs

Forms

Forms

Professional Development

11 Qs

MOS CALIBRATION - QUIZ

MOS CALIBRATION - QUIZ

Professional Development

10 Qs

AXIE 101

AXIE 101

KG - Professional Development

10 Qs

Drilling Quiz W-2/II

Drilling Quiz W-2/II

Professional Development

10 Qs

Day 22 - C10p1

Day 22 - C10p1

Assessment

Quiz

Professional Development, Computers

Professional Development

Practice Problem

Hard

Created by

An Bình

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

7 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

2 mins • 5 pts

Which of the following statements are true? (Choose all that apply.)

Exceptions of type RuntimeException are checked.
You can declare unchecked exceptions
You can declare checked exceptions.
You can handle only Exception subclasses
All exceptions are subclasses of Throwable.

2.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What is printed by the following?

1234
134
13
Compile error
Runtime error

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

Which exception will the following method throw?

ArrayIndexOutOfBoundsException
IllegalArgumentException
ClassCastException
NumberFormatException
NullPointerException

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What will happen if you add the following statement to a working main() method? System.out.print(4 / 0);

Compile error
IllegalArgumentException
NumberFormatException
ArithmeticException
It will not run.

5.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What is printed by the following program?

AECD
AE followed by a stack trace
AEBCD followed by a stack trace
AEC followed by a stack trace
A stack trace with no other output

6.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What is the output of the following snippet, assuming a and b are both 0?

-1
0
done-1
done0
Compile error

7.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What is the output of the following program?

Starting up_
Starting up_Problem_
Starting up_Problem_Shutting down
Starting up_Shutting down
Compile error

Discover more resources for Professional Development