Download New Updated (June) Microsoft 98-361 Practice Test 11-20

Ensurepass

QUESTION 11  (Topic 1)

 

The elements of an array must be accessed by:

 

A.

Calling the item that was most recently inserted into the array.

B.

Calling the last item in the memory array.

C.

Using an integer index.

D.

Using a first-in, last-out (FILO) process.

 

Answer: C

 

 

QUESTION 12  (Topic 1)

 

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

 

Answer: D

Explanation: The Closing event occurs as the form is being closed.

 

 

QUESTION 13  (Topic 1)

 

Which three are valid SQL keywords? (Choose three.)

 

A.

GET

B.

WHAT

C.

FROM

D.

SELECT

E.

WHERE

 

Answer: CDE

Explanation: Example:

SELECT * FROM Customers

WHERE Country=’Mexico’;

 

 

QUESTION 14  (Topic 1)

 

You have a Microsoft ASP.NET web application.

 

 

You need to store a value that can be shared across users on the server.

 

Which type of state management should you use?

 

A.

Session

B.

ViewState

C.

Application

D.

Cookies

 

Answer: C

Explanation: Application state is a data repository available to all classes in an ASP.NET application. Application state is stored in memory on the server and is faster than storing and retrieving information in a database. Unlike session state, which is specific to a single user session, application state applies to all users and sessions. Therefore, application state is a useful place to store small amounts of often-used data that does not change from one user to another.

 

Incorrect:

not A: Session State contains information that is pertaining to a specific session (by a particular client/browser/machine) with the server. It’s a way to track what the user is doing on the site.. across multiple pages…amid the statelessness of the Web. e.g. the contents of a particular user’s shopping cart is session data. Cookies can be used for session state. Not B: Viewstate is a state management technique in asp.net. ASP.NET Viewstate is preserving the data between the requests or postbacks and stored in hidden fields on the page.

 

 

QUESTION 15  (Topic 1)

 

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

 

The process of transforming compiled C# code into an XML string for a web service is known as deserialization.

 

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.

serialization

C.

decoding

D.

encoding

 

Answer: B

Explanation: Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed.

 

Serialization allows the developer to save the state of an object and recreate it as needed, providing storage of objects as well as data exchange. Through serialization, a developer can perform actions like sending the object to a remote application by means of a Web Service, passing an object from one domain to another, passing an object through a firewall as an XML string, or maintaining security or user-specific information across applications.

 

 

QUESTION 16  (Topic 1)

 

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.

 

Answer: C

Explanation: The SQL will only be inside the stored procedure.

 

 

QUESTION 17  (Topic 1)

 

Which term is used to describe small units of text that are stored on a client computer and retrieved to maintain state?

 

A.

trace

B.

cookie

C.

server transfer

D.

cross-page post

 

Answer: B

Explanation: HTTP is a stateless protocol. This means that user data is not persisted from one Web page to the next in a Web site. One way to maintain state is through the use of cookies. Cookies store a set of user specific information, such as a reference identifier for a database record that holds customer information.

 

 

QUESTION 18

HOTSPOT  (Topic 1)

 

You have the following flowchart:

 

 

 

clip_image002

 

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

 

clip_image004

 

 

 

clip_image006

 

A.

 

B.

 

C.

 

D.

 

 

Answer:

 

 

QUESTION 19  (Topic 1)

 

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.

 

Answer: B

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

 

 

QUESTION 20  (Topic 1)

 

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

 

Answer: B

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

 

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…