
Object Oriented Programming Model Quiz

Quiz
•
Computers
•
University
•
Medium
Baby Shamini P
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Both class Error and class Exception are children of this parent:
A.Throwable
B. Catchable
C.Runnable
D. Problem
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What type of exception is thrown by parseInt() if it gets illegal data?
A. ArithmeticException
B. RunTimeException
C.NumberFormatException
D.NumberError
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following lists exception types from MOST specific to LEAST specific?
A.Error, Exception
B. Exception, RunTimeException
C.Throwable, RunTimeException
D. ArithmeticException, RunTimeException
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which statement is true?
A.If an exception is uncaught in a method, the method will terminate and normal execution will resume.
B. An overriding method must declare that it throws the same exception classes as the method it overrides.
C. The main() method of a program cannot declare that it throws checked exceptions.
D.A method declaring that it throws a certain exception class may throw instances of any subclass of that exception class.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When is a finally{} block executed?
A.Only when an unhandled exception is thrown in a try{} block.
B. Only when any exception is thrown in a try{} block.
C.Always after execution has left a try catch{} block, no matter for what reason
D. Always just as a method is about to finish.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
On occurrence of which of the following is it possible for a program to recover?
A. Errors
B. Exceptions
C.Both errors and exceptions
D. Neither
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method should a non-abstract class implementing Runnable interface implement?
A.start
B. run
C.runnable
D.wait
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Mock 2nd MCQ Python

Quiz
•
University
25 questions
U5. Spring

Quiz
•
University
26 questions
Java Programming Quiz

Quiz
•
University
25 questions
Intro PseInt

Quiz
•
University
25 questions
GNIDOC ROUND 1

Quiz
•
University
25 questions
Тест на знание C#

Quiz
•
University
30 questions
Java Programming

Quiz
•
University
25 questions
Recap B1 (version française)

Quiz
•
3rd Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University