QUESTION 31

How should you configure an application to consume a Web service?

 

A.

Add the Web service to the development computer.

B.

Add a reference to the Web service in the application.

C.

Add a reference to the application in the Web service.

D.

Add the Web service code to the application.

 

Correct Answer: B

Explanation:

Start by adding a Service Reference to the project. Right-click the ConsoleApplication1 project and choose “Add Service Reference”:

 

 

QUESTION 32

You are developing an application that tracks tennis matches. A match is represented by the following class:

 

clip_image002

 

A match is created by using the following code:

 

clip_image004

 

How many times is the Location property on the newly created Match class assigned?

 

A.

0

B.

1

C.

2

D.

3

 

Correct Answer: C

 

 

QUESTION 33

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?

 

A.

functional

B.

dynamic

C.

in-browser

D.

server-side

 

Correct Answer: D

 

 

QUESTION 34

You execute the following code.

 

clip_image006

 

What will the variable result be?

 

A.

1

B.

2

C.

3

D.

4

 

Correct Answer: B

 

 

 

 

 

QUESTION 35

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:

 

clip_image008

 

The following code is used to display the result for a race:

 

clip_image010

 

The contents of the console must be as follows:

 

clip_image01299 seconds

clip_image012[1]1.65 minutes

clip_image012[2]99

 

You 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.

 

clip_image013

 

Correct Answer:

clip_image014

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 36

HOTSPOT

You are creating a Windows Store application that uses the following gesture:

 

clip_image016

 

Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.

 

clip_image018

 

Correct Answer:

clip_image020

 

 

 

 

 

 

 

 

 

 

 

QUESTION 37

You are reviewing a design for a database. A portion of this design is shown in the exhibits. Note that you may choose either the Crow’s Foot Notation or Chen Notation version of the design. (To view the Crow’s Foot Notation, click the Exhibit A button. To view the Chen Notation, click the Exhibit B button.) Which term is used to describe the Customer component?

 

clip_image022

clip_image024

 

A.

Field

B.

Attribute

C.

Property

D.

Entity

 

Correct Answer: D

Explanation:

Customer is a table (entity).

 

 

QUESTION 38

What does the Console.Error property do within a console-based application?

 

A.

sets the standard error input stream

B.

gets the standard error output stream

C.

gets the standard error input stream

D.

sets the standard error output stream

 

Correct Answer: B

Explanation:

The Console.Error property gets the standard error output stream.

 

 

QUESTION 39

You are reviewing a design for a database. A portion of this design is shown in the exhibit. Note that you may choose to view either the Crow’s Foot Notation or Chen Notation version of the design. (To view the Crow’s Foot Notation, click the Exhibit A button. To view the Chen Notation, click the Exhibit B button.) Which term is used to describe the relationship between Customer and Order?

 

clip_image026

clip_image028

 

A.

many-to-many

B.

one-to-many

C.

one-dimensional

D.

one-to-one

E.

multi-dimensional

 

Correct Answer: B

Explanation:

A customer can have many orders.

 

 

QUESTION 40

What are the three basic states that a Windows service can be in? (Choose three.)

 

A.

halted

B.

running

C.

stopped

D.

paused

E.

starting

 

Correct Answer: BCD

Explanation:

A service can exist in one of three basic states: Running, Paused, or Stopped.

 

Free VCE & PDF File for Microsoft 98-361 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…