0% found this document useful (0 votes)
25 views6 pages

ASP.NET Exam Questions Overview

The document contains a set of 35 multiple choice exam questions related to ASP.NET, covering topics such as static web pages, ASP.NET controls, session management, and web configuration. Each question provides options to test knowledge on various aspects of ASP.NET development. The questions address fundamental concepts and practical applications within the framework.

Uploaded by

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

ASP.NET Exam Questions Overview

The document contains a set of 35 multiple choice exam questions related to ASP.NET, covering topics such as static web pages, ASP.NET controls, session management, and web configuration. Each question provides options to test knowledge on various aspects of ASP.NET development. The questions address fundamental concepts and practical applications within the framework.

Uploaded by

chatttgpttt005
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ASP.

NET Week 03-1 Exam Questions (35 Multiple Choice Questions)

1. Which of the following is TRUE about static web pages?


A) They are created using server-side scripting only.
B) They change content based on user interaction.
C) They require a backend database to function.
D) They do not require a web server to display content.
E) They are compiled before deployment.

2. Which method adds user data to the URL in HTML forms?


A) SUBMIT
B) POST
C) GET
D) PUT
E) REQUEST

3. Which of the following is NOT a valid [Link] web control?


A) <asp:TextBox>
B) <asp:Panel>
C) <asp:DropDownList>
D) <asp:HTML>
E) <asp:Image>

4. In [Link], which property checks if the page is being loaded for the first time or as a
result of a postback?
A) EnableViewState
B) [Link]
C) IsPostBack
D) [Link]
E) [Link]

5. What is the primary purpose of the HiddenField control in [Link]?


A) Display encrypted data to the user
B) Store temporary view data for logging
C) Store variable values invisible to the user
D) Encrypt and decrypt form inputs
E) Bind visible elements to the backend

6. Which [Link] control uses the ImageUrl property and acts as a clickable image?
A) Label
B) HyperLink
C) Image
D) ImageButton
E) FileUpload

7. What is the use of the [Link]("[Link]"); method?


A) Downloads a file to the client
B) Sends the user to a new page while updating the browser's URL
C) Transfers the request to another page without changing the URL
D) Updates part of the page without reloading
E) Displays a modal window for the new page

8. Which section in the [Link] file contains database connection strings?


A) <[Link]>
B) <appStrings>
C) <connectionStrings>
D) <sqlConnections>
E) <dbConnect>

9. What is the correct HTML encoding for the less-than symbol (<) in [Link]?
A) &lt;
B) &less;
C) &#123;
D) &small;
E) %60

10. Which of the following properties helps maintain a control's state across postbacks in
[Link]?
A) ViewMode
B) IsStateful
C) EnableViewState
D) PostBackEnabled
E) StatefulControl

11. What does the TextMode property of a TextBox control define?


A) Max chars
B) Visible or not
C) Text alignment
D) Input type
E) Tooltip text

12. What is the function of Session_Start() in [Link]?


A) Server restart
B) Session timeout
C) Each page load
D) New session
E) Init global data

13. Which property triggers server-side events from client side?


A) ForeColor
B) TextAlign
C) OnClientClick
D) CommandName
E) PostBackUrl

14. Which control is used for file uploads?


A) HiddenField
B) ImageMap
C) FileUpload
D) TextBox
E) HyperLink

15. Main difference between [Link] and [Link]?


A) GET vs POST
B) URL change
C) Server/client
D) HTML only
E) Deprecated

16. Base class of all [Link] web pages?


A) WebControl
B) HttpPage
C) [Link]
D) [Link]
E) AspNetPage

17. Property that allows multiple selections in ListBox?


A) [Link]
B) SelectedItem
C) SelectionMode
D) MultiSelect
E) SelectedValue

18. Prefix for Label control?


A) txt
B) lbl
C) chk
D) cmd
E) opt

19. Purpose of ViewState?


A) Track login
B) Cookies
C) Maintain control state
D) Time sync
E) Encrypt request

20. Assign RGB color programmatically?


A) [Link]
B) ForeColor='red'
C) FromArgb
D) Color='#FF0000'
E) SetColor(...)

21. HTML tag for forms?


A) <input>
B) <start>
C) <form>
D) <page>
E) <htmlform>

22. Disadvantage of client-side technologies?


A) Deployment
B) Needs .NET
C) Cross-browser issues
D) No server conn.
E) Platform limit

23. Which control renders <select size=X>?


A) DropDownList
B) ListBox
C) RadioButtonList
D) CheckBoxList
E) Label

24. Enumeration for border styles?


A) BorderMode
B) BorderTypes
C) BorderShape
D) BorderStyle
E) BorderConfig

25. Default method for form submission?


A) GET
B) POST
C) PUSH
D) SUBMIT
E) REQUEST

26. What does [Link] represent?


A) User data
B) Cookies
C) Shared data
D) Request
E) Hidden fields

27. NavigateUrl property in HyperLink?


A) JS function
B) File upload
C) Redirect URL
D) Server event
E) Link color

28. Control to store hidden values?


A) Label
B) TextBox
C) HiddenField
D) Literal
E) ViewState

29. File extension for [Link] web services?


A) .asp
B) .ascx
C) .aspx
D) .asmx
E) .axpx

30. ImageMap control is used for?


A) Multi-image
B) Upload
C) Background
D) Clickable zones
E) Text-image

31. HTML encode a string in [Link]?


A) [Link]()
B) [Link]()
C) [Link]()
D) [Link]()
E) EncodeHtml()

32. Purpose of Cache object?


A) Credentials
B) Forms
C) Reuse data
D) Cookies
E) Encrypt session

33. Invalid RepeatDirection value?


A) Vertical
B) Horizontal
C) Grid
D) Flow
E) None

34. How to find control's parent?


A) Parent
B) Page
C) Controls
D) Owner
E) Master

35. [Link] file is used for?


A) Browser access
B) C# source
C) Deployment info
D) Client scripts
E) Debug only

You might also like