
NET2
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Surabhi Palkar
Used 4+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
Unconventional machining processes
Quiz
•
University
25 questions
Quiz Mekanika Tanah
Quiz
•
University - Professi...
25 questions
Electrical Computation
Quiz
•
University
26 questions
Ouat Quiz
Quiz
•
5th Grade - Professio...
25 questions
CODE - CODE QUIZ
Quiz
•
University
25 questions
LEA I
Quiz
•
University - Professi...
25 questions
Jeremy fink and the meaning of life quiz chapters 1-4
Quiz
•
6th Grade - University
25 questions
FINANCIAL MARKET
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
