Explore topic-wise MCQs in Csharp.

This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Csharp knowledge and support exam preparation. Choose a topic below to get started.

1.

WHICH_OF_THE_FOLLOWING_STATEMENTS_IS_CORRECT_ABOUT_A_DELEGATE??$

A. inheritance is a prerequisite for using delegates
B. delegates are not type safe
C. delegates provides wrappers for function pointers
D. none of the mentioned
Answer» D. none of the mentioned
2.

Which among the following is the correct statement about delegate declaration ?

A. ;
B. on declaring the delegate, a class called del is created
C. the del class is derived from the MulticastDelegate class
D. the del class will contain a one argument constructor and an invoke() method
Answer» E.
3.

The ‘ref’ keyword can be used with which among the following?

A. Static function/subroutine
B. Static data
C. Instance function/subroutine
D. All of the mentioned
Answer» B. Static data