Object Oriented Programming Model Quiz

Object Oriented Programming Model Quiz

University

30 Qs

quiz-placeholder

Similar activities

Introduction to Java Programming

Introduction to Java Programming

University

25 Qs

Neo Coding Round 1 Set 4

Neo Coding Round 1 Set 4

University

25 Qs

Java Introduction

Java Introduction

University

25 Qs

JAVA

JAVA

University

30 Qs

SD_Prelim Exam

SD_Prelim Exam

University

25 Qs

DEBUGGING

DEBUGGING

University

26 Qs

Câu hỏi về lập trình Java

Câu hỏi về lập trình Java

University

26 Qs

C Language Basics

C Language Basics

University

26 Qs

Object Oriented Programming Model Quiz

Object Oriented Programming Model Quiz

Assessment

Quiz

Computers

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?