0% found this document useful (0 votes)
141 views15 pages

Dot Net Programming Objective Type Questions Unit 3 and Unit 4

This document contains 60 multiple choice questions related to Dot Net programming concepts like controls, validation, data binding and templates. Specifically, it covers controls like the Calendar, AdRotator, DataList and DataGrid. It tests knowledge of properties, events and functionality of these controls, as well as concepts like validation, data binding expressions, templates and working with data sources.

Uploaded by

vj singh
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)
141 views15 pages

Dot Net Programming Objective Type Questions Unit 3 and Unit 4

This document contains 60 multiple choice questions related to Dot Net programming concepts like controls, validation, data binding and templates. Specifically, it covers controls like the Calendar, AdRotator, DataList and DataGrid. It tests knowledge of properties, events and functionality of these controls, as well as concepts like validation, data binding expressions, templates and working with data sources.

Uploaded by

vj singh
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/ 15

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

2. The link opens a new unframed window.

(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

5. Any character that is not a digit.


(a)\s (b)\S (c)\d (d)\D

Answer (d)\D

6. The data binding expression syntax is ------------------------------


a) <%#%> b) <%>
c) <%#> d) %#>

7. --------------------- is a versatile control that displays a list of items in an HTML table.


a) Data list b) Data Grid
c). Repeater d) None

8. -------------------- provides a banner-type graphic on a page.


a) Calendar control b) AdRotator
c). Validation d) None

9. ----------------- is performed by a user-defined function.


a) Range validator b) compare validator
c). custom validator d) Required field validator

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>

15. Calendar control is commonly called as ________________.


a) Poor control b) Rich control

c) Date control d) Calendar control

Ans: b) Rich control

16. The Adrotator stores its list of image files in a special __________.
a) html file b) xml file

c) ad file d) advertisement file

Ans: b) xml file

17. Which validation is performed by a user-defined function.


a) Compare validator b) Range validator

c) Custom validator d) Required validator

Ans: c) Custom validator

18. __________ is the most primitive of the template controls.


a) Repeater b) Data list
c) Data grid d) Data binding

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

21. The __________control is one of the most impressive web controls.


a)calendar b)rotator c)Datagrid d)Datalist

22. The calendar control provides a whole host of _________properties.

a)single b)double c)formatting-related d)selected

23. The _________ makes it surprisingly easy to implement this logic.

a)rotator b)Datagrid c)Datalist d)calendar

24. The________has been available as an ASP components for some time.

a) calendar b)Adrotator c)Datagrid d)Datalist

25. The actual_____class only provides a limited set of properties.

a) calendar b)Adrotator c)Datagrid d)Datalist


26. All templates are coded in between the opening and ending tag of the __________control

a)calendar b)rotator c)Datagrid d)Datalist

27. Inside the items template ,you add a data binding expression using the special
_______data binding expression syntax.

a)<%# %> b) <%$ %> c)<%& %> d)<%@ %>

28. The______tag to change the font style and size for the displayed text.

a) <font> b)<b> c )<br> d)<fontstyle>

29) The _________is probably the most powerful data control.

a)datalist b) DataGrid c) adrotator d)calender

30) The content and formatting of each column is defined in a special nested ____________
tag

a) <font> b)<b> c )<columns> d) <fontstyle>

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

Ans : Data table

36. When the user clicks on a date it becomes highlighted in a _____ box.

a)Text b)label c)Gray d)Command

Ans: Gray

37. You can retrieve the day as a DateTime object from the _____ property.

a)Calendar.SelectedDate b)Calendar.DisplayTime c)Calendar.RetrieveData


d)Calendar.SelectedTime

Ans: Calendar.SelectedDate

38. Which property set the type of selection?

a)Calendar.SetMode b)Calendar.SelectionType c)Calendar.SetType


d)Calendar.SelectionMode

Ans: Calendar.SelectionMode

39. To open a new unframed window _____ target is used.

a)_parent b)_blank c)_self d)_top

Ans: _blank

40. A data binding expressions is _____.

a)<%# %> b)<\@ /> c)<%& %> d)<%@ %>

Ans: <%# %>

41. Syntax for data binding.

a)Container.DataBind b)Selected.DataMerge c)Container.DataItem d)Selected.DataItem

Ans: Container.DataItem
42. Auto format link placed at the _____ of the properties window.

a)Top b)left c)Right d)Bottom

Ans: Bottom

43. In Data Grids the content and formatting of each column is defined in a special nested
_____ tag.

a)<table> b)<cells> c)<columns> d)<rows>

Ans: <columns>

44. A BoundColumn is used to display _____ from a field in the DataSource.

a)Contents b)Items c)Data d)Text

Ans: Text

45. The EditCommandColumn displays _____ and _____ buttons.

a)Edit and Table b)Column and Row c)Insert and Update d)Cancel and Update

Ans: Cancel and Update

46.The Calendar Control is commonly called..........

a) Rich Control

b) Date Control

c) Web Control

d) Asp Control

Ans : a) Rich 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

Ans : d) XML File


48.Which element is used to a number that sets how often an advertisement will
appear............

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

50.Which column is used to displays a text from a field in the DataSource

a) BoundColumn

b) ButtonColumn

c) TemplateColumn

d) HyperlinkColumn

Ans : a) BoundColumn

51. Which link opens a new unframed window


a. Blank
b. Parent
c. Self
d. Top

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: d. required field validator


53. Templates are special blocks of----------
a. Xml
b. Html
c. Web server
d. Client

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>

56.The calendar control is one of the most impressive__________ control.

a) web control

b) rich control

c) a and b

d) None of the above

Ans :c) a and b

57.The AdRotator also uses a new _______ format.

a) lmageUrl

b) _blank

c) keyword
d) XML file

Ans: d) XML file

58. ASP. NET provides_______ different validator controls.

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) <%#%>

Ans :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

61. The calendar control is one of the most impressive control?*


(a) Calendar control
(b) Control
(c) Calendar
Ans: Calender control

62. The Second part of this chapter examines ASP.NET validation controls?*
(a) Validation
(b) Generation
(c) Controls
Ans: Validation

63.The calendar control provides a whole host of formatting-related properties?*

(a) host

(b)format

(c)calendar

Ans: Host

64.Data binding expression syntax <%#%>?*

(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>

66.Templates are special block of …………………………

a) HTML b)HTTP c)ASP.NET d).NET

ans : HTML

67. All the templates for controls like the …………………….. are defined in the .aspx file.

a) DataList b) DataSet c) both a (or ) b d) none of the above

ans : DataList

68. Every template has a corresponding …………………………

a) data b) style c) attribute d) Property

ans : style

69. The AdRotator also uses a new …………………… file format


a) .asp b) XML c) HTML d) .Net

ans : XML

70. ASP.NET provides ……………………….. different validator controls.

a) 1 b) 4 c) 8 d) 5

ans : 5

71. Which validation is performed by user defined function-------------


a. range validator
b. compare validator
c. custom validator
d. required field

ans : c. custom validator

72. A range validator ensures the age is a number from ------


a. 0 to 120
b. 1 to 120
c. 0 to 100
d. 0 to 99
Ans:a. 0 to 120

73. Which displays text from a field in the Data Source


a. Bound column
b. Button column
c. Template column
d. Edit command column

Ans:a.bound column

74. Repeater must begin with---------


a. <column>
b. <font>
c. <table>
d. <b>

Ans: c.<table>

75. Which tag used to non breaking spaces---------


a. <&nbsp>
b. <br>
c. <font>
d. <b>
Ans: a. <&nbsp>

76.The calendar control is one of the most impressive__________ control.

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

81. The ________ is one of the most impressive web controls?


a) Rich control b) Calendar control

c)server control d)Web control

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

87. The link opens a new unframed window.


A) _blank B) _parent
C) _self D) _top
Answer: _blank

88. ASP NET also provides _________ validation.


A) Server-side B) Client-side
C) Receiver-side D) Sender-side
Answer: B) Client-side

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

97. A……… that identifies a group of advertisement used for filtering


a) Impressions b) keyword c) alternate d) image

98. The Data List supports automatic selection and…..

a) Editing b) information c) rotation d) paging

99. …….. adds the contents of one Dataset into another

a) XML b) merge c) object d) command

100. ……… removes all the information in the Dataset.

a) Clear b) delete c) edit d) cancel

101.when the user clicks on a date,it becomes highlighted in a ______________


Ans: gray box
102.The calender control provides a whole host of formating_________________
Ans: formating-related properties
103.____________ event occurs when the calendar is about to create a month to display to
the user.
Ans: Calendar.DayRender event
104. The calendar control provides two other useful events they are__________
and________________
Ans: SelectionChanged , VisibleMonthChanged
105. The basic purpose of the AdRotator is to provide a____________ type graphic on a
page.
Ans: banner

You might also like