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

Assembly Language
Edit

Describe in Detail

Essay▾

What is difference between Namespace and Assembly?

Explanation

  • Namespace:-
    • Namespaces is logical group of related classes used by any other language targeting the Microsoft . Net framework.
    • Used for logical organization of classes.
    • Namespaces provide grouping type names, reducing the chance of name collisions.
  • Assembly:
    • An assembly is a collection of types and resources built to work together and form a logical unit of functionality.
    • It is contained in output unit, that is . exe or . dll file.
    • It is a unit of deployment and a unit of versioning and also contain MSIL (Microsoft Intermediate Language) .
    • Assemblies are self-describing containing all metadata about the modules, types, and other elements in the form of a manifest.
    • Assemblies are of two types: Private and Shared Assemblies.

Question 4

Assembly Language
Edit

Describe in Detail

Essay▾

How does CAS works?

Explanation

  • CAS security policy has code groups and permissions.
  • A code group contains assemblies such that each . NET assembly is related to a particular code group and some permissions are granted to each code group.
  • For example, using the default security policy, a control downloaded from a Web site belongs to the Zone, Internet code group, which adheres to the permissions defined by the named permission set.
  • Assembly execution involves the following steps:
  • Evidences are gathered about assembly.
  • Depending on the gathered evidences, the assembly is assigned to a code group.
  • Security rights are allocated to the assembly, depending on the code group.
  • Assembly runs as per the rights assigned to it.
Given the Image is Define the CAS Works

Developed by: