C# Namespace Aptitude Questions and Answers | Set 1

C# Namespace Aptitude Questions | Set 1: This section contains aptitude questions and answers on C# Namespace.
Submitted by Nidhi, on April 08, 2020

1) There are following statements are given below, which of them are correct about namespace in C#.NET?
  1. A namespace used to organize classes, which is useful in big projects.
  2. We can use only predefined namespaces.
  3. To create a namespace, we need to use the keyword "package".
  4. A namespace cannot contain delegates.

Options:

  1. Only A
  2. A and B
  3. B and C
  4. C and D

2) There are the following options that are given below, which is not a part of the namespace in C#.NET?
  1. struct
  2. class
  3. enum
  4. database

3) There are following namespaces are given below, which is not a part of .NET Framework Class Library?
  1. System.Threading
  2. System.Process
  3. System.Security
  4. System.Drawing

4) Which keyword is used to create a namespace in C#.NET?
  1. package
  2. using
  3. namespaces
  4. namespace

5) Which keyword is used to include a predefined namespace in C#.NET?
  1. package
  2. using
  3. include
  4. namespace





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.