Explore topic-wise MCQs in Current Affairs.

This section includes 2171 Mcqs, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

451.

What is Diffgram?

A. The one which renders the dataset object contents to XML
B. Finds the difference in two objects
C. Finds the difference in two files
D. None of the above
Answer» B. Finds the difference in two objects
452.

What data types do a RangeValidator Support?

A. Integer
B. String
C. Date
D. All of the above
Answer» E.
453.

How to kill a user session explicitly?

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

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» D. To configure the web browser
455.

Which of the following denote the web control associated with Table control functionof ASP.NET?

A. DataList
B. ListBox
C. TableRow
D. All the above
Answer» D. All the above
456.

What class does the ASP.NET web form class inherit from by default?

A. System.Web.UI.Page
B. System.Web.UI.Form
C. System.Web.GUI.Page
D. System.Web.Form
Answer» B. System.Web.UI.Form
457.

Common type system is built into which of the following:

A. CLR
B. RCT
C. RCW
D. GAC
Answer» B. RCT
458.

Which of the following can be used to add alternating color scheme in a Repeatercontrol?

A. AlternatingItemTemplate
B. DataSource
C. ColorValidator
D. None of the above
Answer» B. DataSource
459.

In ASP.NET application the Global.asax file lie in which directory

A. Application
B. System
C. Root
D. None of the above
Answer» D. None of the above
460.

In C#.NET if we do not catch the exception thrown at runtime then which of thefollowing will catch it?

A. Compiler
B. CLR
C. Linker
D. Loader
Answer» C. Linker
461.

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» B. Try / catch
462.

The control used in ASP.NET to display information from data set but with betterformatting and editing behavior is

A. Panel
B. Button
C. DataList
D. None of the above
Answer» D. None of the above
463.

By default, ASP.NET store SessionIDs in _________.

A. Cookies
B. Cache
C. Database
D. Global Variable
Answer» B. Cache
464.

How many classes can a single .NET DLL contain?

A. One
B. Two
C. None
D. Many
Answer» E.
465.

Properties and Indexer are used to access which type of data members?

A. Private
B. Publi
C. C Protecte
D. D Internal
Answer» B. Publi
466.

Which method do you invoke on the DataAdapter control to load your generated datasetwith data?

A. Load()
B. Fill()
C. DataList
D. DataBind
Answer» C. DataList
467.

Choose the form in which Postback occurs?

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

Which of the following is not a member of ADO DBCommand object?

A. ExecuteScalar
B. ExecuteStream
C. Open
D. ExecuteReader
Answer» D. ExecuteReader
469.

Exceptions can be thrown even from a constructor, whereas error codes cannot bereturned from a constructor.

A. True
B. False
C. none
D. all
Answer» B. False
470.

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

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

The RangeValidator control supports the following data types?

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

Which of the following denote page code model in ASP.NET?

A. Single File
B. Code Behind
C. Both A and B
D. None of the above
Answer» D. None of the above
473.

The .NET framework which provides automatic memory management using a techniquecalled

A. Serialization
B. Garbage Collection
C. Assemblies
D. Overriding
Answer» C. Assemblies
474.

Every Server control must have an Id

A. True
B. False
C. none
D. all
Answer» B. False
475.

I have an ASP.NET application. I have a page loaded from server memory. At thisinstance which of the following methods gets fired

A. Unload()
B. Load()
C. PreRender()
D. None of the Above
Answer» C. PreRender()
476.

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» B. Only Two
477.

Give one word: What model does ASP.NET request processing is based on

A. Buttom-up
B. Top-down
C. Waterfall
D. Pipeline
Answer» E.
478.

Which of the following method is used to obtain details about information types ofassembly?

A. GetTypes
B. GetType
C. Both A and B
D. None of the Above
Answer» D. None of the Above
479.

Default Session data is stored in ASP.Net.

A. StateServer
B. Session Object
C. InProcess
D. all of the above
Answer» D. all of the above
480.

Why is Global.asax is used?

A. Declare Global variables
B. Implement application and session level events
C. No use
D. None of the above
Answer» C. No use
481.

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» E.
482.

How do we Delete, Update, Select data in a Dataset?

A. Using SQLDataAdapter
B. Using SQLDataReader
C. Using SQLComman
D. D None
Answer» B. Using SQLDataReader
483.

An alternative way of displaying text on web page using

A. Asp:label
B. Asp:listitem
C. Asp:button
D. None of the above
Answer» B. Asp:listitem
484.

Master pages are used to provide the code and appearance that are the same for a seriesof __________.

A. Content Pages
B. Base pages
C. Both A and B
D. None of the above
Answer» B. Base pages
485.

Which of the following extension does a WebForm file will have?

A. .asmx
B. .aspx
C. .ascx
D. .resx
Answer» C. .ascx
486.

Menus, TreeView and SiteMapPath controls cannot be styled with CSS

A. True
B. False
C. none
D. all
Answer» C. none
487.

Which method displays the custom control?

A. The PreRender
B. Render
C. Page_Loa
D. D Display
Answer» C. Page_Loa
488.

The GridView control in ASP.NET has which of the following features

A. Automatic data binding
B. Automatic paging
C. Both A and B
D. None of the above
Answer» D. None of the above
489.

ASP.NET separates the HTML output from program logic using a feature named as

A. Exception
B. Code-behind
C. Code-front
D. None of the above
Answer» C. Code-front
490.

Which concept is used to provide consistent layout in webform?

A. Master Page
B. Themes
C. GridView
D. None of the above
Answer» B. Themes
491.

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
Answer» D. Custom Validator
492.

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» D. D It represent a class object
493.

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» E.
494.

The first event triggers in an aspx page is?

A. Page_Init()
B. Page_Load()
C. Page_Click()
D. All of the above
Answer» B. Page_Load()
495.

The type of code found in Code-Behind class is

A. Server-side code
B. Client-side code
C. Both A and B
D. None of the above
Answer» B. Client-side code
496.

What section of the Web.config file is used for storing a list of authorized users?

A. Authorization
B. Authentication
C. SecurityPolicy
D. None
Answer» B. Authentication
497.

Application_Start event is available in ___________.

A. Web.config
B. Local.asax
C. Global.asax
D. None of the above
Answer» D. None of the above
498.

Which of the following languages are used to write server side scripting in ASP.NET?

A. C-Sharp
B. VB
C. Both C-Sharp and VB
D. C++
Answer» D. C++
499.

Can you inherit multiple interfaces?

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

Which of the following denote New Data-bound Controls used with ASP.NET?

A. GridView
B. SqlDataSource
C. FormView
D. All of the above
Answer» E.