C# Mcq Questions

C# Mcq Questions | Freshers & Experienced

  • Sharad Jaiswal
  • 17th Jun, 2021

We have listed below the best C# Mcq Questions for your basic knowledge of C#. This C# Mcq Test contains 25+ C# Multiple Choice Questions. You have to select the right answer to every question.

Practice Best C# MCQ Questions:

1) Who was the father of C#?

  • A. Anders Hejlsberg
  • B.Rasmus Lerdorf
  • C.Dennis M. Ritchie
  • D.Bjarne Stroustrup

2) CLR is the .Net equivalent of______

  • A. Common Language Runtime
  • B.Common Type System
  • C.Java Virtual machine
  • D.Common Language Specification

3) Which of the following is correct about C#?

  • A. compiled on a variety of computer platforms.
  • B.component oriented.
  • C.part of .Net Framework.
  • D.All of the above

4) Default scope for the members of an interface

  • A. private
  • B.public
  • C.protected
  • D.internal

5) Reference is a______.

  • A. class that is not initialized.
  • B.leads to memory allocation.
  • C.creating by an existing instance.
  • D.Pre-defined data type.

6) What does LINQ stand for______

  • A. Local Integration Query
  • B.Language Included Query
  • C.Language Integrated Query
  • D.None of the above

7) C# class is Inherit the multiple_______

  • A. Interfaces
  • B.Classes
  • C.Abstract classes
  • D.Static classes

8) SOAP stands for______.

  • A. Simple Object Access Program
  • B.Simple Object Application Protocol
  • C.Simple Object Access Protocol
  • D.Simple Object Account Protocol

9) Classes declared with the sealed keyword cannot be base class.

  • A. True
  • B.False

10) Variable declared inside a method is called_______

  • A. Static
  • B.Local
  • C.Private
  • D.Public

11) What is Constructor are:

  • A. is used to create objects
  • B.is a method of a class
  • C.same name as the class it is declared within
  • D.All of the above

12) Instance variable______

  • A. an attribute of an object
  • B.object of a class
  • C.is a method of a class
  • D.All of the above

13) Duck typing is implemented by Which keyword using.

  • A. object
  • B.base
  • C.dynamic
  • D.ref

14) ______methods are not supported for dynamic types.

  • A. Abstract
  • B.Static
  • C.Anonymous
  • D.Extension

15) Which is used for casting of object to a type or a class.

  • A. is
  • B.as
  • C.this
  • D.at

16) Which is immutable class

  • A. System.String
  • B.System.Text.Builder
  • C.System.StringBuilder
  • D.System.Text.StringBuilder

17) What is sealed Modifier

  • A. Prevents polymorphism.
  • B.Prevents method overloading.
  • C.Prevents inheritance of a class.
  • D.Prevents illegal access to a class.

18) ________are the GUI components created for web based interactions.

  • A. Window Forms
  • B.Application Forms
  • C.Web forms
  • D.None of the above

19) Structs can be inherited?

  • A. True
  • B.False

20) In C#, having unreachable code is always an_____

  • A. Method
  • B.Function
  • C.Error
  • D.Iterative

21) ____ are reserved, and cannot be used as identifiers.

  • A. literal
  • B.Keywords
  • C.Identifiers
  • D.variables

22) CLR is physically represented by an assembly named_______

  • A. mscor.dll
  • B.msoree.dll
  • C.mcoree.dll
  • D.mscoree.dll

23) Formal parameter list is always enclosed in_______

  • A. Colon
  • B.Semicolon
  • C.Parenthesis
  • D.Square

24) Dynamic operations at run time is called the______

  • A. CLR
  • B.DLR
  • C.CTS
  • D.CLS

25) What is the wild card character in the SQL "like" statement?

  • A. *
  • B.#
  • C.%
  • D.$

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Feb
Blue Prism MCQ
01st
Feb
JSON MCQ
01st
Jun
Devops mcq
01st
Feb
Sql Server MCQ