1. Home
  2. Computer Science MCQs
  3. C#
  4. Which keyword defines a property in C#?

Added 16 Sep 2025

Which keyword defines a property in C#?

  1. property Correct answer
  2. get
  3. set
  4. define

Correct answer

A. property

13 views

MCQSEXAM

Explanation

Properties in C# use get and set accessors to encapsulate field access.

Reference

Asked in: Programming Exams

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

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