Chapter1_ Introduction To Net Framework

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Atsi
A
Atsi
Community Contributor
Quizzes Created: 1 | Total Attempts: 357
Questions: 10 | Attempts: 358

SettingsSettingsSettings
Programming Quizzes & Trivia

Questions and Answers
  • 1. 

    1)Which of the following is not a .NET compatible language?

    • A.

      C#, J#

    • B.

      VB.NET

    • C.

      Managed C++

    • D.

      Java

    • E.

      COBOL.NET, Perl.NET

    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.

    Rate this question:

  • 2. 

    Common language specification (CLS)

    • A.

      Is an execution engine for all .NET

    • B.

      Is similar to JVM as in Java.

    • C.

      Defines standard rules for defining .NET compliant languages.

    • D.

      Is a compiler.

    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.

    Rate this question:

  • 3. 

    Which of the following statements is correct about Managed Code?

    • A.

      Managed code is the code that is compiled by the JIT compilers.

    • B.

      Managed code is the code where resources are Garbage Collected.

    • C.

      Managed code is the code that runs on top of Windows.

    • D.

      Managed code is the code that is written to target the services of the CLR.

    • E.

      Managed code is the code that can run on top of Linux.

    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.

    Rate this question:

  • 4. 

    Which of the following utilities can be used to compile managed assemblies into processor-specific native code?

    • A.

      Gacutil

    • B.

      Ngen

    • C.

      Sn

    • D.

      Dumpbin

    • E.

      Ildasm

    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.

    Rate this question:

  • 5. 

    Which of the following statement is not correct?

    • A.

      CLR is an execution engine of .NET.

    • B.

      Assembly is a logical unit of deployment.

    • C.

      CLR executes managed code.

    • D.

      .NET provides cross language interoperability using code access security.

    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.

    Rate this question:

  • 6. 

    Which is the base class of all classes in .NET Framework

    • A.

      System.Object

    • B.

      System

    • C.

      System.Net

    • D.

      System.Drawing

    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.

    Rate this question:

  • 7. 

    Econo-JIT is an example

    • A.

      Compiler

    • B.

      Assembler

    • C.

      Interpretor

    • D.

      Dis-Assembler

    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.

    Rate this question:

  • 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

    • A.

      CLS

    • B.

      CLR

    • C.

      CTS

    • D.

      FCL

    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.

    Rate this question:

  • 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).

    • A.

      True

    • B.

      False

    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.

    Rate this question:

  • 10. 

    Common Language Runtime (CLR physical represented by a library named MSCOREE.dll (Microsoft Common Runtime Execution Engine).

    • A.

      True

    • B.

      False

    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.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 19, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 17, 2013
    Quiz Created by
    Atsi
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.