Top 80+ Solved DotNet Technology MCQ Questions Answer
Q. 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
Q. 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
Q. All control inherits either directly or indirectly from the base class control?
a. Yes
b. No
c. Both
d. None
Q. 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
Q. 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
Q. 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
Q. The first event triggers in an aspx page is?
a. Page_Init()
b. Page_Load()
c. Page_Click()
d. All of the above
Q. What is used to validate complex string patterns like an e-mail address?
a. Required Field Validator
b. Range Validator
c. Regular Expression Validator
d. Custom Validator
Q. Which of the following statements is correct about constructors?
a. If we provide a one-argument constructor then the compiler still provides a zero-argument constructor.
b. Static constructors can use optional arguments.
c. Overloaded constructors cannot use optional arguments.
d. If we do not provide a constructor, then the compiler provides a zeroargument constructor.
Q. How many times can a constructor be called during lifetime of the object?
a. As many times as we call it.
b. Only once.
c. Any number of times before the object gets garbage collected.
d. Any number of times before the object is delete