NET2

NET2

University

•

30 Qs

quiz-placeholder

Similar activities

Fiscal Policy Quiz

Fiscal Policy Quiz

University

•

25 Qs

SPECPRO QUIZ

SPECPRO QUIZ

University

•

25 Qs

Review WLD-141

Review WLD-141

University

•

25 Qs

QUIZ 8PM 07-07

QUIZ 8PM 07-07

7th Grade - Professional Development

•

25 Qs

PIn5

PIn5

University

•

25 Qs

Famous Buildings JEE Paper - 2

Famous Buildings JEE Paper - 2

7th Grade - Professional Development

•

25 Qs

BRITAIN: COUNTRY AND PEOPLE

BRITAIN: COUNTRY AND PEOPLE

University

•

25 Qs

Professional Selling - Unit 2 Exam

Professional Selling - Unit 2 Exam

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?