Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

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

(a) finally clause is used to perform cleanup operations of closing network and database connections

(b) a program can contain multiple finally clauses

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

(d) all of the mentioned

This question was addressed to me during an internship interview.

My doubt is from Fundamentals of Exception Handling topic in division Indexers and Exception Handling of C#

  • C#
  • October 31, 2023 at 5:06 am

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

(a) try

(b) finally

(c) thrown

(d) catch

The question was asked by my college professor while I was bunking the class.

My doubt is from Fundamentals of Exception Handling in division Indexers and Exception Handling of C#

  • C#
  • August 30, 2023 at 5:06 am

Select the correct statement about an Exception?

(a) It occurs during loading of program

(b) It occurs during Just-In-Time compilation

(c) It occurs at run time

(d) All of the mentioned

I got this question in quiz.

Query is from Fundamentals of Exception Handling topic in section Indexers and Exception Handling of C#

  • C#
  • November 11, 2023 at 5:06 am

Select the statements which describe the correct usage of exception handling over conventional error handling approaches?

(a) As errors can be ignored but exceptions cannot be ignored

(b) Exception handling allows separation of program’s logicfrom error handling logic making software more reliable and maintainable

(c) try – catch – finally structure allows guaranteed cleanup in event of errors under all circumstances

(d) All of the mentioned

I have been asked this question in an interview for internship.

This key question is from Fundamentals of Exception Handling topic in chapter Indexers and Exception Handling of C#

  • C#
  • September 4, 2023 at 5:06 am

Which of the following is the object oriented way to handle run time errors?

(a) Error codes

(b) HERRESULT

(c) OnError

(d) Exceptions

This question was posed to me in exam.

Enquiry is from Fundamentals of Exception Handling in section Indexers and Exception Handling of C#

  • C#
  • September 18, 2023 at 5:06 am

Which among the following is considered as .NET Exception class?

(a) Exception

(b) StackUnderflow Exception

(c) File bound Exception

(d) All of the mentioned

I have been asked this question in an online interview.

My doubt is from Fundamentals of Exception Handling topic in portion Indexers and Exception Handling of C#

  • C#
  • September 3, 2023 at 5:06 am

Which among the following is NOT an exception?

(a) Stack Overflow

(b) Arithmetic Overflow or underflow

(c) Incorrect Arithmetic Expression

(d) All of the mentioned

I have been asked this question in final exam.

I want to ask this question from Fundamentals of Exception Handling topic in section Indexers and Exception Handling of C#

  • C#
  • October 3, 2023 at 5:06 am

Select the modifiers which can be used with the properties?

(a) Private

(b) Public

(c) Protected Internal

(d) All of the mentioned

I had been asked this question in my homework.

My question comes from Introduction of Properties topic in division Indexers and Exception Handling of C#

  • C#
  • August 30, 2023 at 5:06 am

Where the properties can be declared?

(a) Class

(b) Struct

(c) Interface

(d) All of the mentioned

I have been asked this question during a job interview.

This intriguing question comes from Introduction of Properties topic in portion Indexers and Exception Handling of C#

  • C#
  • August 22, 2023 at 5:06 am

Choose the statements which makes use of essential properties rather than making data member public in C#.NET?

(a) Properties have their own access levels like private, public, protected etc. which allows it to have better control about managing read and write properties

(b) Properties give us control about what values may be assigned to a member variable of a class they represent

(c) Properties consist of set accessor inside which we can validate the value before assigning it to the data variable

(d) All of the mentioned

This question was addressed to me in an online quiz.

My enquiry is from Introduction of Properties in division Indexers and Exception Handling of C#

  • C#
  • October 21, 2023 at 5:06 am

Viewing 15 topics - 211 through 225 (of 257 total)

1 2 3 14 15 16 17 18
  • You must be logged in to create new topics.