Explore topic-wise MCQs in Computer Science Mcqs.

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

201.

CompareValidator control can be used for performing which task?

A. To perform a data type check.
B. To compare the value entered into a form field against a fixed value.
C. To compare the value of one form field against another.
D. All of the above.
Answer» E.
202.

Choose the correct option about the Integrated Security property of connection object.

A. If Integrated Security=false then User ID, and Password must be specified in the connection string.
B. If Integrated Security=true then current Windows account credentials are used for authentication.
C. Both A and B option are correct.
D. None of the above.
Answer» D. None of the above.
203.

Which validation control in ASP.NET can be used to determine if the data is entered into a TextBox control is of type Currency?

A. ValidationSummary
B. CompareValidator
C. RequiredFieldValidator
D. None of the above.
Answer» C. RequiredFieldValidator
204.

On what object would you set the properties to create a primary key for a DataTable?

A. DataRelation
B. DataColumn
C. DataSet
D. DataTable
Answer» D. DataTable
205.

You want to enable Page Output Caching in ASP.NET. What code you will write in ASPX page.

A. None of the above.
Answer» B.
206.

How many types of Cache Dependencies are available in ASP.NET?

A. File based dependencies
B. Key-based dependencies
C. Time-based dependencies
D. All of the above
Answer» E.
207.

You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the Web.config file?

A. Login.aspx
B. LoginPage.aspx
C. Default.aspx
D. Auth.aspx
Answer» B. LoginPage.aspx
208.

How many 'ScriptManager' control can be added on a ASP.NET web page?

A. Only One
B. More than One
C. Only Two
D. None of the above.
Answer» B. More than One
209.

What are the three main objects of DataSet?

A. DataTable, DataColumn, and type.
B. DataTable, DataRelation, and DataAdapter.
C. DataTable, DataColumn, and DataRelation.
D. DataReader,DataAdapter, and Command.
Answer» D. DataReader,DataAdapter, and Command.
210.

Which property and method of the Page object do you use to register client script dynamically from code?

A. ScriptManager control is used to dynamically register client script from code.
B. The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client script from code.
C. ScriptManagerProxy control is used to dynamically register client script from code.
D. None of the above.
Answer» C. ScriptManagerProxy control is used to dynamically register client script from code.
211.

Which control is required inside a content page to reference ContentPlaceHolder control inside the master page?

A. Content control on a content page.
B. ContentPlaceHolder on a content page.
C. PlaceHolder control is required on content page.
D. None of the above.
Answer» B. ContentPlaceHolder on a content page.
212.

When user request a web page by entering Uniform Resource Locator (URL) then which method /verb/command is used in ASP.NET?

A. POST
B. SET
C. GET
D. All of the above.
Answer» D. All of the above.
213.

At which level Theme can be applied?

A. Page level
B. Site level (through the Web.config file)
C. Individual control level
D. All of the above.
Answer» E.
214.

What type of data can Cookies store?

A. String
B. DateTime
C. System.Int32
D. None of the above.
Answer» B. DateTime
215.

HTTP messages are typically sent between the Web server and Web browser using which Port number?

A. 70
B. 80
C. 400
D. 410
Answer» C. 400
216.

How many types of caching ASP.NET supports?

A. Page Output Caching
B. Partial Page Caching
C. Data Caching
D. DataSource Caching
E. All of the above.
Answer» F.
217.

If you want to access a web service method, which attribute it must have?

A. [WebMethod]
B. [PageMetod]
C. [Web.Service]
D. [WebSupport]
Answer» B. [PageMetod]
218.

If a user wants to create controls at runtime which event should be used to write code?

A. PreLoad
B. Load
C. Init
D. PreInit
Answer» E.
219.

Which is the first event of ASP.NET page, when user requests a web page ?

A. PreLoad
B. Load
C. Preinit
D. Init
Answer» D. Init
220.

Range Validator control in ASP.NET supports which type?

A. Integer
B. String
C. Currency
D. All of the above
Answer» E.
221.

Which one of the following HTTP verbs indicates that you are creating and writing a file on the Web server?

A. POST
B. SET
C. GET
D. PUT
Answer» E.
222.

A web application can contain _______ .

A. Only One Web.Config File
B. Only Two Web.Config File
C. more than one Web.config file
D. No file.
Answer» D. No file.
223.

ByDefault ASP.Net SessionID is stored in _________.

A. Application
B. Session
C. Cookies
D. ViewState
Answer» D. ViewState
224.

What is the last event of web page life cycle?

A. Page_Load
B. Page_LoadComplete
C. Page_Finish
D. Page_Unload
Answer» E.
225.

Which of the following control provides a link for unauthenticated users to log on?

A. Login
B. LoginView
C. LoginStatus
D. LoginName
Answer» D. LoginName
226.

What is the name of the Page object’s property that determines if a Web page is being requested without data being submitted to server?

A. IsCallback
B. IsReusable
C. IsValid
D. IsPostBack
Answer» E.
227.

If you are using user control in ASP.NET page which directory will be used?

A. Register
B. Assembly
C. Implements
D. Aspx
Answer» B. Assembly
228.

Which file you should write for the connection string, so that you can access it in all the web pages for the same application?

A. In App_Data folder
B. In Web.config file
C. In MasterPage file
D. None of the above
Answer» C. In MasterPage file