1. Home
  2. Computer Science MCQs
  3. C#
  4. Which keyword is used to define a class in C#?

Added 16 Sep 2025

Which keyword is used to define a class in C#?

  1. class Correct answer
  2. struct
  3. define
  4. object

Correct answer

A. class

13 views

MCQSEXAM

Explanation

The 'class' keyword is used to define classes in C#, followed by the class name and body.

Reference

Asked in: Programming Exams

https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/clas…

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C# MCQs

Practise all C# MCQs

Similar MCQs