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

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. Features of Read only variables

  • (A) It is allocated at runtime
  • (B) Declaration and initialization is separated
  • (C) It is allocated at compile time
  • (D) All of the above

A

Admin • 833.24K Points
Coach

Q. A local variable

  • (A) Represent a class object
  • (B) Must accept a class
  • (C) Is declared within a method
  • (D) Can be used anywhere in the program

A

Admin • 833.24K Points
Coach

Q. Private Button print = new button();

  • (A) creates a button control
  • (B) initializes a button control
  • (C) instantiates button control
  • (D) Both A and C

A

Admin • 833.24K Points
Coach

Q. An instance method

  • (A) Represents the behavior of an object
  • (B) Represents the attribute of an object
  • (C) Represents another class
  • (D) Both A and B

A

Admin • 833.24K Points
Coach

Q. A Constructor -

  • (A) is used to create objects
  • (B) must have the same name as the class it is declared within
  • (C) is a method of a class
  • (D) Both B and C

A

Admin • 833.24K Points
Coach

Q. A variable declared inside a method is called a________variable

  • (A) Static
  • (B) Private
  • (C) Local
  • (D) Serial

A

Admin • 833.24K Points
Coach

Q. Defining two methods with the same name but with different parameters is called.

  • (A) Duplexing
  • (B) Multiplexing
  • (C) Overloading
  • (D) Loading

A

Admin • 833.24K Points
Coach

Q. String mystring; Creates a(n)

  • (A) Object
  • (B) class
  • (C) Constructor
  • (D) Both A and B

A

Admin • 833.24K Points
Coach

Q. An Event is -

  • (A) code to force users action
  • (B) The result of a users action
  • (C) result of a party
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. A delegate defines

  • (A) a Wahsington representative
  • (B) a class that encapsulates methods
  • (C) a means of passing arrays into methods
  • (D) a substitue for an inherited method

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