Languages-Assembly Language [TCS Placement]: Sample Questions 7 - 9 of 9

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 7

Assembly Language
Edit

Describe in Detail

Essay▾

What is Native Image Generator?

Explanation

  • Native Image Generator (Ngen. exe) creates a native image from an assembly and stores that image to native image cache on the computer.
  • Whenever, an assembly is run, this native image is automatically used to compile the original assembly, improving the performance of the managed application by loading and executing an assembly faster.
  • Native images consist of compiled processor-specific machine code. The Ngen. exe tool installs these files on to the local computer.
Given the Image is Define the Native Image Generator

Question 8

Assembly Language
Edit

Write in Short

Short Answer▾

Name the different components of an assembly.

Explanation

An assembly is a logical unit made up of the following components:

  • Assembly manifest
  • MSIL source code
  • Type metadata
  • Resources

Question 9

Assembly Language
Edit

Describe in Detail

Essay▾

Give a brief introduction on side-by-side execution. Can two applications, one using private assembly, and the other using the shared assembly be stated as side-by-side executables?

Explanation

  • Side-by-side execution enables multiple versions of an application or component and CLR to run on the same computer at the same time.
  • Versioning is applicable only to shared assemblies and not to private assemblies.
  • Allows multiple versions of the common language runtime, and multiple versions of applications and components that use a version of the runtime, on the same computer at the same time.
  • The following illustration shows several applications using two different versions of a component on the same computer. Application A and B use version 1.0 of the component while Application C uses version 2.0 of the same component.
Given the Image is Define the Illustration Shows Several Applications Using Two Different Versions of a Component on the Same Computer
  • Side-by-side execution of two versions of the runtime
  • Side-by-side execution provides more control on versions of a component an application binds to, and control over versions of the runtime an application uses.
  • Two applications, one using a private assembly and other using a shared assembly, cannot be stated as side-by-side executables.

Developed by: