.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

Posted Date:-2022-08-17 09:08:05


Question:
A hashtable is serialized by using:

1.XmlSerializer or SoapFormatter

2.XmlSerializer

3.SoapFormatter

4.XmlSerializer and SoapFormatter

Posted Date:-2022-08-17 09:42:49


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

Posted Date:-2022-08-17 11:07:53


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

Posted Date:-2022-08-17 11:16:21


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

Posted Date:-2022-08-17 09:34:43


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

1.Assembly manifest

2.Modules

3.Files

4.Types

Posted Date:-2022-08-17 09:02:43


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

Posted Date:-2022-08-17 09:31:31


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

Posted Date:-2022-08-17 09:15:40


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

Posted Date:-2022-08-17 10:11:48


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

Posted Date:-2022-08-17 09:39:33


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

Posted Date:-2022-08-17 08:58:17


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

1.Soapsuds.exe

2.Lldasm.exe

3.CASPol.exe

4.Mscorcfg.msc

Posted Date:-2022-08-17 09:58:03


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

Posted Date:-2022-08-17 09:44:33


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

1.Generated Code

2.Managed Code

3.Unmanaged Code

4.CLR Code

Posted Date:-2022-08-17 11:01:08


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

Posted Date:-2022-08-17 11:04:17


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

Posted Date:-2022-08-17 09:36:01


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

Posted Date:-2022-08-17 09:38:30


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.

Posted Date:-2022-08-17 11:10:47


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

Posted Date:-2022-08-17 11:08:44


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

1.FileCloseLineInput

2.FileInput

3.LineInput

4.LineInput

Posted Date:-2022-08-17 11:05:59


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

Posted Date:-2022-08-17 09:11:05


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

Posted Date:-2022-08-17 11:09:41


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

Posted Date:-2022-08-17 11:17:18


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

Posted Date:-2022-08-17 09:32:54


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

1.Partial classes

2.Multiple Inheritance

3.Generics

4.Partial Methods

Posted Date:-2022-08-17 08:48:02


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

1.Overloads

2.Overrides

3.Overridable

4. MustOverridable

Posted Date:-2022-08-17 10:09:20


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

Posted Date:-2022-08-17 09:46:57


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

Posted Date:-2022-08-17 11:14:54


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

Posted Date:-2022-08-17 11:02:24


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

Posted Date:-2022-08-17 10:59:20


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

Posted Date:-2022-08-17 10:15:05


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

Posted Date:-2022-08-17 11:13:30


Question:
You can create the remote application domain using:

1.AppDomain.BuldDomain

2.AppDomain.MakeDomain

3.AppDomain.CreateDomain

4.AppDomain.GenerateDomain

Posted Date:-2022-08-17 09:37:17


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

Posted Date:-2022-08-17 11:06:56


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

1.System.CodeDom

2.System.IO

3.System.Threading

4.System.Text

Posted Date:-2022-08-17 08:55:45


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
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website 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!