.NET Core MCQs

.NET Core MCQs

Our experts have gathered these .NET Core MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of .NET Core by answering these multiple-choice questions.
Get started now by scrolling down!

1: Which of the following is NOT an interface declared in System.Collectionsnamespace?

A.   I Comparer

B.   Enumerable

C.   Enumerator

D.   I DictionaryComparer

E.   I DictionaryEnumerator

2: Which of the following statements are correct about the Collection Classes available in Framework Class Library?

A.   Elements of a collection cannot be transmitted over a network.

B.   Elements stored in a collection can be retrieved but cannot be modified.

C.   It is not easy to adopt the existing Collection classes for newtype of objects.

D.   Elements stored in a collection can be modified only if allelements are of similar types.

E.   They use efficient algorithms to manage the collection, thereby improving the performance of the program.

3: How to get the current user Name ?

A.   Identity.UserName

B.   CurrentUser.Identity.Name

C.   User.Identity.Name

D.   Based on the Session Variable Name

4: Which of the following statements is true about Dataset ?

A.   Dataset can store only one table in its cache

B.   Dataset cannot store any tables in the cache

C.   Dataset stores tables in the cache,only when cache set to true

D.   Dataset can store multiple tables in cache

5: Which type of Dataset supports schema ?

A.   Typed

B.   UnTyped

C.   Mixed

D.   All types

6: Is there a way to prevent configuration settings in a Web.Config file from being overridden by a Web.Config file located below it

A.   Yes, you can use the allowOverride attribute in the tag to prevent configuration settings in a Web.Config file from being overridden by a Web.Config file located below it

B.   Yes, you can use the tag to prevent configuration settings in aWeb.Config file from being overridden by a Web.Config file located below it

C.   If a Web.Config file exist at a particular level then all settings in the Web.Config file located above it are always ignored

D.   You cannot have more than one Web.Config file in an ASP.NET application

7: Which of the following statements is correct about Managed Code?

A.   Managed code is the code that is compiled by the JIT compilers

B.   Managed code is the code where resources are Garbage Collected

C.   Managed code is the code that runs on top of Windows

D.   Managed code is the code that is written to target the services of the CLR

E.   Managed code is the code that can run on top of Linux

8: Which of the following statements correctly define .NET Framework?

A.   It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services

B.   It is an environment for developing, building, deploying and executing only Web Applications

C.   It is an environment for developing, building, deploying and executing Distributed Applications

D.   It is an environment for developing, building, deploying and executing Web Services

E.   It is an environment for development and execution of Windows applications

9: Which of the following is the root of the .NET type hierarchy?

A.   System.Object

B.   System.Type

C.   System.Base

D.   System.Parent

E.   System.Root

10: How do you get information from a form that is submitted using the "post" method?

A.   Request.QueryString

B.   Request.Form

C.   Response.write

D.   Response.writeln

11: How many enumerators will exist if four threads are simultaneously working on anArrayList object?

A.   1

B.   3

C.   2

D.   4

E.   Depends upon the Project Setting made in Visual Studio.NET.

12: Which statement among the ones below is correct?

A.   The Params and Forms collection of the HTTPRequest class are exactly same and theForms collection has been provided only for backward compatibility

B.   The HTTPRequest class does include the Params collection

C.   The HTTPRequest class does include the Forms collection

D.   The difference between the Params and Forms collection of the HTTPRequest class is that the Params collection also represents QueryStrings, ServerVariables, andCookies

13: You need to develop a business component myComp.dll in .Net and use it in your ASP.NET

A.   You require to register the component using regsvr32.exe

B.   You require to register the component using TlbExp.exe

C.   You require to copy the component to the /bin directory in your applications root directory

D.   You require to copy the component to the /bin directory in your applications root directory and register the component using regsvr32.exe

14: Which are the two things you need to take care of in your ASP.Net application to take advantage of connection pooling.

A.   You need to set the Pooling property of the Connection object to True

B.   You need to use the same exact connection string whenever you open a database connection

C.   You need to call the ReleaseToPool() method after the connection is closed

D.   You need to explicitly close the connection with the Close() method

15: The settings in the Web.Config file are case-sensitive.

A.   True

B.   False