.NET Micro Framework/.NET MCQ Set 4 Sample Test,Sample questions

Question:
A user application-domain can be created:

1.Automatically

2.By using a static method "CreateAppDomain"

3.By using a static method "CreateDomain"

4.By using a non static method "CreateAppDomain"


Question:
An application can have any number of modules and files. Which of the following is used to link them together into a single assembly?

1.al.exe

2.ac.exe

3.bl.exe

4.ad.exe


Question:
An application can have any number of modules and files. Which of the following is used to link them together into a single assembly?

1.al.exe

2.ac.exe

3.bl.exe

4.ad.exe


Question:
Code Manager is a the part of:

1.CTS

2.CLI

3.CLS

4.CLR


Question:
Compilers of CLS compliant language generate:

1.MSIL code and Metadata

2.MSIL code

3.Metadata

4.Machine code


Question:
Consider the following two statements and choose the most appropriate option:

Statement 1: Value types are allocated on a stack

Statement 2: Reference types are allocated on a managed CLR Heap

1.Statement 1 is true and statement 2 is false

2.Statement 2 is true and statement 1 is false

3.Both statements 1 and 2 are true

4.Both statements 1 and 2 are false


Question:
How does CLR allow multiple applications to be run in a single process?

1.By running them in a special application domain

2.By making sub process for each process

3.By loading them in separate application domains

4.None of the above


Question:
How many application domains can exist inside a Win32 process?

1.1

2.2

3.Any number

4.4


Question:
How will you use the thread pool?

1.By calling the ThreadPool.UserQueueWorkItem() method directly

2.By passing an instance of WaitCallback delegate to the ThreadPool.QueueUserWorkItem() method

3.By passing an instance of WaitCallback delegate to the ThreadPool.UserQueueWorkItem() method

4.By passing an instance of StayCallback delegate to the ThreadPool.QueueUserWorkItem() method


Question:
Net assembly stores both data and IL code. A tool is available along with the .NET framework to view within the PE. Which of the following is that tool?

1.ildasm.exe

2. disasm.exe

3.deassmbler.exe

4.deasm.exe


Question:
The global assembly cache:

1.Can store two dll files with the same name

2.Can store two dll files with the same name, but different version

3.Can store two dll files with the same name and same version

4.Can not store dll files with the same name


Question:
The IL to native code compilation is done by:

1.Code Manager

2.CTS

3.JIT

4.CLS


Question:
The runtime is started automatically by ______________ when the .exe is run.

1.mscore.dll

2.mscoree.dll

3.mscor.dll

4.mscoren.dll


Question:
The _________________ methods are primarily meant for COM Interoperability use.

1.System.AppDomain.ApplyPolicy

2.System.AppDomain.CreateComInstanceFrom

3.System.AppDomain.Load

4.System.AppDomain.GetAssemblies


Question:
What does Managed Data refer to?

1.The data stored by CLR

2.The data allocated by CLR GC

3.The data de-allocated by CLR GC

4.The data allocated and de-allocated by CLR GC


Question:
What is the command "caspol -lg" used for?

1.To see the private assemblies

2.To see the assemblies in GAC

3.To see the code groups defined on your system

4.To see the metadata information


Question:
What is the command "caspol -lg" used for?

1.To see the private assemblies

2.To see the assemblies in GAC

3.To see the code groups defined on your system

4.To see the metadata information


Question:
What is the command "caspol -lg" used for?

1.To see the private assemblies

2.To see the assemblies in GAC

3.To see the code groups defined on your system

4.To see the metadata information


Question:
Which of the following are used in combination to create the identity of an assembly?

1.Assembly name

2.Version

3.Culture

4.All of the above


Question:
Which of the following does not use metadata?

1.CLR

2.CTS

3. JIT compilers

4.Class loader


Question:
Which of the following files is used to implement application and session level events?

1.Global.asax

2.Web.config

3.Machine.config

4.None of These


Question:
Which of the following functionalities does System.Diagnostics class provide?

1.Reflection

2.Trace

3.Manage code

4.Remoting


Question:
Which of the following helps Assemblies become self describing?:

1.JIT

2.Manifest

3.CTS

4.Application Domain


Question:
Which of the following is a must for a private assembly?

1.Cryptographically strong name

2.Unique name

3.Cryptographically Light name

4. Global assembly cache


Question:
Which of the following is not a member of the Exception class?

1. StackTraceID

2.Message

3.InnerException

4.TargetSite


Question:
Which of the following is used as a Serializer for the web services?

1.XmlSerializer

2.SoapSerializer

3.BinaryFormatter

4.SoapFormatter


Question:
Which of the following is used to notify all waiting threads of a change in the object's state?

1.The system.Threading.Monitor.ReferenceEquals method

2.The system.Threading.Monitor.Enter method

3.The system.Threading.Monitor.PulseAll method

4.The system.Threading.Monitor.TryEnter method


Question:
Which of the following is valid and is included in the type definition?

1.The name of the type

2.The visibility of the type

3.The base types of the type

4.All of the above


Question:
Which of the following manages the code during execution?

1. Coding Manager

2. JIT

3.COde Manager

4.Coder Manager


Question:
Which of the following services are provided by CLR?

1.Application memory isolation

2.Code Management

3.Verification of type safety

4.All of the above


Question:
Which of the following statements is correct.

(a)A Try block must include Catch or Finally sections.

(b)Using an empty Finally section is illegal.

1.Only (a) is true

2.Only (b) is true

3.Both (a) and (b) are false

4.Both (a) and (b) are true


Question:
Which of the following statements is correct?

1.For in-process communication between contexts within a single application domain, Serialization is used as an interception mechanism.

2.For in-process communication between contexts within a single application domain, Marshaling is used as an interception mechanism.

3.For in-process communication between contexts within a single application domain, Proxies are used as an interception mechanism.

4.All of the above


Question:
Which of the following tools can be used to modify and grant permissions to code groups?

1.Soapsuds.exe

2.Lldasm.exe

3. CASPol.exe

4. PerfMon.exe


Question:
Which of the options is being referred to in the following statement:

"All incoming requests are processed by a single server object"

1.SingleCall

2.Client-activated object

3.Singleton

4.None of these


Question:
Which of these Assemblies is used for doing Localization?

1.Private

2.Public

3.Satellite

4.Both Public and Private


Question:
Which of these classes are used for loading an assembly into an application domain?

1.System.Configuration.Assemblies

2.system.componentModel

3.System.Resources

4.System.AppDomain


Question:
Which of these files is used for debugging an application?

1.demo.dll

2.demo.pdb

3.demo.res

4.Any of these can be used


Question:
Which of these is used to allow managed code to interoperate with unmanaged code?

1.COM

2.COM Marshaler

3.XML

4.SOAP


Question:
Which tool can you use to register managed types with the Windows registry?

1.SN.exe

2.Regasm.exe

3.lldasm.exe

4.None of the above


Question:
Which type of parameter is passed in subroutines by default?


1.ByRef

2.ByVal

3.both (a) and (b)

4.None of the above


Question:
Why doesn't .Net runtime offer deterministic destruction?

1.Due to CTS

2. Due to Finalize class

3.Due to garbage collection algorithm

4.Due to the JIT


Question:
___ is a subset of the CTS.

1.CLI

2.cLS

3.CLR

4.None of These


Question:
____ is used to generate the assembly from modules.

1.soapsuds.exe

2.lldasm.exe

3.PerfMon.exe

4.al.exe


Question:
________ helped overcome the DLL conflict (faced by the versions prior to .NET).

1.Strong-named assemblies

2.Version-aware code storage

3.Components executing in isolation

4.All of the above


More MCQS

  1. .NET Framework MCQ
  2. .NET MCQ Set 1
  3. .NET MCQ Set 2
  4. .NET MCQ Set 3
  5. .NET MCQ Set 4
  6. .NET MCQ Set 5
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!