Day 22 - C10p1

Day 22 - C10p1

Professional Development

7 Qs

quiz-placeholder

Similar activities

Java_Exception

Java_Exception

Professional Development

10 Qs

JDK,JRE,JIT & JVM MCQs

JDK,JRE,JIT & JVM MCQs

Professional Development

12 Qs

Quiz for Module2

Quiz for Module2

Professional Development

10 Qs

Python Session 5

Python Session 5

Professional Development

10 Qs

Java Quiz #1

Java Quiz #1

Professional Development

10 Qs

C programming

C programming

Professional Development

10 Qs

Exception Handling-1

Exception Handling-1

Professional Development

10 Qs

Java_4

Java_4

Professional Development

6 Qs

Day 22 - C10p1

Day 22 - C10p1

Assessment

Quiz

Professional Development, Computers

Professional Development

Hard

Created by

An Bình

Used 1+ times

FREE Resource

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