Languages-Assembly Language [TCS Placement]: Sample Questions 5 - 6 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 5

Assembly Language
Edit

Describe in Detail

Essay▾

What is metadata?

Explanation

  • An assembly metadata describes every data type and member defined in the code.
  • Stores description of an assembly- name, version, culture, public key of an assembly along with the types exported, other assemblies dependent on this assembly, and security permissions needed to run the application.
  • Stores the description of types- name, visibility, base class, interfaces implemented, and members, such as methods, fields, properties, events, and nested types.
  • Stores attributes- Metadata is stored in binary format, making it sharable among applications that execute on various platforms. It can also be exported to other applications to give information about the services and various features of an application.
The Meta Data

Question 6

Assembly Language
Edit

Describe in Detail

Essay▾

Describe the roles of CLR in . NET Framework.

Explanation

CLR is common runtime environment for all . NET code irrespective of their programming language.

CLR provides an environment to execute . NET applications on target machines. It performs the following:

  • Automatic memory management:
    • Calls predefined functions of . NET framework to allocate and de-allocate memory of . NET objects.
    • Garbage Collection:
    • GC is used to prevent memory leaks or holes. Garbage collector of CLR automatically determines the best time to free the memory of an object.
    • Code Access Security:
    • CLR allows access to code to perform only those tasks for which it has permission. It also checks user՚s permissions after authentication and configuration files of . NET applications.
    • JIT compilation of . NET code:
  • JIT compiler converts MSIL code to targeted machine code for execution.

Developed by: