Day 22 - C10p1

Day 22 - C10p1

Professional Development

7 Qs

quiz-placeholder

Similar activities

Talent Next Quiz-5

Talent Next Quiz-5

Professional Development

10 Qs

Day 2 C Programming quiz

Day 2 C Programming quiz

Professional Development

10 Qs

C++ File and Exception Handling Test

C++ File and Exception Handling Test

Professional Development

11 Qs

Java OOP

Java OOP

Professional Development

10 Qs

Structure Data Review

Structure Data Review

University - Professional Development

10 Qs

CBNCloud Ngulik Bareng Azure Stack Vol.3

CBNCloud Ngulik Bareng Azure Stack Vol.3

Professional Development

9 Qs

javascript3

javascript3

Professional Development

8 Qs

Overview & Feeder

Overview & Feeder

Professional Development

9 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