Download New Updated (June) Microsoft 98-361 Practice Test 41-50

Ensurepass

QUESTION 41  (Topic 1)

 

You are creating a variable for an application.

 

You need to store data that has the following characteristics in this variable:

Consists of numbers and characters

 

 

Includes numbers that have decimal points

 

Which data type should you use?

 

A.

String

B.

Float

C.

Char

D.

Decimal

 

Answer: A

Explanation: Need a string to store characters.

 

 

QUESTION 42

HOTSPOT  (Topic 1)

 

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

 

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 43  (Topic 1)

 

You plan to create an application for your company. The application will run automated routines and write the results to a text-based log file. Little or no user interaction is required.

 

Security requirements on the host computers prevent you from running applications on startup, and users must be able to see the status easily on the screen. The host computers also have limited memory and monitors that display only two colors. These computers will have no network connectivity.

 

Which type of application should you use for this environment?

 

A.

Directx

B.

Windows Service

C.

console-based

D.

Windows Store app

 

Answer: C

Explanation: Building Console Applications

Applications in the .NET Framework can use the System.Console class to read characters from and write characters to the console. Data from the console is read from the standard input stream, data to the console is written to the standard output stream, and error data to the console is written to the standard error output stream.

 

 

QUESTION 44  (Topic 1)

 

You execute the following code.

 

clip_image008

 

What will the variable result be?

 

A.

0

B.

1

C.

2

D.

3

 

Answer: C

 

 

QUESTION 45  (Topic 1)

 

You are creating an application that presents users with a graphical interface in which they can enter data. The application must run on computers that do not have network connectivity.

 

Which type of application should you choose?

 

A.

Console-based

B.

Windows Forms

C.

Windows Service

D.

ClickOnce

 

Answer: B

Explanation: Use Windows Forms when a GUI is needed.

 

 

QUESTION 46  (Topic 1)

 

You are creating a database for a student directory. The Students table contains the following fields:

 

clip_image010

 

Which statement will retrieve only the first name, last name, and telephone number for every student listed in the directory?

 

A.

WHERE Students SELECT *

B.

SELECT firstName, lastName, telephoneNumber FROM Students

C.

SELECT firstName, lastName, telephoneNumber IN Students

D.

SELECT * FROM Students

E.

WHERE Students SELECT firstName, lastName, telephoneNumber

 

Answer: B

Explanation: Use SELECT…FROM and list the fields you want to retrieve.

 

 

QUESTION 47  (Topic 1)

 

You have a website that includes a form for usemame and password.

 

You need to ensure that users enter their username and password. The validation must work in all browsers.

 

Where should you put the validation control?

 

A.

in both the client-side code and the server-side code

B.

in the client-side code only

C.

in the Web.config file

D.

in the server-side code only

 

Answer: A

Explanation: From version 2.0 on, ASP.NET recognized the JavaScript capabilities of these browsers, so client-side validation is now available to all modern browsers, including Opera, Firefox, and others. Support is even better now in ASP.NET 4.0. That said, it’s important not to forget that JavaScript can be disabled in any browser, so client-side validation cannot be relied upon–we must always validate any submitted data on the server.

 

 

QUESTION 48  (Topic 1)

 

You are building a web application that enables international exchange students to schedule phone calls with their prospective schools.

 

The application allows students to indicate a preferred date and time for phone calls. Students may indicate no preferred time by leaving the date and time field empty. The

 

 

application must support multiple time zones.

 

Which data type should you use to record the student’s preferred date and time?

 

A.

uLong?

B.

DateTime

C.

SByte

D.

DateTimeOffset?

 

Answer: D

Explanation: datetimeoffset: Defines a date that is combined with a time of a day that has time zone awareness and is based on a 24-hour clock.

 

Incorrect:

DateTime: Defines a date that is combined with a time of day with fractional seconds that is based on a 24-hour clock.

sByte: The sbyte keyword indicates an integral type that stores values in the range of -128 to 127.

 

 

QUESTION 49  (Topic 1)

 

The purpose of a constructor in a class is to:

 

A.

Initialize an object of that class.

B.

Release the resources that the class holds.

C.

Create a value type.

D.

Inherit from the base class.

 

Answer: A

Explanation: Each value type has an implicit default constructor that initializes the default value of that type.

 

 

QUESTION 50

HOTSPOT  (Topic 1)

 

 

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

 

clip_image012

 

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

 

clip_image014

 

A.

 

B.

 

C.

 

D.

 

 

Answer:

 

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…