1.
1)Which of the following is not a .NET compatible language?
Correct Answer
D. Java
Explanation
Java is not a .NET compatible language because it is a programming language that runs on its own virtual machine, called the Java Virtual Machine (JVM). .NET is a software framework developed by Microsoft, and while it supports multiple programming languages like C#, VB.NET, and Managed C++, Java is not one of them. Java has its own ecosystem and does not rely on the .NET framework for development.
2.
Common language specification (CLS)
Correct Answer
C. Defines standard rules for defining .NET compliant languages.
Explanation
The correct answer is "defines standard rules for defining .NET compliant languages." The Common Language Specification (CLS) is a set of rules and guidelines that ensure interoperability between different .NET languages. It defines a common set of language features and data types that all .NET compliant languages must support in order to be able to interact with each other. By adhering to the CLS, developers can write code in one .NET language and use it in another without any issues.
3.
Which of the following statements is correct about Managed Code?
Correct Answer
D. Managed code is the code that is written to target the services of the CLR.
Explanation
Managed code is the code that is written to target the services of the CLR. This means that it is designed to run within the Common Language Runtime (CLR) environment, which provides services such as memory management, exception handling, and security. The CLR is responsible for compiling the managed code into machine code at runtime, and it also manages resources and performs garbage collection. Therefore, the correct statement is that managed code is written to target the services of the CLR.
4.
Which of the following utilities can be used to compile managed assemblies into processor-specific native code?
Correct Answer
B. Ngen
Explanation
Ngen (Native Image Generator) is a utility that can be used to compile managed assemblies into processor-specific native code. It creates native images, which are files containing compiled processor-specific machine code that can be executed directly by the operating system. This improves the performance of the application by eliminating the need for just-in-time (JIT) compilation at runtime.
5.
Which of the following statement is not correct?
Correct Answer
D. .NET provides cross language interoperability using code access security.
Explanation
The statement " .NET provides cross language interoperability using code access security" is not correct. While .NET does provide cross language interoperability, it is achieved through the Common Language Runtime (CLR), not code access security. Code access security is a mechanism in .NET that helps protect resources and restricts the actions that code can perform, but it is not directly related to cross language interoperability.
6.
Which is the base class of all classes in .NET Framework
Correct Answer
A. System.Object
Explanation
The base class of all classes in the .NET Framework is System.Object. This class is the root of the .NET type hierarchy and provides basic functionality that is inherited by all other classes. It defines methods such as ToString(), Equals(), and GetHashCode() which can be overridden and customized by derived classes. By having all classes inherit from System.Object, it allows for a consistent and unified approach to working with objects in the .NET Framework.
7.
Econo-JIT is an example
Correct Answer
A. Compiler
Explanation
Econo-JIT is an example of a compiler. Compilers are software programs that translate source code written in a high-level programming language into machine code or bytecode that can be executed by a computer. Econo-JIT is likely a specific compiler that is designed to optimize code execution and minimize memory usage, hence the term "Econo" in its name. It is important to note that compilers are different from assemblers, interpreters, and dis-assemblers, which have different functions in the software development process.
8.
Which of .NET component defines standard rules that all .NET-Aware languages must follow in order to interact with each other using their objects
Correct Answer
C. CTS
Explanation
The correct answer is CTS (Common Type System). CTS defines the rules that all .NET-Aware languages must follow in order to interact with each other using their objects. It ensures that objects created in one language can be used seamlessly in another language, promoting interoperability between different .NET languages.
9.
Member definitions (i.e naming conventions, parameters and return types) of any language must confirm to the types available in Common Language Specification(CLS).
Correct Answer
A. True
Explanation
The statement is true because the Common Language Specification (CLS) is a set of rules and guidelines that programming languages must adhere to in order to ensure interoperability and compatibility between different languages within the .NET framework. This includes naming conventions, parameter types, and return types. By conforming to the types available in the CLS, member definitions in any language can be used and accessed by other languages in a consistent and standardized manner.
10.
Common Language Runtime (CLR physical represented by a library named MSCOREE.dll (Microsoft Common Runtime Execution Engine).
Correct Answer
A. True
Explanation
The given statement is true. The Common Language Runtime (CLR) is indeed physically represented by a library named MSCOREE.dll, which stands for Microsoft Common Runtime Execution Engine. The CLR is a key component of the .NET framework and provides various services such as memory management, exception handling, and security. MSCOREE.dll is responsible for loading and initializing the CLR when a .NET application is executed. Therefore, the correct answer is true.