Friday 18 September 2015

Most Frequently ASP.Net Online Quiz Questions And Answers

121. Which class can be used to create an XML document from scratch?
A. XmlConvert
B. XmlDocument
C. XmlNew
D. XmlSettings
Ans: XmlDocument

122. Which class can be used to perform data type conversion between .NET data types and XML types?
A. XmlType
B. XmlCast
C. XmlConvert
D. XmlSettings
Ans: XmlConvert

123. For your ASP.NET web application your graphics designer created elaborate images that show the product lines of your company. Some of graphics of the product line are rectangular, circular, and others are having complex shapes. You need to use these images as a menu on your Web site. What is the best way of incorporating these images into your Web site?
A. Use ImageButton and use the x- and y-coordinates that are returned when the user clicks to figure out what product line the user clicked.
B. Use the Table, TableRow, and TableCell controls, break the image into pieces that are displayed in the cells, and use the TableCell control’s Click event to identify the product line that was clicked.
C. Use the MultiView control and break up the image into pieces that can be displayed in each View control for each product line. Use the Click event of the View to identify the product line that was clicked.
D. Use an ImageMap control and define hot spot areas for each of the product lines. Use the PostBackValue to identify the product line that was clicked.
Ans: Use an ImageMap control and define hot spot areas for each of the product lines. Use the PostBackValue to identify the product line that was clicked.

124. In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?
A. Use the ImageMap control and randomly select a HotSpot to show or hide.
B. Use the Image control to hold the image and a Calendar control to randomly select a date for each image to be displayed.
C. Use the AdServer control and create an XML file with configuration of the control.
D. Use an ImageButton control to predict randomness of the image to be loaded based on the clicks of the control.
Ans: Use the AdServer control and create an XML file with configuration of the control.

125. Which of the following is a requirement when merging modified data into a DataSet?
A. A primary key must be defined on the DataTable objects
B. The DataSet schemas must match in order to merge
C. The destination DataSet must be empty prior to merging
D. A DataSet must be merged into the same DataSet that created it.
Ans: A primary key must be defined on the DataTable objects

126. Which Kind Of data we can store in viewstate
A. Viewstate can store only serilizable object
B. Viewstate can store anything
C. Viewstate can store onlys string
D. None
Ans: Viewstate can store only serilizable object

127. What is/are the predefined TraceListener(s) in ASP.Net
A. TextWriterTraceListener
B. EventLogTraceListener
C. DefaultTraceListener
D. All the above 1, 2,3
Ans: All the above 1, 2,3

128. We have defined one page_load event in aspx page and same page_load event in code behind who will run first?
A. page_laod event in aspx page
B. page_load event in code-behind
C. both will run simultaneously
D. None
Ans: page_load event in code-behind

129. Which of the following represents the best use of the Table, TableRow, and Table-Cell controls?
A. To create and populate a Table in Design view
B. To create a customized control that needs to display data in a tabular fashion
C. To create and populate a Table with images
D. To display a tabular result set
Ans: To create a customized control that needs to display data in a tabular fashion

130. How to find out what version of ASP.NET I am using on my machine?
A. Response.Write(System.Environment.Version.ToString() );
B. Response.Write(Version.ToString() );
C. Response.Write(System.Version.ToString() );
D. not possible
Ans: Response.Write(System.Environment.Version.ToString() );

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9
 Page10 Page11 Page12 Page13 Page14

No comments:

Post a Comment