CS/IT MCQ Collections

Top 20 Multiple Choice Questions on .NET Fundamentals

Google+ Pinterest LinkedIn Tumblr
This set of multiple-choice questions on .NET fundamentals includes the collection of top 20 objective type questions on the introduction of the .NET framework. It includes MCQ questions on the namespaces in .NET, assembly structure, types and functions of the assembly, common language implementation, metadata, garbage collection, versioning, and side-by-side execution.

Read Also: Top 20 MCQs on the Fundamentals of .Net Framework

1. The … namespace is the root of all namespaces containing all other namespaces as subordinates.
A) System
B) System.Root
C) System.Collections
D) System.Globalization

2. … is a collection of types and resources that are built to work together and form a logical unit of functionality.
A) Namespace
B) Assembly
C) CLS
D) CLR

3. State whether the following statements about .NET assembly are True or False.
i) Assembly physically exists as DLLs or EXEs.
ii) Assembly can include any file types like image files, text files, etc. along with DLLs or EXEs.
iii) One assembly can contain only one file.
A) i-True, ii-True, iii-True
B) i-False, ii-True, iii-True
C) i-True, ii-False, iii-True
D) i-True, ii- True, iii-False

4. .NET assembly can contain which of the following parts.
i) Manifest
ii) MSIL code
iii) Type metadata
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

5. The assembly … includes version information, a list of files packed, and a definition of types, security permissions, version control, and metadata.
A) Manifest
B) MSIL code
C) Type metadata
D) Set of resource

6. … are first stored on disk in portable executable (PE) files then run.
A) Shared assemblies
B) Satellite assemblies
C) Static assemblies
D) Dynamic assemblies

7. … run directly from memory and are not saved to disk before execution.
A) Shared assemblies
B) Satellite assemblies
C) Static assemblies
D) Dynamic assemblies

8. State whether the following statements about the single-file assembly and multi-file assembly are True or False.
i) A single file assembly implements version checking.
ii) You should use command line compilers to create multi-file assemblies.
A) i-True, ii-True
B) i-False, ii-True
C) i-True, ii-False
D) i-False, ii- False

9. A … is stored in the global assembly cache(GAC), which is a repository assembly maintained by .NET runtime.
A) Shared assembly
B) Satellite assembly
C) Static assembly
D) Dynamic assembly

10. A … is an assembly that contains language-specific resources.
A) Shared assembly
B) Satellite assembly
C) Static assembly
D) Dynamic assembly

11. Which of the following steps required in order to convert a private assembly to a global assembly.
i) Creating a strong name
ii) Associate the strong name with the assembly
iii) Place assembly in GAC
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

12. An assembly performs which of the following functions.
i) It forms a security boundary.
ii) It contains code that the CLR executes.
iii) It forms a reference scope boundary.
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

13. … provides a virtual execution environment that uses a compiler to convert the source code of a program in the form of executable code, called bytecode.
A) CLI
B) CTS
C) CLS
D) CLR

14. The … defines how types are declared, used, and managed in the runtime and is also an important part of the runtime’s support for cross-language integration.
A) CLI
B) CTS
C) CLS
D) CLR

15. State whether the following statements about the metadata are True or False.
i) It is binary code that contains the self-description of your program.
ii) It is the information that describes the types used in your code.
iii) It includes the need for Interface Definition Language (IDL) files, header files, or any external method of component reference.
A) i-True, ii-True, iii-True
B) i-False, ii-True, iii-True
C) i-True, ii-False, iii-True
D) i-True, ii- True, iii-False

16. Metadata describes which of the following information.
i) Description of the assembly
ii) Description of types
iii) Attributes
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

17. The releasing of unreferenced objects is happening automatically .NET language by the …
A) Metadata
B) Common type System
C) Garbage Collector
D) Global assembly cache

18. Which of the following are the advantages of Garbage Collector?
i) Allow us to develop an application without having worry to about free memory.
ii) Allocates memory for objects efficiently on the managed heap.
iii) Provides memory safety by making sure that an object cannot use the content of another object.
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

19. State whether the following statements about the side-by-side execution are True or False.
i) Side-by-side execution is the ability to run multiple versions of an application or component on the same computer.
ii) Isolation is an optional component of side-by-side execution.
iii) It uses strong-named assemblies to bind type information to a specific version of an assembly.
A) i-True, ii-True, iii-True
B) i-False, ii-True, iii-True
C) i-True, ii-False, iii-True
D) i-True, ii- True, iii-False

20. Which of the following are the benefits of side-by-side execution.
i) Strong-named assemblies
ii) Version-aware code storage
iii) Isolation
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

Answers:

  1. A) System
  2. B) Assembly
  3. D) i-True, ii- True, iii-False
  4. D) All i, ii and iii
  5. A) Manifest
  6. C) Static assemblies
  7. D) Dynamic assemblies
  8. B) i-False, ii-True
  9. A) Shared assembly
  10. B) Satellite assembly
  11. D) All i, ii and iii
  12. D) All i, ii and iii
  13. A) CLI
  14. B) CTS
  15. D) i-True, ii- True, iii-False
  16. D) All i, ii and iii
  17. C) Garbage Collector
  18. D) All i, ii and iii
  19. C) i-True, ii-False, iii-True
  20. D) All i, ii and iii

Avatar for Shuseel Baral

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 8 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

Write A Comment

Close