1) A web page has lots of input data, and you want the data input to be spread across multiple screens. What is the best control to implement this solution on a single Web page? a. ImageMap b. Panel c. Wizard d. None of the above.
|
||||
2) What are the steps to create a DataTable programmatically? a. Instantiate a new DataTable and add DataColumn objects to the DataTable. Columns Collection. b. Run the Data Source Configuration Wizard. c. Instantiate a new DataSet object. d. None of the above.
|
||||
3) The three statements are given below about DataSet and DataReader, choose the correct option according to the statement. Statement 1: DataSet Provides Disconnected environment but DataReader provides Connected environment. Statement 2: DataSet Provides Connected environment but DataReader provides Disconnected environment. Statement 3: DataSet Can store multiple table simultaneously but DataReader Supports a single table based on a single SQL query. a. Only Statement 1 is correct. b. Statement 1 and 2 is correct. c. Statement 2 and 3 is correct. d. Statement 1 and 3 is correct.
|
||||
4) Which control is required of every AJAX page to manage the JavaScript files sent to the client and the communication between client and server? a. UpdatePanel b. ScriptManager c. AsyncPostBackTrigger d. None of the above.
|
||||
5) The UpdatePanel supports two types of triggers: AsyncPostBackTrigger and PostBackTrigger. Choose the correct option regarding working of these triggers. a. AsyncPostBackTrigger causes an asynchronous (Ajax) postback. b. PostBackTrigger causes a normal entire-page postback. c. AsyncPostBackTrigger causes a normal entire-page postback. d. Option A and B are Correct.
|
||||
6) What is/are true about master page? Choose the correct option. a. You can add more than one master page in a website. b. Master page can be nested. c. ContentPlaceHolder control is required on a content page. d. Both A and B options are correct.
|
||||
7) What is/are true about master page? a. Master page contains a <%@ Master %> directive instead of the normal <%@ Page %> directive. b. ContentPlaceHolder control can be added only on master page. c. You can add as many ContentPlaceHolders to a Master Page as you need. d. All of the above.
|
||||
8) To implement a specified .NET Framework interface which directive is used? a. @Register b. @Control c. @Reference d. @Implements
|
||||
9) Which of the following is not an ASP.NET page event? a. Init b. Load c. Import d. None of the above.
|
||||
10) Which file is used to write the code to respond to the Application_Start event? a. Any ASP.NET web page with an .aspx extension b. Web.config c. Global.asax d. None of the above.
|
||||
11) What is the difference between a Local Transaction and a Distributed Transaction? a. Local transactions are performed on a single database table, but distributed transactions are performed on more than one database tables. b. Local transactions are performed on a single database server, but distributed transactions can be performed across multiple database servers. c. Local transactions are performed on a database on the local machine, but distributed transactions are performed on a database on a remote machine. d. None of the above.
|
||||
12) Choose the correct option about DataReader object. a. DataReader object is a forward-only object. b. It provides connection oriented environment. c. DataReader is read only object. d. All of the above
|
||||
13) Using which type of stylesheet we can change the style of an element in the entire website? a. Internal Stylesheet b. External Stylesheet c. Inline stylesheet d. None of these above
|
||||
14) How do you create a TextBox for retrieving a password from a user? a. Set TextMode property of the TextBox control to Secret. b. Set Mode property of the TextBox control to Password. c. Set Text property of the TextBox control to Password. d. Set TextMode property of the TextBox control to Password.
|
||||
15) What is/are the advantages of StateServer session mode? a. Its keeps the data separate from IIS so; if any Issue comes with IIS it will not hamper Session data. b. It is useful in web farm and web garden scenarios. c. Process is fast due to serialization and de-serialization. d. A and B are the correct option.
|
||||
16) What is/are the advantages of Session State? a. It helps to maintain user data to all over the application and can store any kind of object. b. Stores every client data separately. c. Session is secure and transparent from user. d. All of the above
|
||||
17) Choose the correct option about DataSet object. a. Provides Disconnected mode b. Can store multiple table simultaneously c. Consumer Object d. All of the above.
|
||||
18) You are a Web developer for CareerRide. The data is stored in a Microsoft SQL Server 2005 database on a server named CareerPC 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= CareerPC; Database=TestDB; Integrated Security=SSP1”. b. “Data Source= CareerPC; Initial Catalog=TestDB; Integrated Security=SSP1”. c. “Server= CareerPC; Database=TestDB; Integrated Security=SSP1”. d. All of the above.
|
||||
19) ASP.NET Validation Control works at ________ . a. Client side only. b. Server side only. c. Both Client Side and Server Side d. None of the above.
|
||||
20) Some control, by default, does not cause an automatic PostBack, i.e TextChanged event of TextBox. Which property will you set for automatic postback of these types of controls? a. isPostBack=”false” b. isPostBack=”true” c. PostBack=”true” d. AutoPostBack=”true”
|