Dot Net Programming Objective Type Questions Unit 3 and Unit 4
Dot Net Programming Objective Type Questions Unit 3 and Unit 4
1. The link that will be followed if the user clicks on the banner .
(a)ImageUrl
(b)NavigateUrl
(c)Impression
(d)AlternateText
Answer (b)NavigateUrl
(a)__blank
(b) _parent
(c) _self
(d)top
Answer (a)__blank
3. Validation succeeds as long as the input control does not contain an empty string.
(a)RequiredFieldValidator
(b)RangeValidator
(c)CompareValidator
(d)CustomValidator
Answer (a)RequiredFieldValidator
4. Identifies the control that this validator will check. Each validator can verify the value in
one input control.
(a) ControlToValidate
(b) ErrorMessage
(c) ForeColor
(d) IsValid
Answer (a)ControlToValidate
Answer (d)\D
10. ------------------ property is used to find out if all the validation controls succeeded.
a) IsValid b) Enabled
c). Range validator d) None
11. The calendar control provides a whole host of ____________ properties.
A) Formatting-related B) Related-formatting
C) Formatting D) Related
Ans: A) Formatting-related
11. The calendar control provides __________ useful events.
A) One B) Two
C) Three D) Four
Ans: B) Two
12. The AdRotator also uses a new ____________ format.
A) ASP file B) HTML file
C) XML file D) AD file
Ans: C) XML file
13. Syntax for data binding expression.
A) <#%#> B) <%#%>
C) <*%#> D) <%#*>
Ans: B) <%#%>
14. With Data grids the content and formatting of each column is defined in a special nested
____________ tag.
A) <columns> B) <row>
C) <table> D) <cell>
Ans: A) <columns>
16. The Adrotator stores its list of image files in a special __________.
a) html file b) xml file
Ans: a) Repeater
19. ___________ generally refers to the ability to click on a row and it change color.
a) Editing b) Selecting
c) Sorting d) Updating
Ans: b) Selecting
27. Inside the items template ,you add a data binding expression using the special
_______data binding expression syntax.
28. The______tag to change the font style and size for the displayed text.
30) The content and formatting of each column is defined in a special nested ____________
tag
31.To retrive the day as Datatime Object from the ________ property.
a)Calendar. Selected Data
b) Calendar. Selected mode
c) Calendar. FirstDay of week
d) None
Ans : a) Calendar. Selected Data
32.Each DataRow represents a _______ row of information in the table.
a) Single
b) Multiple
c) Maximum
d) Minimum
Ans : a) Single
33.which SQL Statement used to modify records
a) Insert
b)Select
c) update
d) delete
Ans : c) update
34.Each validation control can be bound to a ______ input control.
a) Double
b) Multiple
c) Single
d) None
Ans : c) Single
35.The Dataview object provides a window on to a_____.
a) Data Row
b) Data column
c) Data table
d) Data Relation
36. When the user clicks on a date it becomes highlighted in a _____ box.
Ans: Gray
37. You can retrieve the day as a DateTime object from the _____ property.
Ans: Calendar.SelectedDate
Ans: Calendar.SelectionMode
Ans: _blank
Ans: Container.DataItem
42. Auto format link placed at the _____ of the properties window.
Ans: Bottom
43. In Data Grids the content and formatting of each column is defined in a special nested
_____ tag.
Ans: <columns>
Ans: Text
a)Edit and Table b)Column and Row c)Insert and Update d)Cancel and Update
a) Rich Control
b) Date Control
c) Web Control
d) Asp Control
47.The AdRotator class store the list of image file in which file format...........
a) HTML File
b) JPEG File
c) PNG File
d) XML File
a) ImageUrl
b) Impressions
c) Keyword
d) NavigateUrl
Ans : b) Impressions
49.Which validator control is used to find the value within a specific numeric, alphabetic or
date range......
a) CustomValidator
b) RegularExpressionValidator
c) RangeValidator
d) CompareValidator
Ans : c) RangeValidator
a) BoundColumn
b) ButtonColumn
c) TemplateColumn
d) HyperlinkColumn
Ans : a) BoundColumn
Ans: a. blank
52. A ---------is used for the username and the password.
a. Range validator
b. Custom validator
c. Compare validator
d. Required field validator
Ans: b. html
54. Add data binding expression using---------
a. %*%
b. <%*%>
c. %#%
d. <%#%>
Ans: d. <%#%>
55. The ------tag to bold the heading
a. <font>
b. <br>
c. <b>
d. <nbsp>
Ans: c. <b>
a) web control
b) rich control
c) a and b
a) lmageUrl
b) _blank
c) keyword
d) XML file
a) 5
b) 6
c) 8
d) 2
Ans: a) 5
59. A data binding expression using the special________ data binding expression syntax.
a) <#>
b) <#%#>
c) <%>
d) <%#%>
60. The _______ is a versatile control that display a list of items in an HTML table.
a) columnList
b) DataList
c) DataGrid
d)visual Studio
Ans :b)DataList
62. The Second part of this chapter examines ASP.NET validation controls?*
(a) Validation
(b) Generation
(c) Controls
Ans: Validation
(a) host
(b)format
(c)calendar
Ans: Host
(a) name
(b) <%#%>
(c)list
Ans: <%#%>
65.The <font>tag to change the font style and size for the displayed text?*
(a) <font>
(b) <b>
(c)<br>
Ans:<font>
ans : HTML
67. All the templates for controls like the …………………….. are defined in the .aspx file.
ans : DataList
ans : style
ans : XML
a) 1 b) 4 c) 8 d) 5
ans : 5
Ans:a.bound column
Ans: c.<table>
a) web control
b) rich control
c) a and b
d) None of the above
Ans :c) a and b
77.The AdRotator also uses a new _______ format.
a) lmageUrl
b) _blank
c) keyword
d) XML file
Ans: d) XML file
78. ASP. NET provides_______ different validator controls.
a) 5
b) 6
c) 8
d) 2
Ans: a) 5
79. A data binding expression using the special________ data binding expression syntax.
a) <#>
b) <#%#>
c) <%>
d) <%#%>
Ans :d) <%#%>
80. The _______ is a versatile control that display a list of items in an HTML table.
a) columnList
b) DataList
c) DataGrid
d)visual Studio
Ans :b)DataList
82. The AdRotator is to Provide a _________graphic on a page that is chosen randomly from
a group of possible banners?
a) banner-type b) random-type
c) rotation-type d) both a and b
83. __________ link that will be followed if the user click on the banner.
a)Image Url b)Url Encode
c)Navigate Url d)Url Decode
84. Syntax of data binding expression is __________?
a)<~#~> b)<”#”>
c)<&#&> d)<%#%>
85. _________ is a versatile control that displays a list of items in an HTML table.
a)DataList b)DataGrid
c)Repeater d)Editing item
86. A link that will be followed if the user clicks on the banner.
A) Image url B) Navigate url
C) Http url D) Alternate url
Answer: B) Navigate url
89. __________ expression can be used to fill in the appropriate control value.
A) Container DataItem data binding
B) Container DataItem data grid
C) Container DataItem data list
D) Container DataItem data repeater
Answer: A) Container DataItem data binding
90. __________ use a special type of column that automatically displays the edit buttons.
A) Data grid B) Data list
C) Data binding D) Repeater
Answer: A) Data grid
91.Formatting the calendar designer_____ on the control on your design page, and select
Auto Format.
a. Left_ click
b. Selection
c. Right _ click
d. File format
92.A common technique in a window application is to handle the ___ event of a text box.
a. Validation
b. Key press
c. Custom
d. Input
93.Each validation control can be bound to a _____ input control.
a. Double
b. Minimum
c. Maximum
d. Single
94.Format string are generally made up of a place holder and format indicator, which are
wrapped inside_____
a. Curly bracket
b. Square bracket
c. bracket
d. None of the above
95.DataGrids are designed for displaying____ tables.
a. Single _column
b. Defining _column
c. Generating _column
d. Multi _column
96. Every time the Page is requested, a different banner could be chosen and displayed
the………. Indicated by the name.
a) Selection b) rotation c) option d) identification