Top 80+ Solved DotNet Technology MCQ Questions Answer
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
Q. Two methods with the same name but with different parameters?
a. Overloading
b. Loading
c. Multiplexing
d. Duplexing
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
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.
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
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
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
Q. Code that targets the Common Language Runtime is known as
a. Unmanaged
b. Distributed
c. Native 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
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
Q. int keyword targets to which .Net type?
a. System.Int8
b. System.Int16
c. System.Int32
d. System.Int64
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
Q. The RangeValidator control supports the following data types?
a. Integer only
b. Date, Integer and String
c. Only String
d. Date and Interger
Q. How to kill a user session explicitly?
a. Session.Close()
b. Session.Discard()
c. Session.kill()
d. Session.Abandon()