Deck 15: Web-Based Applications
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/75
Play
Full screen (f)
Deck 15: Web-Based Applications
1
The server loads an ASP.NET Web page every time it is requested by a client browser and then unloads it back to the browser after it processes the server-side code to render the HTML.
True
2
Windows Communications Foundation is one of the Application Programming Interface used to build service-oriented applications.
True
3
Selecting HTTP for the File Location,stores files,by default,in the C :\Inetpub\wwwroot directory.
True
4
When you set the Web Forms control's property using the Properties window in Visual Studio,the settings are stored in the code behind file-the file ending with the .aspx.cs extension.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
5
Dynamic web pages are pre-created pages,residing on the server's hard drive,and basically are delivered as HTML documents.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
6
For ASP.NET applications,property settings are not stored in the Web Form Designer Generated Code region for Web applications. They are stored in the file containing the HTML tags.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
7
To develop an ASP.NET application using Microsoft Internet Information Services (IIS),you must also have administrative debugging privileges on the computer used for development.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
8
The ASP.NET model extends the HTML file by including script code in the same file.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
9
The Web Forms controls are designed to look and act like their Windows counterparts. The programming model used for these controls is also closely aligned to the object-oriented programming model used with Windows controls.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
10
Web Forms controls map straight to HTML tags.There is a one-to-one correspondence between the controls and the tags generated.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
11
By default only a few Web Forms server control events trigger a postback to the server. Common user interface events such as mouse moves and key presses are not automatically posted to the server.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
12
Master page allows you to create and maintain a consistent theme across several pages for a Web site.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
13
To indicate that the control is a Web Forms control,Visual Studio prefixes the control name with and ends the tag with .
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
14
HTML tags tell the browser how to display text in different formats,whereas XML uses tags as a format for describing data.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
15
You cannot use the drag-and-drop construction approach of Visual Studio to develop Web-based applications.This approach can only be used with Windows applications.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
16
There are more controls to add to a Web application than there are for Windows applications.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
17
Web services publish information in a standardized format about their location and functionality in a WSDL registry.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
18
HTML controls do not maintain state..
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
19
A round trip to the server on which the page is stored is required for the second and subsequent requests for a web page.The first request can be dealt with without a round trip.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
20
For retrieving data from a database,you can use a GridView object. However,by default,the GridView control displays data on a Web form in a read-only format.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
21
There is no Main( )method with ASP.NET applications.Instead there is a Page_Load( )event handler.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
22
Two files are created for each page when you build Web applications.This file ending in .aspx holds the HTML tags.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
23
Web pages are stateless. What does this mean?
A) Every postback trip to the server creates a new object.
B) Values entered are not automatically saved and redisplayed when a page is sent back to a client computer.
C) They do not retain their values from one trip to the Web server to the next.
D) All of the above.
A) Every postback trip to the server creates a new object.
B) Values entered are not automatically saved and redisplayed when a page is sent back to a client computer.
C) They do not retain their values from one trip to the Web server to the next.
D) All of the above.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
24
The RequiredFieldValidator validation control matches an input value to a pattern to see if the values match a predictable sequence.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
25
With ASP.NET,you write code in a separate scripting language such as JavaScript or VBScript.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
26
One approach to developing Web sites is to use Microsoft Internet Information Services (IIS).IIS is ____.
A) Web server software
B) a tool used to execute ASP scripts
C) a form of Internet browser
D) an Integrated Development Environment (IDE)
A) Web server software
B) a tool used to execute ASP scripts
C) a form of Internet browser
D) an Integrated Development Environment (IDE)
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
27
Dynamic Web pages normally involve some processing in addition to rendering the formatting of HTML tags.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
28
The .aspx.cs file is where your program logic,including your event handlers,is stored with ASP.NET Web sites.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
29
As you review the Solution Explorer window,you will find a .Designer.cs file similar to the one you find with Windows applications.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
30
Static web pages end with file extensions,namely ____.
A)htm
B)asp
C)aspx
D)asmx
A)htm
B)asp
C)aspx
D)asmx
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
31
All of the following are true statements regarding Web-based applications,EXCEPT ____.
A) Web-based applications run within an Internet browser
B) Web-based applications are designed to be accessible to multiple users
C) Web-based applications are designed for a single platform
D) Web-based applications are designed to deliver the same content to every user
A) Web-based applications run within an Internet browser
B) Web-based applications are designed to be accessible to multiple users
C) Web-based applications are designed for a single platform
D) Web-based applications are designed to deliver the same content to every user
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
32
ASP.NET pages end with a(n)____ file extension.
A)asp
B)net
C)asmx
D)aspx
A)asp
B)net
C)asmx
D)aspx
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
33
Which of the following is an example of a scripting language that might be used to create a dynamic web page?
A) C#Script
B) CScript
C) JavaScript
D) all of the above
A) C#Script
B) CScript
C) JavaScript
D) all of the above
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
34
With traditional client server ASP,once the client requests a page,the server gets it ready by executing any scripts found inside the HTML document,____.
A) the client receives the scripts for execution in the Internet browser
B) the server displays the results in the form of an HTML document
C) the client sees the result in the form of an HTML document
D) the server returns the rendered page in a compressed format
A) the client receives the scripts for execution in the Internet browser
B) the server displays the results in the form of an HTML document
C) the client sees the result in the form of an HTML document
D) the server returns the rendered page in a compressed format
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
35
The only event listed below that is automatically posted back to the server when the event is triggered is the ____.
A) ListBox SelectedIndexChanged event
B) TextBox KeyPress event
C) RadioButton CheckedChanged event
D) Button Click event
A) ListBox SelectedIndexChanged event
B) TextBox KeyPress event
C) RadioButton CheckedChanged event
D) Button Click event
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
36
Visual Studio has a built-in ASP.NET Development Server for testing and running Web sites.It is not necessary to have IIS installed and running.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
37
Web sites are reopened differently from a Windows application.To reopen a Web application in Visual Studio,select the Web sites name under the TOOLS Options menu.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
38
With Web applications,instead of using a MessageBox object to display information to users,a common control used for this is a ____.
A) Web form
B) Label
C) Button
D) MessageDialog
A) Web form
B) Label
C) Button
D) MessageDialog
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
39
Software that hosts or delivers a Web application is called a(n)____.
A) Web server
B) Internet browser
C) Integrated Development Environment (IDE)
D) Web site
A) Web server
B) Internet browser
C) Integrated Development Environment (IDE)
D) Web site
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
40
HTML is more restrictive than XHTML.With HTML all tags or elements are written using lowercase characters.All elements must be closed and must be properly nested under a single root tag.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
41
In addition to dragging a validation control to the form,you must set the ____ property in order to tie the validation control to a specific form control object.
A) RequiredFieldValidator
B) ControlToValidate
C) ErrorMessage
D) RegularExpressionValidator
A) RequiredFieldValidator
B) ControlToValidate
C) ErrorMessage
D) RegularExpressionValidator
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
42
____ describes the concept of spreading applications over more than one computer system.
A) Web based applications
B) Centralized computing
C) Web service applications
D) Distributed computing
A) Web based applications
B) Centralized computing
C) Web service applications
D) Distributed computing
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
43
Using Visual Studio,you can add which of the following types of controls?
A) Navigation
B) Login
C) Data
D) All of the above
A) Navigation
B) Login
C) Data
D) All of the above
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
44
In order to set the Calendar control object Calendar1 to the current date,you could type ____.
A) Calendar1.SelectedDate = DateTime.Today;
B) Calendar1.SelectedDate = Today;
C) Calendar1.Date = Today;
D) Calendar1.Date = Today.DateTime;
A) Calendar1.SelectedDate = DateTime.Today;
B) Calendar1.SelectedDate = Today;
C) Calendar1.Date = Today;
D) Calendar1.Date = Today.DateTime;
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
45
What is the name of the CSS file that you should find in the Solution Explorer window?
A) Site.css
B) Master.page
C) Style.aspx
D) Style.css
A) Site.css
B) Master.page
C) Style.aspx
D) Style.css
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
46
With Windows and console-based applications,execution begins with the first statement in the Main( )method.With a Web application,execution begins with the first statement in the ____.
A) Main( ) method.
B) Page_Load( ) method
C) constructor method
D) InitializeComponent( ) method
A) Main( ) method.
B) Page_Load( ) method
C) constructor method
D) InitializeComponent( ) method
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
47
What special attribute can be added to a control's tag in the XHTML file to make the control visible or accessible to the Web server?
A) runat="server"
B) OnClick( )
C)
D)
A) runat="server"
B) OnClick( )
C)
D)
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
48
XHTML Directives are delimited with ____.
A) <asp: and /asp>
B) <! and !>
C) </ and />
D) <% and %>
A) <asp: and /asp>
B) <! and !>
C) </ and />
D) <% and %>
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
49
Style sheet includes a list of rules.Each rule consists of ____.
A) a tag and an attribute
B) a selector and one or more declaration blocks
C) an outline body
D) one or more property
A) a tag and an attribute
B) a selector and one or more declaration blocks
C) an outline body
D) one or more property
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
50
The default home directory for Web applications on most machines is ____.
A) c :\localhost
B) c :\InetPub\wwwroot
C) http://localhost
D) c :\
A) c :\localhost
B) c :\InetPub\wwwroot
C) http://localhost
D) c :\
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
51
All of the following are true regarding Cascading Style Sheets (CSS)EXCEPT ____.
A) CSS uses style sheets to describe how elements will look in terms of their layout
B) CSS lets you separate the actual content from how it is going to look
C) CSS enables you to provide more consistency across pages on Web sites
D) CSS stores tags representing sizes, colors of fonts, and alignment of text within the HTML markup
A) CSS uses style sheets to describe how elements will look in terms of their layout
B) CSS lets you separate the actual content from how it is going to look
C) CSS enables you to provide more consistency across pages on Web sites
D) CSS stores tags representing sizes, colors of fonts, and alignment of text within the HTML markup
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
52
The code-behind file with ASP.NET is saved using which file extension?
A)xaml
B)xaml.cs
C) .aspx
D)aspx.cs
A)xaml
B)xaml.cs
C) .aspx
D)aspx.cs
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
53
Which validation control compares an input value to see if it is between a specified lower and upper boundary?
A) RegularExpressionValidator
B) BoundaryValidator
C) CompareValidator
D) RangeValidator
A) RegularExpressionValidator
B) BoundaryValidator
C) CompareValidator
D) RangeValidator
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
54
What is one of the major differences between an ASP .NET application that you build and a Windows application?
A) You can drag and drop controls onto the Windows form.
B) All of the control classes are organized under a common namespace for Windows applications.
C) Windows applications are event driven applications.
D) Two separate files are created for the user interface for Web applications.
A) You can drag and drop controls onto the Windows form.
B) All of the control classes are organized under a common namespace for Windows applications.
C) Windows applications are event driven applications.
D) Two separate files are created for the user interface for Web applications.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
55
The language formatted in XML that is used to describe the capabilities of a Web service and includes details about the methods in terms of what type of data they can receive and what type of results they will return is ____.
A) SOAP
B) WSDL
C) UUDI
D) HTTP
A) SOAP
B) WSDL
C) UUDI
D) HTTP
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
56
To set the message for an Input text field use the ____ property.
A) Text
B) Input
C) Value
D) Field
A) Text
B) Input
C) Value
D) Field
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
57
____ enable you to provide more consistency across pages on a Web site.
A) Cascading Style Sheets
B) ASP.NET
C) MainContent Pages
D) DynamicPage applications
A) Cascading Style Sheets
B) ASP.NET
C) MainContent Pages
D) DynamicPage applications
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
58
All of the following types of controls can be added to a Web Forms page,EXCEPT ____.
A) Standard
B) HTML
C) ASP controls
D) Validation
A) Standard
B) HTML
C) ASP controls
D) Validation
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
59
The ____ control does not have a property called AutoPostBack that can be set to true to trigger an automatic postback to the server.
A) ListBox
B) RadioButton
C) Button
D) CheckBox
A) ListBox
B) RadioButton
C) Button
D) CheckBox
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
60
The ____ class reduces your need for accessing individual data provider classes when you are connecting to an Access database.
A) SqlDataBase
B) ODBCDatabase
C) OLEDBDataBase
D) AccessDataSource
A) SqlDataBase
B) ODBCDatabase
C) OLEDBDataBase
D) AccessDataSource
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
61
____________ is a language formatted in XML that is used to describe the capabilities of a Web service and is itself part of that service.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
62
Referred to as Standard controls,server controls,ASP server controls,or simply ____________,these controls have more built-in features than HTML controls.They are more powerful and closely akin to Windows Forms control objects.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
63
____________ enable you to exchange data from one computer to another over the Internet or an intranet.This exchange can involve the data being processed or manipulated before being sent.____________ are applications that return data.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
64
Use the ____________ property to tie a validation control to a specific form control object such as a TextBox object.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
65
In order to create a Windows Phone application using Visual Studio,you must have the ____________ installed.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
66
Master pages actually consist of two pieces: the master page itself and one or more
____________ pages.
____________ pages.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
67
____________ controls do not maintain their state during the round-trip from the Web server.So,when the Web server sends back results,the original values on ____________ controls disappear.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
68
There are several models used for building ASP.NET Web sites.The ____________ is closer to the Windows Forms event-based programming model.It enables you to use server controls,encapsulating HTML and CSS so dynamic applications can be created and enables you to incorporate rich user interface controls,like data grids,into your application.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
69
A(n)____________ that simulates a Windows Phone device is included as part of the Software Development Kit.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
70
____________ tags tell the browser how to display data in different formats,for example,in bold or italic or in different fonts or font sizes.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
71
You can use the Text property and/or the ErrorMessage property for validation controls to
____________.
____________.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
72
____________ uses style sheets to describe how elements will look in terms of their layout,fonts,and colors.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
73
You can use the ____________ configuration wizard to connect to a data source and do very little,if any,programming.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
74
The Calendar control has a number of properties including the ____________ property that is used to pick the month,day,and year for display.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
75
To work with the calendar control programmatically,an object of the ____________ class is can be used to assign dates to the calendar's SelectedDate property.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck