NET2

NET2

University

•

30 Qs

quiz-placeholder

Similar activities

Carbohydrate-PS Dietician

Carbohydrate-PS Dietician

University

•

25 Qs

PRA UJIAN KKTM K2 2024

PRA UJIAN KKTM K2 2024

University

•

26 Qs

Revision - RB

Revision - RB

University

•

25 Qs

Solar Whiz Quiz: Igniting Minds with Renewable Trivia

Solar Whiz Quiz: Igniting Minds with Renewable Trivia

University

•

25 Qs

14B WEEK 7 QUIZ (BUSINESS WRITING & RESUME)

14B WEEK 7 QUIZ (BUSINESS WRITING & RESUME)

University

•

25 Qs

COMDAY 2021

COMDAY 2021

University

•

26 Qs

Body Systems Quizizz for Health

Body Systems Quizizz for Health

KG - University

•

25 Qs

NET2

NET2

Assessment

Quiz

•

Other

•

University

•

Practice Problem

•

Hard

Created by

Surabhi Palkar

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

An event that occurs during the execution of a program that is unexpected by the program code is known as ____.

Multiple catch

Exception

Nested try catch

None of the given

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which among the following is an exception?

Referencing the null object

Invalid typecasting

Invalid private or protected field access

All of the given

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What allows you to test code for errors?

Exception

Try

Validation

None of the given

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The try and catch keywords come in pair.

True

False

Depends upon the programmer D

Sometimes true sometimes false

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these keywords is not a part of exception handling?

try

finally

thrown

catch

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following C# code?

static void Main(string[] args)

{               

try     {       

Console.WriteLine("Java" + " " + 1/Convert.ToInt32(0));   

}   

catch(ArithmeticException e)    

{       

Console.WriteLine("Csharp");            

}   

Console.ReadLine();

}

Csharp

Java

Java 0

Run time error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the wrong statement about exception handling in C#.NET?

Finally clause is used to perform cleanup operations of closing network and database connections

the statement in final clause will get executed no matter whether an exception occurs or not

a program can contain multiple finally clauses

all of the given

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?