Top 80+ Solved DotNet Technology MCQ Questions Answer

From 1 to 15 of 99

Q. A variable which is declared inside a method is called?

a. Serial

b. Local

c. Private

d. Static

  • b. Local

Q. Feature of a local variable?

a. It can be used anywhere in the program

b. It must accept a class

c. It must be declared within a metho

d. D It represent a class object

  • c. It must be declared within a metho

Q. Two methods with the same name but with different parameters?

a. Overloading

b. Loading

c. Multiplexing

d. Duplexing

  • a. Overloading

Q. What is the output of the code public class B: A { }?

a. Errors

b. It defines a class that inherits the public methods of A only

c. It defines a class that inherits all the methods of A but the private members cannot be accesse

d. D Both b and c

  • c. It defines a class that inherits all the methods of A but the private members cannot be accesse

Q. 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.

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

Q. Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?

a. .NET class libraries

b. Common Language Runtime

c. Common Language Infrastructure

d. Common Type System

  • a. .NET class libraries

Q. Which of the following .NET components can be used to remove unused references fromthe managed heap?

a. Common Language Infrastructure

b. CLR

c. Garbage Collector

d. CTS

  • c. Garbage Collector

Q. Which of the following assemblies can be stored in Global Assembly Cache?

a. Private Assemblies

b. Public Assemblies

c. Shared Assemblies

d. Protected Assemblies

  • c. Shared Assemblies

Q. Code that targets the Common Language Runtime is known as

a. Unmanaged

b. Distributed

c. Native Code

d. Managed Code

  • d. Managed Code

Q. Which of the following is the root of the .NET type hierarchy?

a. System.Object

b. System.Type

c. System.Base

d. System.Root

  • a. System.Object

Q. Which of the following are parts of the .NET Framework?

a. CLR & Framework Class Libraries (FCL)

b. Mobile Applications

c. Microsoft Published Web Services

d. Applications deployed on IIS

  • a. CLR & Framework Class Libraries (FCL)

Q. int keyword targets to which .Net type?

a. System.Int8

b. System.Int16

c. System.Int32

d. System.Int64

  • c. System.Int32

Q. How many web.config files that can be there an ASP.NET application?

a. Only One

b. Only Two

c. Upto 10

d. More than one

  • a. Only One

Q. The RangeValidator control supports the following data types?

a. Integer only

b. Date, Integer and String

c. Only String

d. Date and Interger

  • b. Date, Integer and String

Q. How to kill a user session explicitly?

a. Session.Close()

b. Session.Discard()

c. Session.kill()

d. Session.Abandon()

  • d. Session.Abandon()
Subscribe Now

Get All Updates & News