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.
|
Only 1 and 2
|
|
|
Only 1, 2 and 4
|
|
|
1, 2, 3, 4
|
|
|
Only 4 and 5
|
|
|
Only 3 and 4
|
- 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
|
Managed code is the code that is
compiled by the JIT compilers.
|
|
|
Managed code is the code where
resources are Garbage Collected.
|
|
|
Managed code is the code that runs
on top of Windows.
|
|
|
Managed code is the
code that is written to target the services of the CLR.
|
|
|
Managed code is the code that can
run on top of Linux.
|
|
gacutil
|
ngen
|
||
|
sn
|
dumpbin
|
||
|
ildasm
|
- 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.
|
1, 2
|
|
|
2, 4
|
|
|
4, 5
|
|
|
1, 2, 4
|
|
.NET class libraries
|
|
|
Common Language Runtime
|
|
|
Common Language Infrastructure
|
|
|
Component Object Model
|
|
|
Common Type System
|
- Freeing memory on the stack.
- Avoiding memory leaks.
- Freeing memory occupied by unreferenced objects.
- Closing unclosed database collections.
- Closing unclosed files.
|
1, 2, 3
|
|
|
3, 5
|
|
|
1, 4, 5
|
|
|
3, 4
|
|
Common Language Infrastructure
|
|
|
CLR
|
|
|
Garbage Collector
|
|
|
Class Loader
|
|
|
CTS
|
|
It is an environment
for developing, building, deploying and executing Desktop Applications, Web
Applications and Web Services.
|
|
|
It is an environment for
developing, building, deploying and executing only Web Applications.
|
|
|
It is an environment for
developing, building, deploying and executing Distributed Applications.
|
|
|
It is an environment for
developing, building, deploying and executing Web Services.
|
|
|
It is an environment for
development and execution of Windows applications.
|
- ASP.NET Applications
- CLR
- Framework Class Library
- WinForm Applications
- Windows Services
11.
Which of the following assemblies can be stored in Global Assembly Cache?
|
Private Assemblies
|
|
|
Friend Assemblies
|
|
|
Shared Assemblies
|
|
|
Public Assemblies
|
|
|
Protected Assemblies
|
|
Unmanaged
|
|
|
Distributed
|
|
|
Legacy
|
|
|
Managed Code
|
|
|
.NET Framework uses DCOM for
achieving language interoperability.
|
|
|
.NET Framework is built on the
DCOM technology.
|
|
|
.NET Framework uses
DCOM for making transition between managed and unmanaged code.
|
|
|
.NET Framework uses DCOM for
creating unmanaged applications.
|
|
|
.NET Framework uses COM+ services
while creating Distributed Applications.
|
14.
Which of the following is the
root of the .NET type hierarchy?
|
System.Object
|
|
|
System.Type
|
|
|
System.Base
|
|
|
System.Parent
|
|
|
System.Root
|
- 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.
|
Only 1 and 2
|
|
|
Only 2, 3 and 4
|
|
|
Only 1, 2 and 4
|
|
|
Only 4
|
|
|
All of the above
|
- PIN Security
- Code Access Security
- Role Based Security
- Authentication Security
- Biorhythm Security
|
1, 4, 5
|
|
|
2, 5
|
|
|
2, 3
|
|
|
3, 4
|
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.
|
Only 1 and 2
|
|
|
Only 3, 4
|
|
|
Only 1, 3 and 4
|
|
|
Only 2, 3 and 4
|
|
|
All of the above
|
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.
|
1, 2, 3
|
|
|
2, 4, 5
|
|
|
1, 3, 5
|
|
|
1, 2
|
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
|
1, 2, 3
|
|
|
2, 4
|
|
|
3, 4, 5
|
|
|
1, 2
|
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
|
Only 1, 2, 3
|
|
|
Only 1, 2
|
|
|
Only 1, 2, 4
|
|
|
Only 4, 5
|
|
|
All of the above
|
No comments:
Post a Comment