Delegates And Events In C Sharp — Part 2 MCQs with Explanations
Practice high-yield Programming & Software Development MCQs on Delegates And Events In C Sharp — Part 2 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.
Questions
27
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
33 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
27
Verified Practice Questions
Interactive test mode with detailed academic worked solutions
Live Progress|0/27 answered
✓0 correct
✗0 wrong
0% score
🎉 Set complete! All 27 questions answered.
Question 1 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the incorrect statement about delegates?
Correct Answer: Option A — delegates are not type safe
Detailed Academic Explanation:
delegates are not type safe is the correct answer to “Choose the incorrect statement about delegates”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 2 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Incorrect statements about delegates are?
Correct Answer: Option D — Only one method can be called using a delegate
Detailed Academic Explanation:
Only one method can be called using a delegate is the correct answer to “Incorrect statements about delegates are”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 3 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What does the following C# code block defines? class Gen<T> { T ob; }
Correct Answer: Option A — Generics class declaration
Detailed Academic Explanation:
Generics class declaration is the correct answer to “What does the following C# code block defines? class Gen<T> { T ob; }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 4 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is the correct way to call the subroutine function abc() of the given class in the following C# code? class csharp { void abc() { console.writeline("A:Just do it!"); } }
Correct Answer: Option B — delegate void del(); del d; csharp s = new csharp(); d = new del(ref s.abc); d()
Detailed Academic Explanation:
delegate void del(); del d; csharp s = new csharp(); d = new del(ref s.abc); d() is the correct answer to “Which of the following is the correct way to call the subroutine function abc() of the given class in the following C# code? class csharp { void abc() { console.writeline("A:Just do it!"); } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 5 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which among the following is the correct statement about delegate declaration? delegate void del(int i);
Correct Answer: Option D — all of the mentioned
Detailed Academic Explanation:
all of the mentioned is the correct answer to “Which among the following is the correct statement about delegate declaration? delegate void del(int i);”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 6 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Are generics in C# are same as the generics in java and templates in C++?
Correct Answer: Option B — No
Detailed Academic Explanation:
No is the correct answer to “Are generics in C# are same as the generics in java and templates in C++”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 7 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following C# code snippet? public class Generic<T> { Stack<T> stk = new Stack<T>(); public void push(T obj) { stk.Push(obj); } public T pop() { T obj = stk.Pop(); return obj; } } class Program { static void Main(string[] args) { Generic<string> g = new Generic<string>(); g.push(30); Console.WriteLine(g.pop()); Console.ReadLine(); } }
Correct Answer: Option B — 30
Detailed Academic Explanation:
30 is the correct answer to “What will be the output of the following C# code snippet? public class Generic<T> { Stack<T> stk = new Stack<T>(); public void push(T obj) { stk.Push(obj); } public T pop() { T obj = stk.Pop(); return obj; } } class Program { static void Main(string[] args) { Generic<string> g = new Generic<string>(); g.push(30); Console.WriteLine(g.pop()); Console.ReadLine(); } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 8 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the given statements are valid about generics in .NET Framework?
Correct Answer: Option A — generics are useful in collection classes in .NET framework
Detailed Academic Explanation:
generics are useful in collection classes in .NET framework is the correct answer to “Which of the given statements are valid about generics in .NET Framework”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 9 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following statements are valid in the following C# code snippet? public class Generic<T> { public T Field; public void testSub() { T i = Field + 1; } } class Program { static void Main(string[] args) { Genericlt;int>g = new Genericlt;int>(); g.testSub(); } }
Correct Answer: Option D — compile time error
Detailed Academic Explanation:
compile time error is the correct answer to “Which of the following statements are valid in the following C# code snippet? public class Generic<T> { public T Field; public void testSub() { T i = Field + 1; } } class Program { static void Main(string[] args) { Genericlt;int>g = new Genericlt;int>(); g.testSub(); } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 10 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the correct way to call subroutine fun() of the sample class? class a { public void x(int p, double k) { Console.WriteLine("k : csharp!"); } }
Correct Answer: Option B — delegate void del(int p, double k); del d; x s = new x(); d = new del(ref s.x); d(8, 2.2f)
Detailed Academic Explanation:
delegate void del(int p, double k); del d; x s = new x(); d = new del(ref s.x); d(8, 2.2f) is the correct answer to “Choose the correct way to call subroutine fun() of the sample class? class a { public void x(int p, double k) { Console.WriteLine("k : csharp!"); } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 11 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following C# code? { delegate string f(string str); class sample { public static string fun(string a) { return a.Replace('k', 'o'); } } class Program { static void Main(string[] args) { f str1 = new f(sample.fun); string str = str1("Test Ykur C#.NET Skills"); Console.WriteLine(str); Console.ReadLine(); } } }
Correct Answer: Option C — Test Your C#.NET Skills
Detailed Academic Explanation:
Test Your C#.NET Skills is the correct answer to “What will be the output of the following C# code? { delegate string f(string str); class sample { public static string fun(string a) { return a.Replace('k', 'o'); } } class Program { static void Main(string[] args) { f str1 = new f(sample.fun); string str = str1("Test Ykur C#.NET Skills"); Console.WriteLine(str); Console.ReadLine(); } } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 12 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of these type parameters is used for generic methods to return and accept any type of object?
Correct Answer: Option C — T
Detailed Academic Explanation:
T is the correct answer to “Which of these type parameters is used for generic methods to return and accept any type of object”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 13 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In the following C# code, which of the following statements are perfectly valid? public class MyContainer<T> where T: IComparable { /* insert code here */ }
Correct Answer: Option A — Class MyConatiner requires that its type argument must implement Icomparable interface
Detailed Academic Explanation:
Class MyConatiner requires that its type argument must implement Icomparable interface is the correct answer to “In the following C# code, which of the following statements are perfectly valid? public class MyContainer<T> where T: IComparable { /* insert code here */ }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 14 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of these is a correct way of defining generic method?
Correct Answer: Option B — public name { /* ... */ }
Detailed Academic Explanation:
public name { /* ... */ } is the correct answer to “Which of these is a correct way of defining generic method”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 15 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In the following C# code, which statements are perfectly valid? public class Csharp { public void subject<S>(S arg) { Console.WriteLine(arg); } } class Program { static Void Main(string[] args) { Csharp c = new Csharp(); c.subject("hi"); c.subject(20); } }
Correct Answer: Option C — Code runs successfully and prints required output
Detailed Academic Explanation:
Code runs successfully and prints required output is the correct answer to “In the following C# code, which statements are perfectly valid? public class Csharp { public void subject<S>(S arg) { Console.WriteLine(arg); } } class Program { static Void Main(string[] args) { Csharp c = new Csharp(); c.subject("hi"); c.subject(20); } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 16 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the advantages of using generics?
Correct Answer: Option D — All of the mentioned
Detailed Academic Explanation:
All of the mentioned is the correct answer to “Choose the advantages of using generics”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 17 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the statements which makes delegate in C#.NET different from a normal class?
Correct Answer: Option D — All of the mentioned
Detailed Academic Explanation:
All of the mentioned is the correct answer to “Choose the statements which makes delegate in C#.NET different from a normal class”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 18 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is an incorrect statement about delegate?
Correct Answer: Option C — delegates are type safe wrappers for function pointers
Detailed Academic Explanation:
delegates are type safe wrappers for function pointers is the correct answer to “Which of the following is an incorrect statement about delegate”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 19 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is the correct way to call the function abc() of the given class in the following C# code? class csharp { public int abc(int a) { Console.WriteLine("A:Just do it!"); return 0; } }
Correct Answer: Option C — delegate int del(int a); del d; csharp s = new csharp(); d = new del(ref s.fun); d(10)
Detailed Academic Explanation:
delegate int del(int a); del d; csharp s = new csharp(); d = new del(ref s.fun); d(10) is the correct answer to “Which of the following is the correct way to call the function abc() of the given class in the following C# code? class csharp { public int abc(int a) { Console.WriteLine("A:Just do it!"); return 0; } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 20 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Suppose a Generic class called as SortObjects is to be made capable of sorting objects of any type(integer, single, byte etc). Then, which of the following programming constructs is able to implement the comparison function?
Correct Answer: Option C — delegate
Detailed Academic Explanation:
delegate is the correct answer to “Suppose a Generic class called as SortObjects is to be made capable of sorting objects of any type(integer, single, byte etc). Then, which of the following programming constructs is able to implement the comparison function”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 21 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following C# code? public class Generic<T> { public T Field; } class Program { static void Main(string[] args) { Generic<int> g2 = new Generic<int>(); Generic<int> g3 = new Generic<int>(); g2.Field = 8; g3.Field = 4; if (g2.Field % g3.Field == 0) { Console.WriteLine("A"); } else Console.WriteLine("Prints nothing:"); Console.ReadLine(); } }
Correct Answer: Option B — A
Detailed Academic Explanation:
A is the correct answer to “What will be the output of the following C# code? public class Generic<T> { public T Field; } class Program { static void Main(string[] args) { Generic<int> g2 = new Generic<int>(); Generic<int> g3 = new Generic<int>(); g2.Field = 8; g3.Field = 4; if (g2.Field % g3.Field == 0) { Console.WriteLine("A"); } else Console.WriteLine("Prints nothing:"); Console.ReadLine(); } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 22 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which statement is valid for the following C# code snippet? public class Generic<T> { public T Field; } class Program { static void Main(string[] args) { Generic<String> g = new Generic<String>(); g.Field = "Hi"; Console.WriteLine(g.Field); } }
Correct Answer: Option D — Code runs successfully
Detailed Academic Explanation:
Code runs successfully is the correct answer to “Which statement is valid for the following C# code snippet? public class Generic<T> { public T Field; } class Program { static void Main(string[] args) { Generic<String> g = new Generic<String>(); g.Field = "Hi"; Console.WriteLine(g.Field); } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 23 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following are the correct statements about delegates?
Correct Answer: Option D — All of the mentioned
Detailed Academic Explanation:
All of the mentioned is the correct answer to “Which of the following are the correct statements about delegates”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 24 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following C# code snippet? { delegate string F(string str); class sample { public static string fun(string a) { return a.Replace(',''-'); } } class Program { static void Main(string[] args) { F str1 = new F(sample.fun); string str = str1("Test Your c#.NET skills"); Console.WriteLine(str); } } }
Correct Answer: Option B — Test-Your-C#.NET-Skills
Detailed Academic Explanation:
Test-Your-C#.NET-Skills is the correct answer to “What will be the output of the following C# code snippet? { delegate string F(string str); class sample { public static string fun(string a) { return a.Replace(',''-'); } } class Program { static void Main(string[] args) { F str1 = new F(sample.fun); string str = str1("Test Your c#.NET skills"); Console.WriteLine(str); } } }”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 25 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which among the given classes represents System.Collections.Generic namespace?
Correct Answer: Option A — SortedDictionary
Detailed Academic Explanation:
SortedDictionary is the correct answer to “Which among the given classes represents System.Collections.Generic namespace”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 26 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which among the given classes is present in System.Collection.Generic.namespace?
Correct Answer: Option A — Stack
Detailed Academic Explanation:
Stack is the correct answer to “Which among the given classes is present in System.Collection.Generic.namespace”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
Question 27 of 27
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the incorrect statement among the following about the delegate?
Correct Answer: Option D — none of the mentioned
Detailed Academic Explanation:
none of the mentioned is the correct answer to “Choose the incorrect statement among the following about the delegate”. This question is standard in competitive examination syllabi for Delegates And Events In C Sharp.
💡Key Conceptual Anchor:Delegates And Events In C Sharp
✓Link copied to clipboard
Continue Your Practice
Advance Html — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
💡Examiner's Advisory for Programming & Software Development
In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.