TCS Placement: Sample Questions 235 - 236 of 502

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 235

Edit

Describe in Detail

Essay▾

What is common Language Specification (CLS) ?

Explanation

  • CLS is a set of rules followed by each . NET- compliant language, enabling interoperability between two . NET-compliant languages.
  • CLS is a subset of CTS, therefore, the languages supported by CLS can use each other՚s class libraries similar to their own.
  • Application programming interfaces (APIs following the rules in CLS can be used by all . NET-compliant languages.
  • The CLS is a common platform that integrates code and components from multiple . NET programming languages allowing a . NET application to be written in multiple programming languages with no extra work by the developer.
Given the Image is Define the Common Language Specification (CLS)

Question 236

Edit

Describe in Detail

Essay▾

What are the improvements made in CAS in . NET 4.0?

Explanation

  • CAS mechanism controls and configures the ability of managed code.
  • Earlier policy was applicable for only native applications and hence security guarantee was limited.
  • Developers thus used alternating solutions, such as operating system-level solutions.
  • . NET Framework 4 turned on the machine-wide security.
  • The shared and hosted Web applications can now run more securely without concerning about the CAS policies.
  • In . NET Framework 4.0, compilation warnings and runtime exceptions warn about obsolete CAS policy types and members either implicitly or explicitly.
  • However, warnings and errors are avoided by using < NetFx40_LegacySecurityPolicy > configuration element.

Developed by: