98-361 : Software Development Fundamentals : Part 04
-
You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest.
Which type of programming should you use to determine whether the room is still available when the request is made?
- client-side
- server-side
- multithreaded
- batch processing
Explanation:For room availability we need to check a database located on a server.
-
You need to group all the style settings into a separate file that can be applied to all the pages in a Web application.
What should you do?
- Use a Cascading Style Sheet (CSS).
- Use inline styles.
- Use an Extensible Markup Language (XML) schema.
- Use a WebKit.
Explanation:Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup language.
CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts. -
Where must Internet Information Services (IIS) be installed in order to run a deployed ASP. NET application?
- on the computer that you plan to deploy from
- on the computer that hosts the application
- on the Application Layer Gateway Service
- on the client computers
Explanation:IIS is run on the web server. The web server is hosting the application.
-
What is displayed when you attempt to access a Web service by using a Web browser?
- a listing of methods that are available in the Web service
- a directory listing of the Web service’s application structure
- an error page explaining that you have accessed the Web service incorrectly
- a visual depiction of your preliminary connection to the Web service
Explanation:The server, in response to this request, displays the Web service’s HTML description page.
The Web service’s HTML description page shows you all the Web service methods supported by a particular Web service. Link to the desired Web service method and enter the necessary parameters to test the method and see the XML response. -
You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest.
Which type of programming should you use to determine whether the room is still available when the request is made?
- functional
- dynamic
- in-browser
- server-side
-
HOTSPOT
You are developing a web application.You need to create the following graphic by using Cascading Style Sheets (CSS):
Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
-
You are migrating several HTML pages to your website. Many of these pages contain HTML <center> and <font> tags. Which XHTML document type declaration should you use?
- Option A
- Option B
- Option C
- Option D
Explanation:The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.
XHTML 1.0 Transitional
This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
-
This question requires that you evaluate the underlined text to determine if it is correct.
When creating a site to utilize message queuing, the “IP address” must be configured to MSMQ.
Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct.
- No change is needed
- protocol
- host header
- port
Explanation:MSMQ is a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner.
-
You need to debug a Windows Service application by using breakpoints.
What should you do?
- Write all events to an event log.
- Set the Windows Service status to Paused.
- Implement the Console.WriteLine method throughout the Windows Service.
- Use the Attach to Process menu in Microsoft Visual Studio.
Explanation:* Because a service must be run from within the context of the Services Control Manager rather than from within Visual Studio, debugging a service is not as straightforward as debugging other Visual Studio application types. To debug a service, you must start the service and then attach a debugger to the process in which it is running.
* To debug a service
Install your service.
Start your service, either from Services Control Manager, Server Explorer, or from code.
In Visual Studio, choose Attach to Process from the Debug menu.
Etc. -
HOTSPOT
You are creating a Windows Store application that uses the following gesture:Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
-
What does the Console.Error property do within a console-based application?
- sets the standard error input stream
- gets the standard error output stream
- gets the standard error input stream
- sets the standard error output stream
Explanation:The Console.Error property gets the standard error output stream.
-
This question requires that you evaluate the underlined text to determine if it is correct.
The default entry point for a console application is the Class method.
Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct.
- No change is needed
- Main
- Program
- Object
Explanation:The default entry point for a console application is the Class Main.
-
This question requires that you evaluate the underlined text to determine if it is correct.
Converting an object to a more general type is called upcasting.
Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct.
- No change is needed
- downcasting
- interfacing
- flexing
Explanation:Casting up a hierarchy means casting from a derived object reference to a base object reference.
-
DRAG DROP
You are extending an application that stores and displays the results of various types of foot races. The application contains the following definitions:The following code is used to display the result for a race:
The contents of the console must be as follows:
– 99 seconds
– 1.65 minutes
– 99You need to implement the FootRace class.
Match the method declaration to the method body, (To answer, drag the appropriate declaration from the column on the left to its body on the right. Each declaration may be used once, more than once, or not at all. Each correct match is worth one point.)
-
You have a class named Glass that inherits from a base class named Window. The Window class includes a protected method named break().
How should you call the Glass class implementation of the break() method?
- Window.break();
- Glass.break();
- this.break();
- base.break();
-
You are developing an application that tracks tennis matches. A match is represented by the following class:
A match is created by using the following code:
How many times is the Location property on the newly created Match class assigned?
- 0
- 1
- 2
- 3
-
HOTSPOT
You have a base class named Tree with a friend property named color and a protected property named NumberOfLeaves. In the same project, you also have a class named Person.For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
-
HOTSPOT
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. -
This question requires that you evaluate the underlined text to determine if it is correct.
The duplication of code so that modifications can happen in parallel is known as separating.
Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct.
- No change is needed
- branching
- merging
- splitting
Explanation:When you develop applications in a team-based environment, you might need to access multiple versions of your application at the same time. If you copy one or more areas of your code into a separate branch, you can update one copy while you preserve the original version, or you can update both branches to meet different needs. Depending on your development goals, you can later merge the changes from multiple branches to create a single version that reflects all changes.
-
HOTSPOT
You are reviewing the architecture for a system that allows race officials to enter the results of 5K race results. The results are then made available to students using a web application. The architecture is shown below:Use the drop-down menus to select the answer choice that answers each question. Each correct selection is worth one point.