C# (C Sharp) MCQs with answers Page - 29

Here, you will find a collection of MCQ questions on C# (C Sharp). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. The character pair ?: is a________________available in C#.

  • (A) Unary operator
  • (B) Ternary operator
  • (C) Decision operator
  • (D) Functional operator

A

Admin • 833.24K Points
Coach

Q. A _____ is any valid C# variable ending with a colon.

  • (A) Bitwise
  • (B) Logical
  • (C) Label
  • (D) goto

A

Admin • 833.24K Points
Coach

Q. An ____ is a group of contiguous or related data items that share a common name.

  • (A) Array
  • (B) Exponential
  • (C) Integer
  • (D) Operator

A

Admin • 833.24K Points
Coach

Q. Arrays in C# are ______ objects.

  • (A) Arithmetic
  • (B) Value
  • (C) Logical
  • (D) Reference

A

Admin • 833.24K Points
Coach

Q. Struct’s data members are ____________ by default.

  • (A) Default
  • (B) Private
  • (C) Public
  • (D) Protected

A

Admin • 833.24K Points
Coach

Q. Exponential formatting character (‘E’ or ‘e’) converts a given value to string in the form of _______.

  • (A) m.dddd E+xxx
  • (B) m.dddd
  • (C) E+xxx
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. The infrastructure that supports these dynamic operations at run time is called the__________.

  • (A) CLR
  • (B) CTS
  • (C) CLS
  • (D) DLR

A

Admin • 833.24K Points
Coach

Q. _______ methods are not supported for dynamic types.

  • (A) Extension
  • (B) Abstract
  • (C) Static
  • (D) Anonymous

A

Admin • 833.24K Points
Coach

Q. myMobile.Accept(55, inReject: false); Above statement is an example of which new concept of C# 4.0?

  • (A) Variance
  • (B) Dynamic
  • (C) Optional Parameters
  • (D) Named Parameters

A

Admin • 833.24K Points
Coach

Q. COM Interop is simplified in C#4.0 e.g.var doc = Application.GetDocument("MyFile.txt"); In above statement_______ keyword was essential in parameters of GetDocument() in previous versions of C#.

  • (A) out
  • (B) named
  • (C) base
  • (D) ref

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ