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

Question:
------assembly can be used to deploy language-specific resources for an application.

1.Shared

2.Private

3.Satellite

4.Public


Question:
A hashtable is serialized by using:

1.XmlSerializer or SoapFormatter

2.XmlSerializer

3.SoapFormatter

4.XmlSerializer and SoapFormatter


Question:
A subset of the Common Type System(CTS) is define by the rules of _________.

1.Common Language Infrastructure (CLI)

2.Common Language Specifications (CLS)

3.Common Language Runtime (CLR)

4.None of these


Question:
Application domains are created by runtime host and the runtime host include:

1.Windows shell

2.ASP.NET

3. Internet Explorer (IE)

4.None of These


Question:
Delay signing allows a shared assembly to be signed with:

1.Private key at the initial stage

2.Private and Public key at the initial stage

3.Private key at a later stage

4. Public key at a later stage


Question:
For MSIL code to be executed in PE file, it is necessary to have:

1.Assembly manifest

2.Modules

3.Files

4.Types


Question:
How will you prevent concurrent access to your data?

1.By using System.Threading.ThreadStart

2.By using System.Threading.Monitor.Enter/Exit methods

3.By using System.Threading.Monitor.start/End methods

4.By using System.Threading.ThreadEnter


Question:
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

1.RCW

2. CCA

3.CWA

4.CCW


Question:
In .NET framework, Reflection is used to:

1.Create metadata of the modules/assemblies

2. Get metadata of the modules/assemblies✔

3.Reengineer the corrupted assemblies

4.Destroy the corrupted assemblies


Question:
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?

1.Conving

2.Boxing

3.TypeModification

4.None of the above


Question:
Since .NET assemblies contain IL code, your proprietary algorithms can be seen by anyone. Which of the following tools protects your intellectual properties?

1.Obfuscator

2.Befprotector

3.Obadministrator

4.Befmanager


Question:
Soapsuds.exe
Lldasm.exe
CASPol.exe
Mscorcfg.msc
SN.exe

1.Soapsuds.exe

2.Lldasm.exe

3.CASPol.exe

4.Mscorcfg.msc


Question:
The .NET framework comes with a  few CLR hosts. Which of the following is a CLR host?

1.ASP.NET

2. IE

3. Shell Executables

4.All of the above


Question:
The code written to target common language runtime services is called :

1.Generated Code

2.Managed Code

3.Unmanaged Code

4.CLR Code


Question:
What are the core components of .NET framework data provider model?

1.DataAdapter and DataReader

2.Connection and Command

3.DataAdapter, Connection, and Command

4.DataAdapter, Connection, and Comman


Question:
What happens when enough memory is not available to be allocated to an object?

1.MemoryFull exception is thrown

2.Garbage collector is automatically run to free up memory

3.OutOfMemory exception is thrown

4.The .Net worker process is restarted


Question:
Which base class do all web forms inherit from?

1.System.Web.UI.Page

2.System.Web.UI.HtmlControls

3.System.Web.UI.WebControls

4. None of the above


Question:
Which of the following are the main design goals behind ADO.NET?

1.To provide support for XML.

2.To support COM directly.

3.To provide an expandable and scalable data access architecture for the n-tier programming model.

4.To extend the capabilities of ADO.


Question:
Which of the following can be the entry point of an assembly in Common Language Runtime (CLR)?

1.DllMain

2.WinMain

3.Main

4.WebMain


Question:
Which of the following can not be used with files?

1.FileCloseLineInput

2.FileInput

3.LineInput

4.LineInput


Question:
Which of the following can you use to resolve assemblies, types, and resources?

1.System.AppDomain.CreateDomain

2.System.AppDomainSetup.ApplicationBase

3.System.AppDomainSetup.CreateComInstanceFrom

4.System.AppDomain.ApplyPolicy


Question:
Which of the following code is not 'managed' by default in .NET framework?

1.Visual Basic.NET

2.C#

3.C++

4.Jscript.NET


Question:
Which of the following does not constitute the benefits of CLR?-

1.Ability to use components developed in different language

2.Garbage collection

3.IDL (Interface Definition Language) use is promoted by restricting self describing objects

4.Ability to compile once, and run on any CPU


Question:
Which of the following is correct for CTS?

1.It establishes a framework that helps enable cross-language integration, type safety, and high performance code execution

2.It provides an object-oriented model that supports the complete implementation of many programming languages

3.t defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other

4.All of the above


Question:
Which of the following is not a feature of .NET 2.0?

1.Partial classes

2.Multiple Inheritance

3.Generics

4.Partial Methods


Question:
Which of the following is not a valid inheritance_mode?

1.Overloads

2.Overrides

3.Overridable

4. MustOverridable


Question:
Which of the following is used to do garbage collection?

1.gc.Collect

2.gc.KeepAlive

3.gc.SuppressFinalize

4.All of the above


Question:
Which of the following namespace are defined in the base class library.

1. System.CodeDom System.IO

2. System.Threading

3.System.Text

4.All of the above


Question:
Which of the following should you use to serialize instances of a class?

1.XMlSerializer

2.It depends on the situtaion

3.SoapFormatter

4.BinaryFormatter


Question:
Which of the following statements is correct with regard to Windows process memory allocation?

1.Each process (instance of an application) gets its own RAM and prevents the OS from crashing when the process crashes

2.RAM is shared between the processes and saves OS crash with the process crash

3.RAM is shared between the processes and saves OS crash with the process crash

4.RAM is shared between the processes and causes OS to crash with the process crash


Question:
Which of the following statements is not correct with regard to .NET assemblies?

1.Static assemblies can include classes, JPEG files, resource files etc.

2.Static assemblies are stored on disk in PE files.

3.The .NET Framework can create dynamic assemblies

4.Dynamic assemblies are automatically saved to disk before execution


Question:
Xcopy method is not sufficient for deployment:

1.When application relies on shared assemblies

2.When application is downloaded on demand

3.When the number of assemblies is too large

4.None of the above


Question:
You can create the remote application domain using:

1.AppDomain.BuldDomain

2.AppDomain.MakeDomain

3.AppDomain.CreateDomain

4.AppDomain.GenerateDomain


Question:
___________ class defines the set of information that constitutes input to security policy decisions in System.Security.Policy namespace.

1.FileCodeGroup

2.ApplicationTrust

3.Evidence

4.PolicyLevel


Question:
___________ namespace is not defined in the base class library.

1.System.CodeDom

2.System.IO

3.System.Threading

4.System.Text


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!