Advanced Web Programming MCQ's With Answers
AWP UNIT 2 MCQ's
1. The<appSettings>element is nested in the root_____________element.
- <configuration>
- <contains>
- <settings>
- <applications>
Ans : <configuration>
2. Every ASP.NET application is executed inside a separate ______________
- user domain.
- application domain.
- server domain.
- system domain.
Ans : application domain.
3. Event handlers takes ___________two parameters and return void.
- Object & event arguments
- Object & page events
- function & event
- arguments method & controls
Ans : Object & page events
4. All server controls derive from the basse control class in the_____________.
- System.Web.UI
- System.Web.UI.WebControl
- System.Web.UI.Html
- Control System.Web
Ans : System.Web.UI
5. ASP.NET control markup always begin with the prefix_____________.
- aspx:
- serverc:
- asp:
- cs:
Ans : asp:
6. __________ property displays a text message when the user hovers the mouse above the control.
- ToolTip
- AccessKey
- Display
- Text
Ans : ToolTip
7. _________ are used heavily in the .NET class library to group a set of related constants.
- Units
- Enumerations
- Fonts
- Colors
Ans : Enumerations
8. _____________ property indicates whether a list box allows single selection or multiple selections.
- SelectedIndex
- SelectedValue
- SelectionMode
- Items
Ans : SelectionMode
9. Which of the following Web control provide CheckedChanged event?
- Button
- RadioButton
- TextBox
- ListBox
Ans : RadioButton
10. Which of the following is not a property of BulletedList Control?
- BulletStyle
- DisplayMode
- SelectionMode
- BulletImageUrl
Ans : SelectionMode
11. Which of the following validator control ensures that the value of an input control matches a specified pattern?
- CompareValidator
- CustomValidator
- RangeValidator
- RegularExpression Validator
Ans : RegularExpression Validator
12. Which of the following is the property of Range Validator control?
- MaximumValue
- ValueToCampare
- ControlToCompare
- Operator
Ans : MaximumValue
13. Which of the following is the last event of ASP.NET page life cycle
- Page.Init
- Page.Unload
- Page.Load
- Page.PreRender.
Ans : Page.Unload
14. Which of the following Regular Expression Character is used to match any word character?
- \w
- \W
- \d
- \D
Ans : \w
15. Which of the following is not a member/property for Calendar Style?
- DayStyle
- TodayStyle
- TitleStyle
- WeekendDayStyle
Ans : TodayStyle
16. Which of the following determines which day is displayed in the first column of the calendar?
- DayNameFormat
- SelectedDates
- FirstDayOfWeek
- TodaysDate
Ans : FirstDayOfWeek
17. In AdRotator By using which Frame target, the link opens in Current frame?
- _blank
- _self
- _top
- _parent
Ans : _self
18. Which of the file extension is used by User Control?
- .aspx
- .cs
- .ascx
- .asax
Ans : .ascx
19. Which of the following TreeView Property Lets you specify how many levels of nodes will be visible at first.?
- MaxDataBindDepth
- ExpandDepth
- ShowExpandCollapse
- NodeWrap
Ans : ExpandDepth
20. Which of the following TreeView Style Property applies to any node that contains other nodes, except root nodes?
- ParentNodeStyle
- LeafNodeStyle
- RootNodeStyle
- HoverNodeStyle
Ans : ParentNodeStyle
21. Which of the following is not a nevigation control ?
- TreeView
- Menu
- DetailsView
- SiteMapPath
Ans : DetailsView
22. Which of the following Advertisement File Elements is the number that sets how often an advertisement will appear?
- NavigateUrl
- Impressions
- Keyword
- AlternateText
Ans : Impressions
23. Which of the following control look pretty much the same as ASP.NET web forms.?
- AdRotator Control
- MultiView Control
- Chart Control
- User Control
Ans : User Control
24. _______________ asp.net server side comment.
- <%-- comments here --%>
- <!-- comments here -->
- /* comments here */
- // comments here
Ans : <%-- comments here --%>
25. _______________ is not a common property of all webserver controls.
- Runat
- ID
- Enabled
- AccessKey
Ans : AccessKey
26. Which of the following enumerator is not valid for TextBoxMode?
- MultiLine
- CommentLine
- SingleLine
- Password
Ans : CommentLine
27. The browser submits a web form to the web server and the server returns an __________
- in response ASP page
- HTML page
- image file
- text file
Ans : HTML page
28. A textbox can be related to a label by setting the ________________ property of the Label control.
- ID
- Text
- AssociatedControlID
- AccessKey
Ans : AssociatedControlID
29. _______________ is not a property of ListBox.
- SelectionMode
- SelectedValue
- SelectedString
- SelectedIndex
Ans : SelectedString
30. ______________ Display property of RangeValidator control shows error message in the space reserved in case of failure.
- Static
- Dynamic
- None
- Null
Ans : Static
31. _______________ is not valid for Display property of RequiredFieldValidator control.
- Static
- None
- Null
- Dynamic
Ans : Null
32. ____________is an example of a rich control.
- TreeView
- UpdatePanel
- AdRotator
- FormView
Ans : AdRotator
33. Identify the wrong attribute of siteMapNode element.
- Url
- Title
- Source
- Description
Ans : Source