KEMBAR78
ASP. Net MCQ | PDF | Active Server Pages | World Wide Web
0% found this document useful (0 votes)
39 views11 pages

ASP. Net MCQ

The document contains a series of multiple-choice questions and answers related to ASP.NET, covering topics such as server-side scripting languages, HTML form methods, ASP.NET controls, and ADO.NET functionalities. It includes questions about file extensions, web form life cycles, and validation controls. Additionally, it outlines instructions for an examination on ASP.NET for a B.Sc. Computer Science course.

Uploaded by

therhs101
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views11 pages

ASP. Net MCQ

The document contains a series of multiple-choice questions and answers related to ASP.NET, covering topics such as server-side scripting languages, HTML form methods, ASP.NET controls, and ADO.NET functionalities. It includes questions about file extensions, web form life cycles, and validation controls. Additionally, it outlines instructions for an examination on ASP.NET for a B.Sc. Computer Science course.

Uploaded by

therhs101
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

1. Which of the following is a server-side scripting language?

A) JavaScript

B) HTML

C) ASP.NET

D) CSS

Answer: C) ASP.NET

2. What does the GET method do in an HTML form?

A) Encrypts form data

B) Sends data through the body

C) Appends data to the URL

D) Stores data in session

Answer: C) Appends data to the URL

3. Which ASP.NET control is used to display a calendar to select dates?

A) DateTimePicker

B) TimePicker

C) Calendar

D) DateChooser

Answer: C) Calendar

4. Which of the following is used to maintain user data between web pages in ASP.NET?

A) Cache

B) ViewState

C) Session

D) Global.asax
Answer: C) Session

5. Which method is used to redirect the user to another page?

A) Server.Transfer()

B) Response.Write()

C) Page.Redirect()

D) Response.Redirect()

Answer: D) Response.Redirect()

6. What is the role of the DataReader in ADO.NET?

A) Update data in the database

B) Store data temporarily

C) Read data in a forward-only, read-only manner

D) Write data to XML

Answer: C) Read data in a forward-only, read-only manner

7. Which control is used to upload files in ASP.NET?

A) FileSelector

B) FileInput

C) FileUpload

D) UploadBox

Answer: C) FileUpload

8. What type of programming is JavaScript?

A) Server-side
B) Back-end

C) Client-side

D) Core scripting

Answer: C) Client-side

1. What is the file extension for an ASP.NET Web Form?

A) .asp

B) .aspx

C) .html

D) .php

Answer: B) .aspx

2. Which event is the first to occur in the web form life cycle?

A) Load

B) Init

C) PreRender

D) Unload

Answer: B) Init

3. Which control is used to display multiple items in a drop-down list?

A) RadioButtonList

B) DropDownList

C) ListBox

D) GridView

Answer: B) DropDownList
4. What is the use of Server.Transfer in ASP.NET?

A) Sends user to a new website

B) Redirects to a new page without changing URL

C) Closes server connection

D) Uploads a file

Answer: B) Redirects to a new page without changing URL

5. Which of the following stores application-wide data?

A) Session

B) ViewState

C) Application

D) Cookie

Answer: C) Application

6. Which control is used to display read-only tabular data?

A) FormView

B) GridView

C) Repeater

D) TextBox

Answer: B) GridView

7. In which file can we write application-level events like Application_Start()?

A) Web.config
B) MasterPage.master

C) Global.asax

D) Default.aspx.cs

Answer: C) Global.asax

8. Which validation control checks if a field is not empty?

A) RangeValidator

B) RegularExpressionValidator

C) RequiredFieldValidator

D) CompareValidator

Answer: C) RequiredFieldValidator

Q2) Attempt any two (Each carries 8 marks): [16]

1) Explain Connection oriented architecture of ADO.NET

2) What are the different validator controls available in ASP.NET?

3) What is Web server and browser? Explain request and response objects

Q3) Attempt any four (Each carries 4 marks)

1) Write short note on Global.asax.

2) Explain Response.Redirect() and Resonse.Write()


3) Explain TextBox control with its properties.

4) Write notes on – data adapter and data reader.

5) Explain HTML form element in detail

6) Explain any Four server side controls in asp.net

*****

SET-C

Seat No.

B.Sc.Computer Science Entire Part -III (NEP 2020) (Semester – VI) Examination,

March/Apr 2025

COMPUTER SCIENCE (Paper-XIX)

Introduction to ASP.NET (96201)


Day and Date: ………..sday, 00-00-2025

Time: 00:00 AM to 00.00 PM Total Marks: 40

Instructions: 1) All questions are compulsory.

2) Figures to the right indicate full marks.

Q1) Select the correct alternative for each of the following. [8]

1. Which method is used to write content directly to the HTTP response stream?

A) Response.Redirect()

B) Server.Transfer()

C) Response.Write()

D) Page.Render()

Answer: C) Response.Write()

2. What does Cross Page PostBack do?

A) Posts form to a different page

B) Refreshes the same page

C) Submits form using GET method

D) Transfers session data

Answer: A) Posts form to a different page

3. Which object is used to store data across multiple pages for a single user session?

A) Application

B) ViewState

C) Session
D) Cache

Answer: C) Session

4. What is the role of SqlConnection in ADO.NET?

A) Execute SQL commands

B) Store connection string

C) Establish connection to SQL Server

D) Display data

Answer: C) Establish connection to SQL Server

5. Which control provides a read/write interface to a single database record?

A) GridView

B) Repeater

C) FormView

D) ListView

Answer: C) FormView

6. What is the purpose of the DataAdapter in ADO.NET?

A) Display data

B) Execute queries

C) Act as a bridge between DataSet and database

D) Manage connections

Answer: C) Act as a bridge between DataSet and database


7. Which control allows navigation between pages in ASP.NET?

A) Literal

B) NavigationControl

C) Menu

D) FileUpload

Answer: C) Menu

8. Which tool is used in ASP.NET to generate reports visually?

A) ReportViewer

B) Crystal Reports

C) GridView

D) FormView

Answer: B) Crystal Reports

1. What is the file extension for an ASP.NET Web Form?

A) .asp

B) .aspx

C) .html

D) .php

Answer: B) .aspx

2. Which event is the first to occur in the web form life cycle?

A) Load

B) Init
C) PreRender

D) Unload

Answer: B) Init

3. Which control is used to display multiple items in a drop-down list?

A) RadioButtonList

B) DropDownList

C) ListBox

D) GridView

Answer: B) DropDownList

4. What is the use of Server.Transfer in ASP.NET?

A) Sends user to a new website

B) Redirects to a new page without changing URL

C) Closes server connection

D) Uploads a file

Answer: B) Redirects to a new page without changing URL

5. Which of the following stores application-wide data?

A) Session

B) ViewState

C) Application

D) Cookie

Answer: C) Application
6. Which control is used to display read-only tabular data?

A) FormView

B) GridView

C) Repeater

D) TextBox

Answer: B) GridView

7. In which file can we write application-level events like Application_Start()?

A) Web.config

B) MasterPage.master

C) Global.asax

D) Default.aspx.cs

Answer: C) Global.asax

8. Which validation control checks if a field is not empty?

A) RangeValidator

B) RegularExpressionValidator

C) RequiredFieldValidator

D) CompareValidator

Answer: C) RequiredFieldValidator

You might also like