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

Added 16 Sep 2025

Which keyword defines a namespace in C#?

  1. namespace Correct answer
  2. package
  3. module
  4. library

Correct answer

A. namespace

13 views

MCQSEXAM

Explanation

The 'namespace' keyword is used to declare a scope containing related code elements.

Reference

Asked in: Programming Exams

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace

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