R4RIN
Articles
Java 8
MCQS
.NET Micro Framework MCQ Quiz Hub
.NET MCQ Set 4
Choose a topic to test your knowledge and improve your .NET Micro Framework skills
1. Which of the options is being referred to in the following statement: "All incoming requests are processed by a single server object"
SingleCall
Client-activated object
Singleton
None of these
2. A user application-domain can be created:
Automatically
By using a static method "CreateAppDomain"
By using a static method "CreateDomain"
By using a non static method "CreateAppDomain"
3. The global assembly cache:
Can store two dll files with the same name
Can store two dll files with the same name, but different version
Can store two dll files with the same name and same version
Can not store dll files with the same name
4. What does Managed Data refer to?
The data stored by CLR
The data allocated by CLR GC
The data de-allocated by CLR GC
The data allocated and de-allocated by CLR GC
5. Which tool can you use to register managed types with the Windows registry?
SN.exe
Regasm.exe
lldasm.exe
None of the above
6. Which of the following files is used to implement application and session level events?
Global.asax
Web.config
Machine.config
None of These
7. Which of these classes are used for loading an assembly into an application domain?
System.Configuration.Assemblies
system.componentModel
System.Resources
System.AppDomain
8. Which of the following tools can be used to modify and grant permissions to code groups?
Soapsuds.exe
Lldasm.exe
CASPol.exe
PerfMon.exe
9. Which of the following does not use metadata?
CLR
CTS
JIT compilers
Class loader
10. Which of the following functionalities does System.Diagnostics class provide?
Reflection
Trace
Manage code
Remoting
11. An application can have any number of modules and files. Which of the following is used to link them together into a single assembly?
al.exe
ac.exe
bl.exe
ad.exe
12. What is the command "caspol -lg" used for?
To see the private assemblies
To see the assemblies in GAC
To see the code groups defined on your system
To see the metadata information
13. What is the command "caspol -lg" used for?
To see the private assemblies
To see the assemblies in GAC
To see the code groups defined on your system
To see the metadata information
14. What is the command "caspol -lg" used for?
To see the private assemblies
To see the assemblies in GAC
To see the code groups defined on your system
To see the metadata information
15. An application can have any number of modules and files. Which of the following is used to link them together into a single assembly?
al.exe
ac.exe
bl.exe
ad.exe
16. Which of the following is a must for a private assembly?
Cryptographically strong name
Unique name
Cryptographically Light name
Global assembly cache
17. Code Manager is a the part of:
CTS
CLI
CLS
CLR
18. Why doesn't .Net runtime offer deterministic destruction?
Due to CTS
Due to Finalize class
Due to garbage collection algorithm
Due to the JIT
19. 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
Statement 1 is true and statement 2 is false
Statement 2 is true and statement 1 is false
Both statements 1 and 2 are true
Both statements 1 and 2 are false
20. Which of the following is used to notify all waiting threads of a change in the object's state?
The system.Threading.Monitor.ReferenceEquals method
The system.Threading.Monitor.Enter method
The system.Threading.Monitor.PulseAll method
The system.Threading.Monitor.TryEnter method
21. Which of the following manages the code during execution?
Coding Manager
JIT
COde Manager
Coder Manager
22. Which type of parameter is passed in subroutines by default?
ByRef
ByVal
both (a) and (b)
None of the above
23. Which of the following is not a member of the Exception class?
StackTraceID
Message
InnerException
TargetSite
24. How many application domains can exist inside a Win32 process?
1
2
Any number
4
25. Which of the following helps Assemblies become self describing?:
JIT
Manifest
CTS
Application Domain
26. How will you use the thread pool?
By calling the ThreadPool.UserQueueWorkItem() method directly
By passing an instance of WaitCallback delegate to the ThreadPool.QueueUserWorkItem() method
By passing an instance of WaitCallback delegate to the ThreadPool.UserQueueWorkItem() method
By passing an instance of StayCallback delegate to the ThreadPool.QueueUserWorkItem() method
27. The runtime is started automatically by ______________ when the .exe is run.
mscore.dll
mscoree.dll
mscor.dll
mscoren.dll
28. 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?
ildasm.exe
disasm.exe
deassmbler.exe
deasm.exe
29. Which of the following services are provided by CLR?
Application memory isolation
Code Management
Verification of type safety
All of the above
30. Which of these files is used for debugging an application?
demo.dll
demo.pdb
demo.res
Any of these can be used
31. Compilers of CLS compliant language generate:
MSIL code and Metadata
MSIL code
Metadata
Machine code
32. Which of these is used to allow managed code to interoperate with unmanaged code?
COM
COM Marshaler
XML
SOAP
33. 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.
Only (a) is true
Only (b) is true
Both (a) and (b) are false
Both (a) and (b) are true
34. The _________________ methods are primarily meant for COM Interoperability use.
System.AppDomain.ApplyPolicy
System.AppDomain.CreateComInstanceFrom
System.AppDomain.Load
System.AppDomain.GetAssemblies
35. How does CLR allow multiple applications to be run in a single process?
By running them in a special application domain
By making sub process for each process
By loading them in separate application domains
None of the above
36. ________ helped overcome the DLL conflict (faced by the versions prior to .NET).
Strong-named assemblies
Version-aware code storage
Components executing in isolation
All of the above
37. ____ is used to generate the assembly from modules.
soapsuds.exe
lldasm.exe
PerfMon.exe
al.exe
38. Which of the following is used as a Serializer for the web services?
XmlSerializer
SoapSerializer
BinaryFormatter
SoapFormatter
39. The IL to native code compilation is done by:
Code Manager
CTS
JIT
CLS
40. ___ is a subset of the CTS.
CLI
cLS
CLR
None of These
41. Which of the following is valid and is included in the type definition?
The name of the type
The visibility of the type
The base types of the type
All of the above
42. Which of the following statements is correct?
For in-process communication between contexts within a single application domain, Serialization is used as an interception mechanism.
For in-process communication between contexts within a single application domain, Marshaling is used as an interception mechanism.
For in-process communication between contexts within a single application domain, Proxies are used as an interception mechanism.
All of the above
43. Which of the following are used in combination to create the identity of an assembly?
Assembly name
Version
Culture
All of the above
44. Which of these Assemblies is used for doing Localization?
Private
Public
Satellite
Both Public and Private
Submit