[go: up one dir, main page]

0% found this document useful (0 votes)
295 views21 pages

A - B - C - D - E.: Answer: Explanation

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 21

 

Home
1.  Which of the following statements are TRUE about the .NET CLR?
It provides a language-neutral development & execution environment.
It ensures that an application would not be able to access memory that it is not
authorized to access.
It provides services to run "managed" applications.
The resources are garbage collected.
It provides services to run "unmanaged" applications.
A
Only 1 and 2
.

B
Only 1, 2 and 4
.

C
1, 2, 3, 4
.

D
Only 4 and 5
.

E. Only 3 and 4
Answer: Option C
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

2.  Which of the following are valid .NET CLR JIT performance counters?
Total memory used for JIT compilation
Average memory used for JIT compilation
Number of methods that failed to compile with the standard JIT
Percentage of processor time spent performing JIT compilation
Percentage of memory currently dedicated for JIT compilation
A
1, 5
.

B
3, 4
.

C
1, 2
.
D
4, 5
.
Answer: Option B
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

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.


Answer: Option D
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

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
Answer: Option B
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

5.  Which of the following are NOT true about .NET Framework?
It provides a consistent object-oriented programming environment whether object code is
stored and executed locally, executed locally but Internet-distributed, or executed remotely.
It provides a code-execution environment that minimizes software deployment and
versioning conflicts.
It provides a code-execution environment that promotes safe execution of code,
including code created by an unknown or semi-trusted third party.
It provides different programming models for Windows-based applications and Web-
based applications.
It provides an event driven programming model for building Windows Device Drivers.
 

11.  Which of the following assemblies can be stored in Global Assembly Cache?
A
Private Assemblies
.

B
Friend Assemblies
.

C
Shared Assemblies
.

D
Public Assemblies
.

E. Protected Assemblies
Answer: Option C
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

12.  Code that targets the Common Language Runtime is known as


A
Unmanaged
.

B
Distributed
.

C
Legacy
.

D
Managed Code
.

E. Native Code
Answer: Option D
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

13.  Which of the following statements is correct about the .NET Framework?
A
.NET Framework uses DCOM for achieving language interoperability.
.

B
.NET Framework is built on the DCOM technology.
.

C .NET Framework uses DCOM for making transition between managed and unmanaged
. code.
D
.NET Framework uses DCOM for creating unmanaged applications.
.

E. .NET Framework uses COM+ services while creating Distributed Applications.


Answer: Option C
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

14.  Which of the following is the root of the .NET type hierarchy?
A System.Object
.

B System.Type
.

C System.Base
.

D System.Parent
.

E. System.Root
Answer: Option A
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

15.  Which of the following benefits do we get on running managed code under CLR?
Type safety of the code running under CLR is assured.
It is ensured that an application would not access the memory that it is not authorized to
access.
It launches separate process for every application running under it.
The resources are Garbage collected.
A
Only 1 and 2
.

B
Only 2, 3 and 4
.

C
Only 1, 2 and 4
.

D
Only 4
.
E. All of the above
Answer: Option E
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

A
1, 2
.

B
2, 4
.

C
4, 5
.

D
1, 2, 4
.
Answer: Option C

6.  Which of the following components of the .NET framework provide an extensible set of classes
that can be used by any .NET compliant programming language?
A
.NET class libraries
.

B
Common Language Runtime
.

C
Common Language Infrastructure
.

D
Component Object Model
.

E. Common Type System


Answer: Option A
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

7.  Which of the following jobs are NOT performed by Garbage Collector?
Freeing memory on the stack.
Avoiding memory leaks.
Freeing memory occupied by unreferenced objects.
Closing unclosed database collections.
Closing unclosed files.
A
1, 2, 3
.

B
3, 5
.

C
1, 4, 5
.

D
3, 4
.
Answer: Option C
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

8.  Which of the following .NET components can be used to remove unused references from the
managed heap?
A
Common Language Infrastructure
.

B
CLR
.

C
Garbage Collector
.

D
Class Loader
.

E. CTS
Answer: Option C
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

9.  Which of the following statements correctly define .NET Framework?


A It is an environment for developing, building, deploying and executing Desktop
. Applications, Web Applications and Web Services.

B It is an environment for developing, building, deploying and executing only Web


. Applications.
C It is an environment for developing, building, deploying and executing Distributed
. Applications.

D
It is an environment for developing, building, deploying and executing Web Services.
.

E. It is an environment for development and execution of Windows applications.


Answer: Option A
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

10.  Which of the following constitutes the .NET Framework?


ASP.NET Applications
CLR
Framework Class Library
WinForm Applications
Windows Services
A
1, 2
.

B
2, 3
.

C
3, 4
.

D
2, 5
.
Answer: Option B

HomeAptitudeLogicalVerbalCurrent AffairsGKEngineeringInterviewOnline TestsPuzzles
16.  Which of the following security features can .NET applications avail?
PIN Security
Code Access Security
Role Based Security
Authentication Security
Biorhythm Security
A 1, 4, 5
.

B
2, 5
.

C
2, 3
.

D
3, 4
.
Answer: Option C
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

17.  Which of the following jobs are done by Common Language Runtime?
It provides core services such as memory management, thread management, and
remoting.
It enforces strict type safety.
It provides Code Access Security.
It provides Garbage Collection Services.
A
Only 1 and 2
.

B
Only 3, 4
.

C
Only 1, 3 and 4
.

D
Only 2, 3 and 4
.

E. All of the above


Answer: Option E
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

18.  Which of the following statements are correct about a .NET Assembly?
It is the smallest deployable unit.
Each assembly has only one entry point - Main(), WinMain() or DLLMain().
An assembly can be a Shared assembly or a Private assembly.
An assembly can contain only code and data.
An assembly is always in the form of an EXE file.
A
1, 2, 3
.

B
2, 4, 5
.

C
1, 3, 5
.

D
1, 2
.
Answer: Option A
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

19.  Which of the following statements are correct about JIT?


JIT compiler compiles instructions into machine code at run time.
The code compiler by the JIT compiler runs under CLR.
The instructions compiled by JIT compilers are written in native code.
The instructions compiled by JIT compilers are written in Intermediate Language (IL)
code.
The method is JIT compiled even if it is not called
A
1, 2, 3
.

B
2, 4
.

C
3, 4, 5
.

D
1, 2
.
Answer: Option A
Explanation:
No answer description available for this question. Let us discuss.
View Answer Discuss in Forum Workspace Report

20.  Which of the following are parts of the .NET Framework?


The Common Language Runtime (CLR)
The Framework Class Libraries (FCL)
Microsoft Published Web Services
Applications deployed on IIS
Mobile Applications
A
Only 1, 2, 3
.

B
Only 1, 2
.

C
Only 1, 2, 4
.

D
Only 4, 5
.

E. All of the above


Answer: Option B
 

1. The … is the execution engine for .NET applications and servers as the interface between
.NET applications and the operating system.
A)Common Language Specifications (CLS)
B)Common Language Runtime (CLR)
C)Common Type System (CTS)
D) Framework Class Library (FCL)

2. The .NET Framework Class Library (FCL) is also known as …


A)Base Class Library (BCL)
B)Common Class Library (CCL)
C)Global Class Library (GCL)
D) Public Class Library (PCL)

3. State whether the following statements about .NET Frameworks are TRUE or FALSE.
i)The .NET FCL Is object-oriented.
ii) The CLR is the platform on which applications hosted and executed.
A)i-True, ii-False
B)i-False, ii-True
C)i-True, ii-True
D) i-False, ii-False

4. The .NET … is a collection of reusable types that are integrated with the CLR.
A) Common Language Specifications (CLS)
B) Common Language Runtime (CLR)
C) Common Type System (CTS)
D) Framework Class Library (FCL)
5. … is an agreement among language designers and class library designers to use a common
subset of basic language features that all languages have to follow.
A)Common Language Specifications (CLS)
B)Common Language Runtime (CLR)
C)Common Type System (CTS)
D) Framework Class Library (FCL)

6. … describes how types are declared, used, and managed in the runtime.
A)Common Language Specifications (CLS)
B)Common Language Runtime (CLR)
C) Common Type System (CTS)
D) Framework Class Library (FCL)

7. State which of the following statements about the .NET framework are TRUE.
i) CTS helps developers to develop applications in a single language.
ii) Data and XML classes extend the FCL to support data management and XML
manipulation.
iii) XML classes support various operations on XML data like searching, translations,
modifying, etc.
A) i and ii only
B) ii and iii only
C) I and iii only
D) All i, ii and iii

8. … is a code that consists of CPU and platform-independent set of instructions, which can
be easily converted to native code.
A) JIT
B) FCL
C) DLL
D) MSIL

9. State whether the following statements about the Microsoft Intermediate Language (MSIL)
are TRUE or FALSE.
i) The MSIL code includes instructions to load, initialize and invoke methods on objects.
ii) The MSIL code is collected and assembled in the form of byte codes and is converted to
a .NET assembly.
A) i-True, ii-False
B) i-False ii-True
C) i-True, ii-True
D) i-False, ii-False

10. The main function of … is to convert the managed code into native code and then execute
the code.
A) CLR
B) CTS
C) CLS
D) FCL

11. Which of the following is/are the modules of Common Language Runtime(CLR).
i) Thread Support
ii) Type Checker
iii) Security Engine
A) I and ii only
B) ii and iii only
C) I and iii only
D) All i, ii and iii

12. … will verify types used in the application with CTS or CLS standards supported by CLR.
A) Exception manager
B) Type checker
C) Code manager
D) Class loader

13. The … is responsible for allocating, freeing, and compacting memory.


A) garbage collector
B) type checker
C) code manager
D) memory manager

14. The … compiles the applications to Microsoft Intermediate Language (MSIL) and not the
machine code.
A) CLR
B) CTS
C) CLS
D) FCL

15. State whether the following statements about the managed and unmanaged code are
TRUE or FALSE.
i) Managed code is the code that is executed directly by the CLR.
ii) Managed code directly compiles to the machine code and runs on the machine where it has
to be compiled.
iii) Unmanaged code does not have services such as security or memory management.
A) i-True, ii-False, iii-False
B) i-False, ii-True, iii-False
C) i-True, ii-False, iii-True
D) i-False, ii-False, iii-True

16. … ensures complete interoperability among applications, regardless of the language used
to create the application.
A) CLR
B) CLS
C) CTS
D) FCL

17. State which of the following statements about the Namespace are TRUE.
i) All the classes and types of .NET FCL are organized in the namespace.
ii) Namespaces correspond to file or directory names.
iii) It is the grouping of logically related identifiers or classes.
A) I and ii only
B) ii and iii only
C) I and iii only
D) All i, ii and iii

18. The … namespace includes classes and interfaces that define the various collections of
objects such as lists, queues, hash tables, arrays, etc.
A) system.collection
B) system
C) system.data
D) system.drawing

19. The … namespace includes classes that allow us to debug our application and to step
through our code.
A) system.collection
B) system.security
C) system.diagnostics
D) system.threading

20. The … namespace includes classes and interfaces that return information about types,
methods, and fields.
A) system
B) system.security
C) system.data
D) system.reflection

Read Also: MCQ Questions On Windows Forms In VB.Net Part-2


Answers;
1. B) Common Language Runtime (CLR)
2. A) Base Class Library (BCL)
3. C) i-True, ii-True
4. D) Framework Class Library (FCL)
5. A) Common Language Specifications (CLS)
6. C) Common Type System (CTS)
7. B) ii and iii only
8. D) MSIL
9. C) i-True, ii-True
10. A) CLR
11. D) All i, ii and iii
12. B) Type checker
13. A) garbage collector
14. A) CLR
15. C) i-True, ii-False, iii-True
16. B) CLS
17. C) i and iii only
18. A) system.collection
19. C) system.diagnostics
20. D) system.reflection

1. The … is the execution engine for .NET applications and servers as the interface between
.NET applications and the operating system.
A) Common Language Specifications (CLS)
B) Common Language Runtime (CLR)
C) Common Type System (CTS)
D) Framework Class Library (FCL)

2. The .NET Framework Class Library (FCL) is also known as …


A) Base Class Library (BCL)
B) Common Class Library (CCL)
C) Global Class Library (GCL)
D) Public Class Library (PCL)

3. State whether the following statements about .NET Frameworks are TRUE or FALSE.
i) The .NET FCL is object-oriented.
ii) The CLR is the platform on which applications hosted and executed.
A) i-True, ii-False
B) i-False, ii-True
C) i-True, ii-True
D) i-False, ii-False

4. The .NET … is a collection of reusable types that are integrated with the CLR.
A) Common Language Specifications (CLS)
B) Common Language Runtime (CLR)
C) Common Type System (CTS)
D) Framework Class Library (FCL)
5. … is an agreement among language designers and class library designers to use a common
subset of basic language features that all languages have to follow.
A) Common Language Specifications (CLS)
B) Common Language Runtime (CLR)
C) Common Type System (CTS)
D) Framework Class Library (FCL)

6. … describes how types are declared, used, and managed in the runtime.
A) Common Language Specifications (CLS)
B) Common Language Runtime (CLR)
C) Common Type System (CTS)
D) Framework Class Library (FCL)

7. State which of the following statements about the .NET framework are TRUE.
i) CTS helps developers to develop applications in a single language.
ii) Data and XML classes extend the FCL to support data management and XML
manipulation.
iii) XML classes support various operations on XML data like searching, translations,
modifying, etc.
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

8. … is a code that consists of CPU and platform-independent set of instructions, which can
be easily converted to native code.
A) JIT
B) FCL
C) DLL
D) MSIL

9. State whether the following statements about the Microsoft Intermediate Language (MSIL)
are TRUE or FALSE.
i) The MSIL code includes instructions to load, initialize and invoke methods on objects.
ii) The MSIL code is collected and assembled in the form of byte codes and is converted to
a .NET assembly.
A) i-True, ii-False
B) i-False, ii-True
C) i-True, ii-True
D) i-False, ii-False

10. The main function of … is to convert the managed code into native code and then execute
the code.
A) CLR
B) CTS
C) CLS
D) FCL

11. Which of the following is/are the modules of Common Language Runtime(CLR).
i) Thread Support
ii) Type Checker
iii) Security Engine
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

12. … will verify types used in the application with CTS or CLS standards supported by CLR.
A) Exception manager
B) Type checker
C) Code manager
D) Class loader

13. The … is responsible for allocating, freeing, and compacting memory.


A) garbage collector
B) type checker
C) code manager
D) memory manager

14. The … compiles the applications to Microsoft Intermediate Language (MSIL) and not the
machine code.
A) CLR
B) CTS
C) CLS
D) FCL

15. State whether the following statements about the managed and unmanaged code are
TRUE or FALSE.
i) Managed code is the code that is executed directly by the CLR.
ii) Managed code directly compiles to the machine code and runs on the machine where it has
to be compiled.
iii) Unmanaged code does not have services such as security or memory management.
A) i-True, ii-False, iii-False
B) i-False, ii-True, iii-False
C) i-True, ii-False, iii-True
D) i-False, ii-False, iii-True
16. … ensures complete interoperability among applications, regardless of the language used
to create the application.
A) CLR
B) CLS
C) CTS
D) FCL

17. State which of the following statements about the Namespace are TRUE.
i) All the classes and types of .NET FCL are organized in the namespace.
ii) Namespaces correspond to file or directory names.
iii) It is the grouping of logically related identifiers or classes.
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii

18. The … namespace includes classes and interfaces that define the various collections of
objects such as lists, queues, hash tables, arrays, etc.
A) system.collection
B) system
C) system.data
D) system.drawing

19. The … namespace includes classes that allow us to debug our application and to step
through our code.
A) system.collection
B) system.security
C) system.diagnostics
D) system.threading

20. The … namespace includes classes and interfaces that return information about types,
methods, and fields.
A) system
B) system.security
C) system.data
D) system.reflection

Read Also: MCQ Questions On Windows Forms In VB.Net Part-2


Answers;
1. B) Common Language Runtime (CLR)
2. A) Base Class Library (BCL)
3. C) i-True, ii-True
4. D) Framework Class Library (FCL)
5. A) Common Language Specifications (CLS)
6. C) Common Type System (CTS)
7. B) ii and iii only
8. D) MSIL
9. C) i-True, ii-True
10. A) CLR
11. D) All i, ii and iii
12. B) Type checker
13. A) garbage collector
14. A) CLR
15. C) i-True, ii-False, iii-True
16. B) CLS
17. C) i and iii only
18. A) system.collection
19. C) system.diagnostics
20. D) system.reflectio

[1] .NET Framework Is An Internal _____ Component That Supports The


Execution Of Applications Created By Using Various Programming Languages.
1. Internet
2. Windows
3. Hardware
4. language
Ans. Option B
[2] What Is CLR?
1. Common language runtime
2. Compiler language runtime
3. Compiler library runtime
4. Common library runtime
Ans. Option A
[3] Which Is The Following Is Not A Component Of The CLR?
1. Class loader
2. Garbage collector
3. .NET Framework
4. JIT Compiler
Ans. Option C
[4] Which Of The Following Provides Automatic Memory Management And
Resolves The Issue Of Memory Leaks And Invalid Memory References
1. Security engine
2. Garbage collector
3. JIT compiler
4. Debugger
Ans. Option B
[5] What Is CTS?
1. Common type specification
2. Common type-safe
3. Compiler type structure
4. Common type system
Ans. Option D
.Net MCQ
[6] What Is CLS?
1. Compiler library specification
2. Common library specification
3. Compiler language specification
4. Common language specification
Ans. Option D
[7] What Is DLL
1. Dynamic-link language
2. Direct link language
3. Dynamic-link library
4. Direct link library
Ans. Option C
[8] Which Of The Following Namespace Provides The Classes That Allow You
To Debug Your Application Step By Step?
1. System
2. System .Diagnostics
3. System.Object
4. System.Security
Ans. Option B
[9] What Is GAC?
1. Garbage collector
2. Global assembly collector
3. Global access cache
4. Global assembly cache
Ans. Option D
[10] What Is COM?
1. Component object model
2. Common object model
3. Computer oriented model
4. Common oriented model
Ans. Option A

You might also like