DotNet Technology Solved MCQs

1.

A variable which is declared inside a method is called?

A. Serial
B. Local
C. Private
D. Static
Answer» B. Local
2.

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
Answer» C. It must be declared within a metho
3.

Two methods with the same name but with different parameters?

A. Overloading
B. Loading
C. Multiplexing
D. Duplexing
Answer» A. Overloading
4.

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
Answer» C. It defines a class that inherits all the methods of A but the private members cannot be accesse
5.

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.
Answer» D. Managed code is the code that is written to target the services of the CLR.
6.

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
Answer» A. .NET class libraries
7.

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

A. Common Language Infrastructure
B. CLR
C. Garbage Collector
D. CTS
Answer» C. Garbage Collector
8.

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

A. Private Assemblies
B. Public Assemblies
C. Shared Assemblies
D. Protected Assemblies
Answer» C. Shared Assemblies
9.

Code that targets the Common Language Runtime is known as

A. Unmanaged
B. Distributed
C. Native Code
D. Managed Code
Answer» D. Managed Code
10.

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

A. System.Object
B. System.Type
C. System.Base
D. System.Root
Answer» A. System.Object
11.

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
Answer» A. CLR & Framework Class Libraries (FCL)
12.

int keyword targets to which .Net type?

A. System.Int8
B. System.Int16
C. System.Int32
D. System.Int64
Answer» C. System.Int32
13.

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
Answer» A. Only One
14.

The RangeValidator control supports the following data types?

A. Integer only
B. Date, Integer and String
C. Only String
D. Date and Interger
Answer» B. Date, Integer and String
15.

How to kill a user session explicitly?

A. Session.Close()
B. Session.Discard()
C. Session.kill()
D. Session.Abandon()
Answer» D. Session.Abandon()
16.

Different ways a method can be overloaded in C#.NET?

A. Different parameter data types
B. Different number of parameters
C. Different order of parameters
D. All of the Above
Answer» D. All of the Above
17.

Can you store multiple data types in System.Array?

A. No
B. Yes
C. Both
D. None
Answer» A. No
18.

Can you inherit multiple interfaces?

A. Yes
B. No
C. Both
D. None
Answer» A. Yes
19.

What are the basic techniques for creating a control?

A. Inheriting from an existing control
B. Inherit from User Control
C. Inherit from Control
D. All of above
Answer» D. All of above
20.

All control inherits either directly or indirectly from the base class control?

A. Yes
B. No
C. Both
D. None
Answer» A. Yes
21.

Which of the following can`t be used in our .NET application?

A. .Net Assemblies
B. ActiveX Control
C. COM type libraries
D. All of the above can be used
Answer» D. All of the above can be used
22.

Which access modifiers are used in the concept of a property?

A. Get / set
B. Try / catch
C. Finally/throw
D. None of the above
Answer» A. Get / set
23.

Choose the form in which Postback occurs?

A. Html
B. Webforms
C. Windows
D. All of above
Answer» B. Webforms
24.

Web.config file is used?

A. Configures the time that the server-side code behind module is called
B. To store the global information and variable definitions for the application
C. To configure the web server
D. To configure the web browser
Answer» C. To configure the web server
25.

The first event triggers in an aspx page is?

A. Page_Init()
B. Page_Load()
C. Page_Click()
D. All of the above
Answer» A. Page_Init()
Tags
Question and answers in DotNet Technology, DotNet Technology multiple choice questions and answers, DotNet Technology Important MCQs, Solved MCQs for DotNet Technology, DotNet Technology MCQs with answers PDF download

We need your help!

We're developing a website for study materials for students.
We would love to hear your answers to some of the questions.

Take Survey