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:
- A) System
- B) Assembly
- D) i-True, ii- True, iii-False
- D) All i, ii and iii
- A) Manifest
- C) Static assemblies
- D) Dynamic assemblies
- B) i-False, ii-True
- A) Shared assembly
- B) Satellite assembly
- D) All i, ii and iii
- D) All i, ii and iii
- A) CLI
- B) CTS
- D) i-True, ii- True, iii-False
- D) All i, ii and iii
- C) Garbage Collector
- D) All i, ii and iii
- C) i-True, ii-False, iii-True
- D) All i, ii and iii
Comments are closed.