1) There are the following options are given below, what are parts of the .NET Framework?
- FCL (Framework Class Library)
- Web Services published by Microsoft
- CLR (Common Language Runtime)
- Web Applications
- Mobile Applications
Options:
- D, E
- A, C
- All
- None
Correct answer: 2
A, C
In given options, Framework Class Library and Common Language Runtime are part .NET framework.
2) There are the following statements are given below, which statements are the correct regarding JIT.
- The source code which is compiled by the JIT compiler that is executed under CLR.
- JIT stands for Just In Time.
- JIT compiler converts source code into machine code at run time.
- Instructions which are compiled by Just In Time compilers are written in native code.
- Instructions which are compiled by Just In Time compilers are written in MSIL code.
- A only
- B only
- A, B, C, D
- All
Correct answer: 3
A, B, C, D
Here A, B, C, and, D are correct statements regarding JIT compiler.
3) There are the following statements are given below, which statements are correct regarding the .NET framework?
- It provides a platform to develop web applications, windows applications, and mobile applications.
- It provides a platform for developing, building, executing only mobile applications.
- It provides a platform for developing, building, executing only web applications.
- It provides a language-independent platform.
Options:
- A only
- B only
- B, C
- A, C
Correct answer: 4
A, C
Here options A, C are the correct statements regarding .NET framework.
4) There are the following statements are given below, which statements are the correct regarding CLR.
- CLR stands for Common Language Runtime.
- It provides automatic garbage collection.
- CLR provides services to execute managed applications.
- CLR provides services to execute unmanaged applications.
- CLR provides a Language-Independent environment.
Options:
- A only
- A, B, C, E
- None of these
- D Only
Correct answer: 2
A, B, C, E
In the given options, except D all are correct regarding Common Language Runtime.
5) There are the following statements are given below, which statements are NOT correct regarding CLR.
- CLR stands for Common Language Runtime.
- It provides automatic garbage collection.
- CLR provides services to execute managed applications.
- CLR provides services to execute unmanaged applications.
- CLR provides a Language-Independent environment.
Options
- A only
- A, B, C, E
- None of these
- D Only
Correct answer: 4
D Only
In the given options, D is not correct regarding Common Language Runtime.
6) Which statements are correct regarding managed code?
- Manage Code is a special code that is written to target the service of Common Language Runtime.
- Manage code is compiled by Just In Time compiler.
- Manage code that is executed at the top of the Windows Operating System.
- Manage code that is executed on the top of the Linux Operating System.
Options
- A
- B
- C
- D
Correct answer: 1
A
Manage Code is a special code that is written to target the service of Common Language Runtime.
7) There are the following security features are given below, which of them are available in .NET applications?
- Role based security
- PIN security
- Authentication Security
- Code Access Security
- Biorhythm Security
Options
- A, C
- B, E
- D Only
- B, D
Correct answer: 4
B, D
PIN security and Code Access Security are available in the .NET application. And other given security features are not available in .NET applications.
8) There are the following statements are given below, which statements are correct regarding .NET assembly?
- .Net assembly is in the form of a DLL file.
- .Net assembly contains classes that contain reusable methods.
- .Net assembly is the smallest deployable unit.
- .Net assembly is the smallest deployable unit.
- .Net assembly can have only one entry point.
Options
- A Only
- A, B
- A, B, C, D
- All
Correct answer: 4
All
All of the given statements are correct regarding .NET assemblies.
9) There are the following statements are given below, which statements are correct regarding .NET Framework?
- .Net Framework provides an Object-Oriented programming environment.
- .Net Framework provides a Language-Independent environment.
- .Net Framework provides an Event-Driven programming environment.
- .Net Framework provides a different programming environment for window and web-based applications.
Options
- A Only
- A, B
- A, B, C
- All
Correct answer: 3
A, B, C
In given options A, B, C are correct statements about .NET framework.
10) There are the following statements are given below, which statements are NOT correct regarding .NET Framework?
- .Net Framework provides an Object-Oriented programming environment.
- .Net Framework provides a Language-Independent environment.
- .Net Framework provides an Event-Driven programming environment for device driver development.
- .Net Framework provides different programming environments for window and web-based applications.
Options
- A Only
- A, B
- C, D
- All
Correct answer: 3
C, D
In given options, C and D are not correct statements about .NET framework.
11) There are the following Jobs given below, which of them are done by Common Language Runtime?
- CLR provides garbage collection.
- CLR enforces type safety strictly.
- CLR provides memory and thread management.
- CLR provides Code Access Security.
Options
- A, B
- C, D
- All (A, B, C, D)
- None of these
Correct answer: 3
All (A, B, C, D)
The all given Jobs are done by Common Language Runtime.
12) There are the following assemblies given below, which of them can be stored in GAC (Global Assembly Cache)?
- Public Assembly
- Private Assembly
- Protected Assembly
- Shared Assembly
- Friend Assembly
Options
- A
- B
- C
- D
- E
Correct answer: 4
D
In .NET framework only shared assemblies are stored in Global Assembly Cache normally call as GAC assemblies.
13) There are the following options given below, which of them are component of .NET Framework?
- FCL (Framework Class Library)
- CLR (Common Language Runtime)
- ASP.NET web application
- Windows Application and Windows Services
- Console Application
Options
- A
- B
- A, B
- All
- None of these
Correct answer: 3
A, B
In given options, only FCL and CLR are components of the .NET framework, whereas any kind of application like console, web or windows application is developed using the .NET compliant programming language.
14) There are the following Jobs given below, which of them are NOT performed by Garbage Collector?
- Release memory occupied in STACK.
- Release memory occupied by non-referenced objects.
- Close opened file.
- Prevent from memory leaks.
Options
- A, B
- B, C
- A, C
- B, C
- B, D
Correct answer: 3
A, C
The garbage collector is an important component of the .NET framework, it is used to release un-referenced memory and it prevents memory leaks. It does not release memory from the stack and does not close open files.
15) There are the following names of the code given below, which code that targets CLR is?
- Native Code
- Unmanaged Code
- Managed Code
- Distributed Code
Options
- A
- B
- C
- D
Correct answer: 3
C
Managed code is the code that targets CLR.
16) There are the following .NET Components given below, which component is used remove un-used references from the managed heap?
- Common Language Runtime
- Common Type System
- Common Language Infrastructure
- Garbage Collector
Options
- A
- B
- C
- D
Correct answer: 4
D
The garbage collector is responsible to remove unused references from managed heap, whereas CTS and others have their other responsibilities in the .NET framework.
17) There are the following options given below, which is the root of type hierarchy in .NET Framework?
- System.Object
- System.Root
- System.Base
- System.Top
Options
- A
- B
- C
- D
Correct answer: 1
A
In the .NET framework, System.Object is root of type hierarchy.
18) There are the following options given below, which of them are valid JIT performance counters?
- Average memory used in JIT compilation.
- Number of methods which are failed to compile with Just In Time Compiler
- Total memory used for JIT compilation
- Percentage of processor time spent during JIT compilation
Options
- Only A
- A, C
- Only B
- B, D
Correct answer: 4
B, D
In the given options, B and D are only valid JIT performance counters.
19) There are the following options given below, which of them are used to provide a set of classes that are used by any .NET programming language?
- CLR
- CTS
- COM
- .NET class libraries.
Options
- A
- B
- C
- D
Correct answer: 4
D
In the .NET framework, class libraries contain a set of classes that can be used by .NET compliant programming language.
20) There are the following utilities given below, which of them are used to compile managed assemblies to processor-specific native code?
- ngen
- ildasm
- gacutil
- sn
- dumpbin
Options
- A
- B
- C
- D, E
Correct answer: 1
A
In the .NET "ngen" utility is used to compile managed assemblies to processor-specific native code.
21) There are the following method names given below, which method is used to trigger the garbage collector?
- GarbageCollect()
- Collect()
- Garbage()
- FreeMem()
Options
- A
- B
- C
- D
Correct answer: 2
B
In the .NET framework Collect() method of GC class is used to trigger garbage collectors.
22) There are the following options given below, which types are supported by Common Type System?
- Value Types
- Reference Types
- None of the above
- Both Value and Reference Types
Options
- A
- B
- C
- D
Correct answer: 3
C
There are two types are supported by CTS:
Value Types:
- Inbuilt types (Byte, Integer, Double etc)
- Enumeration
- User Defied types like structure
Reference Types:
- Arrays
- Interfaces
- User define classes
- Delegates
23) There are the following statements given below, which statements are correct about unmanaged resources?
- Unmanaged resources are always released by garbage collection automatically.
- Unmanaged resources are outside the scope of Common Language Runtime.
- Unmanaged resources are cleaned up by the programmer explicitly.
- Unmanaged resources are not outside the scope of Common Language Runtime.
Options
- A and D
- B
- C
- B and C
Correct answer: 4
B and C
Unmanaged resources are outside the scope of Common Language Runtime. And It must be cleaned up the programmer explicitly.
24) There are the following statements given below, which statements are correct about side by side execution?
- Side by Side execution provides abilities to execute and store different versions of the same application on the same PC.
- It provides control over versioning of the application.
- We can use multiple versions of .NET runtime can execute side by side.
Options
- A
- B
- A, B, C
- None of these
Correct answer: 3
A, B, C
All the given statements are correct for side by side execution.
25) There are the following statements given below, which statements are correct about Metadata?
- Metadata stored in PE assembly.
- Metadata is data about data.
- Metadata stores name, visibility, member methods, member fields, and properties, etc.
- Metadata is created by the application programmer.
Options
- A
- B
- A and C
- A, B, and C
Correct answer: 4
A, B, and C
Statements A, B, C are correct about metadata, whereas statement D is wrong about metadata.