Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Starting Out with Visual Basic 2010, 5th Ed by Tony Gaddis/Kip Irvine TEST BANK Chapter 11 Identify the letter of the choice that best completes the statement or answers the question. ____ 1. This was the first server-side web programming technology introduced by Microsoft. a. JavaScript b. HTML c. PHP d. ASP ____ 2. ASP.NET is called a _____________ because it provides development tools, code libraries, and visual controls for web based applications. a. web tool b. platform c. code bank d. programming language ____ 3. Which of the following is not one of the four types of web sites available from the ASP.NET Open WebSite dialog box? a. Local IIS b. File System c. HTML d. FTP site ____ 4. When an ASP.NET application is created, it contains only one file named __________. a. Default.aspx b. Index.aspx c. Default.htm d. Web.config ____ 5. The following controls all have a Windows form counterpart except __________. a. RadioButtonList b. Button c. TextBox d. CheckBox ____ 6. The following are true about a HyperLink control, except __________. a. its Text property is shown to the user at runtime b. it generates an event c. it allows the user to navigate to another Web page d. its Target property controls whether new page will appear in a separate window ____ 7. Which statement is true about the CheckBoxList control? a. each item has a Selected property b. only one item can be checked at a time c. it functions just like a ListBox control d. A and C are correct ____ 8. Which Web control is similar to the Windows form ComboBox control? Chapter 11 73 Starting Out with Visual Basic 2010, 5th Ed by Tony Gaddis/Kip Irvine TEST BANK a. b. c. d. TextBox DropDownList CheckBoxList ListBox ____ 9. All of the following are true about HTML tables except ________. a. they are more powerful than ASP.NET controls b. they are used to align text and graphics c. they have cell padding and cell spacing properties d. Visual Studio provides resizing handles that you can drag with the mouse ____ 10. Which method allows the user to navigate to another Web page? a. Redirect.Response b. Hyperlink.Redirect c. Response.Redirect d. Redirect.Hyperlink ____ 11. Web forms use a ____________ control to access a database and retrieve table rows. a. DataSet b. DataSource c. DataDetails d. Connection ____ 12. The GridView control provides all the following features except __________. a. it’s designed to display single row at a time is displayed b. you can sort on any column c. you can select the order in which columns appear d. you can format data within the columns ____ 13. The DetailsView control allows the user to do which of the following? a. display multiple rows of a database table at the same time b. connect to a data source c. view but not edit the rows of a database d. all of the above are true ____ 14. Internet Information Services (IIS) __________. a. implements a professional-quality Web server b. contains minimal security and configuration features c. requires little expertise to set up and maintain d. all of the above ____ 15. Which of the following is not a Web browser? a. Safari b. Firefox c. Windows Explorer d. Internet Explorer ____ 16. What does a Web browser do for an end user? a. Interprets HTML Chapter 11 74 Starting Out with Visual Basic 2010, 5th Ed by Tony Gaddis/Kip Irvine TEST BANK b. Connects to Web sites c. Hosts a Web site d. A and B are correct ____ 17. Which of the following outlines the proper order for connecting a web form to a database? a. Add a GridView control to the form Select the Data Source type Copy the database file to the App_Data folder Configure the SELECT statement for the database query b. Copy the database file to the App_Data folder Add a GridView control to the form Select the Data Source type Configure the SELECT statement for the database query c. Copy the database file to the App_Data folder Select the Data Source type Configure the SELECT statement for the database query Add a GridView control to the form d. Configure the SELECT statement for the database query Copy the database file to the App_Data folder Select the Data Source type Add a GridView control to the form ____ 18. Which is not a valid URL protocol? a. ftp:// b. http:// c. https:// d. htm:// ____ 19. ASP.NET controls are more powerful than HTML controls because __________. a. more fonts are available b. graphics can be embedded in them c. they use event handlers to carry out actions at runtime d. powerful hyperlinks can be embedded in them ____ 20. When designing web forms, the Toolbox window contains all of the following groups of controls except: a. Login to authenticate users. b. Data controls for connecting to data sources. c. WebParts that let the user modify the content and behavior of the web pages. d. Ftp controls for connecting to remote computers. ____ 21. Which of the following is not a TextBox TextMode property choice? a. Sorted b. SingleLine c. MultiLine d. Password ____ 22. Which of the following is true regarding ASP.NET? a. ASP.NET is a client-side programming technology. Chapter 11 75 Starting Out with Visual Basic 2010, 5th Ed by Tony Gaddis/Kip Irvine TEST BANK b. c. d. ASP.NET is Microsoft’s version of HTML and provides the same capabilities as HTML. ASP.NET provides many controls that are similar to those used in Windows forms. ASP.NET is the first generation of Web programming technology introduced by Microsoft. ____ 23. Which of the following is true about the HTML Designer? a. it requires the user know how to write HTML code b. it’s a tool that simplifies the design of Web pages and Web forms c. it’s an add-on to Visual Studio for an additional cost d. it’s not possible to visually edit Web pages using this tool ____ 24. When running a web application with Visual Studio or Visual Web Developer, _________________. a. the resulting Web page is displayed in a Web browser b. the server executes statements in the code-behind file c. the server creates a Web page consisting of standard HTML tags and controls d. all of the above ____ 25. Web applications use the __________ control instead of the datasets used by desktop applications. a. Gridview b. Datasource c. Table d. MS Access ____ 26. Which of the following is not true about the ASP.NET development platform? a. Visual Basic code can be stored in a separate file from a web page’s text and HTML. b. It allows you to transfer much of your Visual Basic knowledge to Web applications. c. It allows the use of object-oriented program code. d. Visual Basic is the only programming language that may be used. ____ 27. Web applications are designed around a __________ model, meaning the one computer produces data while another uses data. a. Client-Server b. Peer-to-Peer c. Master-Slave d. Server-User ____ 28. All of the following are browsers your Web pages should be tested with except __________. a. Chrome b. WebPro c. Safari d. Firefox Chapter 11 76 Starting Out with Visual Basic 2010, 5th Ed by Tony Gaddis/Kip Irvine TEST BANK ____ 29. A web form can be identified by its __________ filename extension. a. .asp b. .aspx.vb c. .aspx d. .config ____ 30. A postback occurs when the server processes the page contents and __________. a. does nothing when there are no changes to the page contents b. sends an error when the requested page is not found c. sends a different page that was requested by the user d. resends a modified version of the same page currently displayed ____ 31. When the Web form default.aspx is added to a project, another file named __________ is also created. a. default.asp b. default.aspx.vb c. default.config d. default.vb ____ 32. Web applications use a __________ control which is similar to the DataGridView used by desktop applications. a. GridView b. DataSource c. Table d. DetailsView Chapter 11 77 Starting Out with Visual Basic 2010, 5th Ed by Tony Gaddis/Kip Irvine TEST BANK Chapter 11 Answer Section Answer 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. Chapter 11 d b c d a b d b a c b a b a c d b d c d a c b d b d a b c d b a Page Reference 674 674 677 679 687 692 695 687 696, 697 704 706 706 714 678 676 674 707, 708 674 675 676 688 674 676 687 723 674 674 676 675 675 679 706 78