C# Questions & Answers – Introduction of Reflections

This section of our 1000+ C# MCQs focuses on introduction of reflections in C# Programming Language. 1. Which feature enables to obtain information about the use and capabilities of types at runtime? a) Runtime type ID b) Reflection c) Attributes d) None of the mentioned 2. Choose the namespace which consists of classes that are … Read more

advertisement

C# Question & Answers – Runtime Type

This section of our 1000+ C# MCQs focuses on runtime type in in C# Programming Languag 1. Which mechanism among the following helps in identifying a type during the execution of a program? a) Reflection b) Runtime type ID c) Both Reflection & Runtime type ID d) None of the mentioned 2. Select the statement … Read more

advertisement

C# Questions & Answers – Introduction of Array Class

This set of C# Questions and Answers for Aptitude test focuses on “Introduction of array class”. 1. Select the class which is the base class for all arrays in C#? a) Array b) Text c) arrays d) Both Array & Text 2. Select the interfaces implemented by array class. a) ICloneable, ICollection b) IEnumerable, IStructuralComparable, … Read more

advertisement

C# Questions & Answers – Operation with LINQ

This section of our 1000+ C# MCQs focuses on operations with Linq in C# Programming Language. 1. What will be the output of the following C# code snippet? class Program{ static void Main(string[] args) { string[] strs = {"alpha", "beta", "gamma"}; var chrs = from str in strs let chrArray = str.ToCharArray() from ch in … Read more

advertisement

C# Multiple Choice Questions – LINQ

This section of our 1000+ C# MCQs focuses on LINQ in C# Programming Language. 1. Assume 2 columns named as Product and Category how can be both sorted out based on first by category and then by product name? a) var sortedProds = _db.Products.Orderby(c => c.Category) b) var sortedProds = _db.Products.Orderby(c => c.Category) + ThenBy(n … Read more

advertisement

C# Question & Answers – Generic Methods

This section of our 1000+ C# MCQs focuses on generic methods in C# Programming Language. 1. In the following C# code, which of the following statement is not correct? public class MyContainer<T> where T: class, IComparable{ /* insert code here */} a) Class MyContainer requires that its type argument must implement Icomparable interface b) There … Read more

advertisement

C# Multiple Choice Questions – Generics

This section of our 1000+ C# MCQs focuses on generics in C# Programming Language. 1. What is meant by the term generics? a) parameterized types b) class c) structure d) interface 2. Are generics in C# are same as the generics in java and templates in C++? a) Yes b) No c) May be d) … Read more

advertisement

C# Questions & Answers – Delegates in Detail

This set of Basic C# Questions and Answers focuses on “Delegates in Detail”. 1. 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!"); }} a) delegate void del(int i); x s = new x(); del d = new del(ref s.x); … Read more

advertisement

C# Multiple Choice Questions – Delegates

This section of our 1000+ C# MCQs focuses in detail on delegates in C# Programming Language. 1. 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 2. To implement delegates, the necessary condition is? a) class declaration b) inheritance … Read more

advertisement

C# Questions & Answers – Character Stream

This section of our 1000+ C# MCQs focuses on character streams of C# Programming Language. 1. From which of these classes, the character based output stream class Stream Writer is derived? a) TextWriter b) TextReader c) Character Stream d) All of the mentioned 2. The advantages of using character stream based file handling are? a) … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.