Quiz 1

Question 1

Time: 00:00:00
An unwanted unexpected event that disturbs the normal flow of the program is called?

Error

Error

Exception

Exception

Multithreading

Multithreading

None of the above

None of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
What is the main objective of exception handling?

Providing error message

Providing error message

Stopping the execution of program

Stopping the execution of program

Normal termination of the program

Normal termination of the program

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
What will be the output of the following program?
import java.util.*;

class Solution



        public static void m1()

        {

               System.out.println(7/0);

        }

        public static void main(String[] args)

        {

             m1();

       }

}

7

7

Arithmetic Exception

Arithmetic Exception

No output

No output

13

13

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
Which class acts as a root of exception hierarchy in java?

Throwable

Throwable

Exception

Exception

Error

Error

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
The exceptions which are checked by the compiler for smooth execution of programs at runtime are called ?

Checked Exception

Checked Exception

Unchecked Exception

Unchecked Exception

Both a and b

Both a and b

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
NullPointer Exception is

Checked Exception

Checked Exception

Unchecked Exception

Unchecked Exception

Both a and b

Both a and b

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
What is a fully checked exception?

A checked exception is fully checked if and only if its child classes are also checked.

A checked exception is fully checked if and only if its child classes are also checked.

A checked exception is fully checked if and only if some of its child classes are unchecked.

A checked exception is fully checked if and only if some of its child classes are unchecked.

A checked exception is fully checked if and only if none of its child classes are checked.

A checked exception is fully checked if and only if none of its child classes are checked.

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
Which of the following classes are fully checked?

  1. RuntimeException

  2. IOException

  3. Exception 

  4. InterruptedException

1 and 2

1 and 2

2 and 3

2 and 3

2 and 4

2 and 4

1, 2 and 3

1, 2 and 3

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
Throwable is a __________ .

Fully Checked

Fully Checked

Partially Checked

Partially Checked

Unchecked

Unchecked

None of the above

None of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
A block in which risky code is placed  called as?

Risky block

Risky block

Catch block

Catch block

Try block

Try block

None of the above

None of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Completed

0/10

Accuracy

0%

Prime

PrepInsta Prime Video

Complete video course for Cognizant GenC Elevate

for Elevate
Get Prime Video
Get Prepinsta Prime

Get all 200+ courses offered by Prepinsta

Never Miss an OffCampus Update

Get OffCampus Updates on Social Media from PrepInsta

Follow us on our Media Handles, we post out OffCampus drives on our Instagram, Telegram, Discord, Whatsdapp etc.

Get Hiring Updates
Amazon,Google,Delottie & 30+companies are hiring ! Get hiring Updates right in your inbox from PrepInsta

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Get PrepInsta Prime Subscription

Get access to all the courses that PrepInsta offers, check the out below -

Companies

TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies

Programming

Data Structures, Top 500 Codes, C, C++, Java Python & other 10+ subjects

Skills

Full Stack Web Development, Data Science, Machine Learning, AWS Cloud, & other 10+ skills and 20+ projects