R4RIN
Articles
Java 8
MCQS
.NET Micro Framework MCQ Quiz Hub
.NET MCQ Set 5
Choose a topic to test your knowledge and improve your .NET Micro Framework skills
1. Which of the following is not a feature of .NET 2.0?
Partial classes
Multiple Inheritance
Generics
Partial Methods
2. ___________ namespace is not defined in the base class library.
System.CodeDom
System.IO
System.Threading
System.Text
3. Since .NET assemblies contain IL code, your proprietary algorithms can be seen by anyone. Which of the following tools protects your intellectual properties?
Obfuscator
Befprotector
Obadministrator
Befmanager
4. For MSIL code to be executed in PE file, it is necessary to have:
Assembly manifest
Modules
Files
Types
5. ------assembly can be used to deploy language-specific resources for an application.
Shared
Private
Satellite
Public
6. Which of the following can you use to resolve assemblies, types, and resources?
System.AppDomain.CreateDomain
System.AppDomainSetup.ApplicationBase
System.AppDomainSetup.CreateComInstanceFrom
System.AppDomain.ApplyPolicy
7. https://quizack.com/net/mcq/net-components-are-accessed-from-com-via-a#:~:text=ADVERTISEMENT-,.NET%20components%20are%20accessed%20from%20COM%20via%20a%3F,-RCW
RCW
CCA
CWA
CCW
8. How will you prevent concurrent access to your data?
By using System.Threading.ThreadStart
By using System.Threading.Monitor.Enter/Exit methods
By using System.Threading.Monitor.start/End methods
By using System.Threading.ThreadEnter
9. Which of the following is correct for CTS?
It establishes a framework that helps enable cross-language integration, type safety, and high performance code execution
It provides an object-oriented model that supports the complete implementation of many programming languages
t defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other
All of the above
10. Delay signing allows a shared assembly to be signed with:
Private key at the initial stage
Private and Public key at the initial stage
Private key at a later stage
Public key at a later stage
11. What happens when enough memory is not available to be allocated to an object?
MemoryFull exception is thrown
Garbage collector is automatically run to free up memory
OutOfMemory exception is thrown
The .Net worker process is restarted
12. You can create the remote application domain using:
AppDomain.BuldDomain
AppDomain.MakeDomain
AppDomain.CreateDomain
AppDomain.GenerateDomain
13. Which base class do all web forms inherit from?
System.Web.UI.Page
System.Web.UI.HtmlControls
System.Web.UI.WebControls
None of the above
14. Microsoft .NET supports value types for performance reasons, but everything in .NET is ultimately an object. Value types are allocated on the stack by default, but they can always be converted into a heap-based, reference-type object. What is this conversion called?
Conving
Boxing
TypeModification
None of the above
15. A hashtable is serialized by using:
XmlSerializer or SoapFormatter
XmlSerializer
SoapFormatter
XmlSerializer and SoapFormatter
16. The .NET framework comes with a few CLR hosts. Which of the following is a CLR host?
ASP.NET
IE
Shell Executables
All of the above
17. Which of the following is used to do garbage collection?
gc.Collect
gc.KeepAlive
gc.SuppressFinalize
All of the above
18. Soapsuds.exe Lldasm.exe CASPol.exe Mscorcfg.msc SN.exe
Soapsuds.exe
Lldasm.exe
CASPol.exe
Mscorcfg.msc
19. Which of the following is not a valid inheritance_mode?
Overloads
Overrides
Overridable
MustOverridable
20. In .NET framework, Reflection is used to:
Create metadata of the modules/assemblies
Get metadata of the modules/assemblies✔
Reengineer the corrupted assemblies
Destroy the corrupted assemblies
21. Which of the following statements is not correct with regard to .NET assemblies?
Static assemblies can include classes, JPEG files, resource files etc.
Static assemblies are stored on disk in PE files.
The .NET Framework can create dynamic assemblies
Dynamic assemblies are automatically saved to disk before execution
22. Which of the following statements is correct with regard to Windows process memory allocation?
Each process (instance of an application) gets its own RAM and prevents the OS from crashing when the process crashes
RAM is shared between the processes and saves OS crash with the process crash
RAM is shared between the processes and saves OS crash with the process crash
RAM is shared between the processes and causes OS to crash with the process crash
23. The code written to target common language runtime services is called :
Generated Code
Managed Code
Unmanaged Code
CLR Code
24. Which of the following should you use to serialize instances of a class?
XMlSerializer
It depends on the situtaion
SoapFormatter
BinaryFormatter
25. What are the core components of .NET framework data provider model?
DataAdapter and DataReader
Connection and Command
DataAdapter, Connection, and Command
DataAdapter, Connection, and Comman
26. Which of the following can not be used with files?
FileCloseLineInput
FileInput
LineInput
LineInput
27. ___________ class defines the set of information that constitutes input to security policy decisions in System.Security.Policy namespace.
FileCodeGroup
ApplicationTrust
Evidence
PolicyLevel
28. A subset of the Common Type System(CTS) is define by the rules of _________.
Common Language Infrastructure (CLI)
Common Language Specifications (CLS)
Common Language Runtime (CLR)
None of these
29. Which of the following can be the entry point of an assembly in Common Language Runtime (CLR)?
DllMain
WinMain
Main
WebMain
30. Which of the following code is not 'managed' by default in .NET framework?
Visual Basic.NET
C#
C++
Jscript.NET
31. Which of the following are the main design goals behind ADO.NET?
To provide support for XML.
To support COM directly.
To provide an expandable and scalable data access architecture for the n-tier programming model.
To extend the capabilities of ADO.
32. Xcopy method is not sufficient for deployment:
When application relies on shared assemblies
When application is downloaded on demand
When the number of assemblies is too large
None of the above
33. Which of the following namespace are defined in the base class library.
System.CodeDom System.IO
System.Threading
System.Text
All of the above
34. Application domains are created by runtime host and the runtime host include:
Windows shell
ASP.NET
Internet Explorer (IE)
None of These
35. Which of the following does not constitute the benefits of CLR?-
Ability to use components developed in different language
Garbage collection
IDL (Interface Definition Language) use is promoted by restricting self describing objects
Ability to compile once, and run on any CPU
Submit