QUESTION 41

Which three items are benefits of encapsulation? (Choose three.)

 

A.

maintainability

B.

flexibility

C.

restricted access

D.

inheritance

E.

performance

 

Correct Answer: ABC

E
xplanation:

Encapsulation is the packing of data and functions into a single component.

 

In programming languages, encapsulation is used to refer to one of two related but distinct notions, and sometimes to the combination thereof:

 

clip_image002A language mechanism for restricting access to some of the object’s components.

clip_image002[1]A language construct that facilitates the bundling of data with the methods (or other functions) operating on that data.

 

Incorrect:

Not D: Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction.

QUESTION 42

Your database administrators will not allow you to write SQL code in your application. How should you retrieve data in your application?

 

A.

Script a SELECT statement to a file.

B.

Query a database view.

C.

Call a stored procedure.

D.

Reference an index in the database.

 

Correct Answer: C

Explanation:

The SQL will only be inside the stored procedure.

 

 

QUESTION 43

What are two methods that can be used to evaluate the condition of a loop at the start of each iteration? (Each correct answer presents a complete solution. Choose two. )

 

A.

If

B.

Do. . . While

C.

For

D.

While

 

Correct Answer: CD

Explanation:

For and While constructs check at the start of each iteration.

 

 

QUESTION 44

In this XHTML code sample, what will cause an error?

 

clip_image004

 

A.

All tags are not in uppercase.

B.

The body tag is missing a background attribute.

C.

The line break tag is incorrectly formatted.

D.

The HTML tags do not read XHTML.

 

Correct Answer: C

Explanation:

In XHTML, the <br> tag must be properly closed, like this: <br />.

 

 

QUESTION 45

Which function does Simple Object Access Protocol (SOAP) provide when using Web services?

 

A.

directory of registered Web services

B.

communications protocol

C.

security model

D.

model for describing Web services

 

Correct Answer: B

Explanation:

SOAP, originally defined as Simple Object Access Protocol, is a protocol specification for exchanging structured information in the implementation of web services in computer networks. It relies on XML Information Set for its message format, and usually relies on other application layer protocols, most notably Hypertext Transfer Protocol (HTTP) or Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission.

 

 

QUESTION 46

In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase?

 

A.

PostBack

B.

Postlnit

C.

Load

D.

Render

 

Correct Answer: D

Explanation:

The SaveStateComplete event is raised after the view state and control state of the page and controls on the page are saved to the persistence medium. This is the last event raised before the page is rendered to the requesting browser.

 

 

QUESTION 47

HOTSPOT

You are reviewing the following class that is used to manage the results of a 5K race:

 

clip_image006

 

For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

clip_image008

 

Correct Answer:

clip_image010

 

 

QUESTION 48

You are creating an application that presents the user with a Windows Form. You need to configure the application to display a message box to confirm that the user wants to close the form. Which event should you handle?

 

A.

Deactivate

B.

Leave

C.

FormClosed

D.

FormClosing

 

Correct Answer: D

Explanation:

The Closing event occurs as the form is being closed.

 

 

 

QUESTION 49

Which language allows you to dynamically create content on the client side?

 

A.

Extensible Markup Language (XML)

B.

Cascading Style Sheets (CSS)

C
.

Hypertext Markup Language (HTML)

D.

JavaScript (JS)

 

Correct Answer: D

Explanation:

JavaScript (JS) is a dynamic computer programming language. It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

 

 

QUESTION 50

This question requires that you evaluate the underlined text to determine if it is correct.

 

A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to maintain state is known as a ViewState.

 

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.

 

A.

No change is needed

B.

cookie

C.

form post

D.

QueryString

 

Correct Answer: B

Explanation:

A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to maintain state is known as a Cookie.

 

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…