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

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. In VC#.NET project files are grouped into a _____________.

  • (A) Workspace
  • (B) Namespace
  • (C) Solution
  • (D) Package

A

Admin • 833.24K Points
Coach

Q. Which one of the following statements about code debugging is correct?

  • (A) Debugger helps us to step through our code, one line at a time.
  • (B) Breakpoints can be set by pressing F9 function key.
  • (C) Breakpoints can be set by left-clicking in the left margin area at the line where we want to set the breakpoint.
  • (D) a, b and c are correct.

A

Admin • 833.24K Points
Coach

Q. The arrays involved in a jagged array_____________.

  • (A) Should be of same size.
  • (B) May be of different sizes.
  • (C) Are not known as subarrays.
  • (D) None of these.

A

Admin • 833.24K Points
Coach

Q. The parameters of a method __________.

  • (A) Help us to pass information to a method.
  • (B) Help us to get information from a method.
  • (C) Help us to pass information to and from a method.
  • (D) None of these.

A

Admin • 833.24K Points
Coach

Q. The ref type parameters are____________.

  • (A) “Input only” parameters.
  • (B) “Input / Output” parameters.
  • (C) “Output only” parameters.
  • (D) None of these.

A

Admin • 833.24K Points
Coach

Q. The out type parameters can be used_______________.

  • (A) Only to pass back a result to the calling functions.
  • (B) Only to send information to the called function.
  • (C) To pass data to the called method and receive information from the called method.
  • (D) None of these.

A

Admin • 833.24K Points
Coach

Q. In case of the Params type parameter____________.

  • (A) Only output can be sent.
  • (B) The number of arguments is variable.
  • (C) Both input and output can be handled.
  • (D) None of these.

A

Admin • 833.24K Points
Coach

Q. An instance class member is referred by using the format____________.

  • (A) Object name. Class member name.
  • (B) Class name. Class member name.
  • (C) Object name. Class member name or class name. class member name.
  • (D) None of these.

A

Admin • 833.24K Points
Coach

Q. Overloaded constructors will have________.

  • (A) Different names
  • (B) Different parameter lists
  • (C) Different return types
  • (D) none of these.

A

Admin • 833.24K Points
Coach

Q. A static constructor_____________.

  • (A) Is executed when the class is loaded.
  • (B) Can be accessed through an object name.
  • (C) Can be executed any number of times.
  • (D) Can have its own destructor.

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