Академический Документы
Профессиональный Документы
Культура Документы
Date:-07/07/2015
Student Name: -
College Name:-
Q.4 If you want to validate the email addresses, Social Security numbers, phone numbers, and dates types of data which
validation control will be used?
A) RegularExpressionValidator B) CompareValidator
Q.5 Which object in ASP.NET provides a global storage mechanism for state data that needs to be accessible to all pages in a
given Web application?
A) Session B) Application C) ViewState D) None of the above.
Q.6 You are a Web developer for INTS. The data is stored in a Microsoft SQL Server 2005 database on a server named INTS
and the Database name is TestDB. You connect to TestDB by using Windows Integrated authentication. You use a
SqlConnection object to connect to the database. You need to create a connection string to TestDB in the instance of SQL
Server named CareerPC. Which string should you use?
A) Data Source= INTS; Database=TestDB; Integrated Security=SSP1.
B) Data Source= INTS; Initial Catalog=TestDB; Integrated Security=SSP1.
C) Server= INTS; Database=TestDB; Integrated Security=SSP1. D) All of the above.
Q.7 How will you store and retrieve value in viewstate?
A) // Storing the data in viewstate
ViewState[SiteName]=CareerRide;
// Retrieving Value from a View State
Label1.Text = ViewState["SiteName "].ToString();
B) // Storing the data in viewstate
ViewState obj=new ViewState
ViewState [obj]=CareerRide;
// Retrieving Value from a View State
Label1.Text = ViewState[obj].ToString();
C) // Storing the data in viewstate
ViewState=CareerRide;
// Retrieving Value from a View State
Label1.Text = ViewState.ToString();
16) Which method do you invoke on the Data Adapter control to load your generated dataset
a) Fill ( )
b) ExecuteQuery ( ) c) Read ( )
a) Session Objects
b) application Objects
c) Viewstate
d) Session.End
c.) Interior Development Environment d.) Interior Design Environment e.) None of the
above.
20 Which does the solution explorer not display?
a.) all pages b.) master page c.) database file d.) Tool box
21 . Which are the standard prefixes for the text box and label controls respectively?
a.) tex and lbl
b.) tex and lab c.) txb and lbl d.) txb and lab e.) txt and lab
d.) Enabled
c.) MySQL
d.) Oracle
27.The WHERE clause is used to restrict the number of ____ retrieved by an SQL statement.
a.) fields b.) records
c.) tables
c.) [ ] d.) { }
c.) aspn
d.) aspx
b.) C# c.) C++ d.) Both a and b. e.) All of the above.