Docsity

LESSON 4 SKILL SUMMARY, Exams of Advanced Education

Toggle sidebar
bg1
LESSON 4 SKILL SUMMARY
You write the following code for your Web page:
<html>
<head>
<title>Sample Page</title>
<style type="text/css">
div
{
font-family: Verdana;
font-size: 9pt;
}
</style>
</head>
<body>
<div style=
"font-weight: bold; font-size: 12pt;">
Sample Text</div>
</body>
</html>
What would be the style for the text displayed as part of the <div> element?
a. Font family: Verdana; font weight: bold; font size: 12pt
b. Font family: Verdana; font weight: bold; font size: 9pt
c. Font family: Verdana; font size: 12pt
d. Font family: Verdana; font size: 9pt - a. Font family: Verdana; font weight: bold; font size: 12pt
You are developing a mapping Web site that allows users to interactively explore maps using actions
such as panning and zooming. You want the Web site to be responsive and accessible in most modern
pf3
pf4
pf5

Partial preview of the text

Download LESSON 4 SKILL SUMMARY and more Exams Advanced Education in PDF only on Docsity!

LESSON 4 SKILL SUMMARY

You write the following code for your Web page:

Sample Page

Sample Text

What would be the style for the text displayed as part of the element? a. Font family: Verdana; font weight: bold; font size: 12pt b. Font family: Verdana; font weight: bold; font size: 9pt c. Font family: Verdana; font size: 12pt d. Font family: Verdana; font size: 9pt - a. Font family: Verdana; font weight: bold; font size: 12pt You are developing a mapping Web site that allows users to interactively explore maps using actions such as panning and zooming. You want the Web site to be responsive and accessible in most modern

Web browsers. However, you do not want users to have to install additional plug-ins in order to use your Web site. Which of the following technologies should you use to display maps? a. HTML b. Server-side programming technology such as ASP.NET c. Adobe Flash d. JavaScript - d. JavaScript Your ASP.NET page contains a page-level variable of Customer type. You want to preserve the value of this variable across page postbacks, but you do not need this variable in any other page in the application. Which of the following state-management techniques is the best way to achieve this? a. Query strings b. Cookies c. ViewState d. Session - c. ViewState You are developing a Web application for an online bank. Your application enables users to access their account information and transactions from within a Web browser. When a user logs onto the Web application, you want to show the username and account balance on all pages of the application until the user logs off. You also want this application to be safe from malicious users. Which of the following state-management techniques should you use? a. Cookies b. ViewState c. ViewState with encryption d. Session - d. Session You are developing a Web form to display weather information. When a user requests the Web form, the form needs to perform some initialization to change its appearance and assign values to some controls. Where should you put the code? a. In the PreInit event handler of the Page class b. In the Init event handler of the Page class c. In the Load event handler of the Page class d. In the PreRender event handler of the Page class - In the Load event handler of the Page class

The users of the Web service report that they can set a reference to the Web service but the Convert method is not available to them. What could be the problem? a. The .asmx file for the Web service is not available on the Web server. b. The Web service class is not marked with the WebService attribute. c. The Convert method is not marked with the WebMethod attribute. d. Web services can only expose methods that return text values. - c. The Convert method is not marked with the WebMethod attribute. You are working on two Visual Studio projects. The first project is a Web service that returns a DataSet object belonging to the System.Data namespace. The second project accesses the Web service created by the first project. Which project in this scenario requires a reference to the System.Data namespace? a. The Web service project. b. The client project that accesses the Web service. c. Both the client project and the Web service project. d. Neither the client project nor the Web service project. - c. Both the client project and the Web service project. In the HTML anchor tag (), the ____ attribute specifies the target URL. - href You can put CSS code in a separate file and link it to a Web page through use of the HTML ____element.

The JavaScript code on a Web page is executed on the _____. - client-side You can use a(n) ______ element to display a specific message to users when their browser is not running JavaScript. - You can disable _______ at the page level by setting the ________ attribute of the Page directive to false in the ASP.NET page. - ViewState, EnableViewState

The ______ state is used to store data that is used globally throughout an application, as opposed to the ______ state, which stores data for a user session. - Application,Session A Web application is accessed using a(n) ________ name instead of a physical folder name. - virtual directory You must mark classes with the ________ attribute to expose them as a Web service. - WebService Of all the methods in a Web service class, only those marked with ________ attributes are exposed as Web service methods. - WebMethod SOAP relies on ________ as its message format and uses _______for message transmission. - XML, HTTP