[Free] 2017(Jan) Ensurepass Braindumps Microsoft 98-361 Real Test 171-180

Ensurepass

Software Development Fundamentals

 

QUESTION 171

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 the Web.config file

B.

in the server-side code only

C.

in the client-side code only

D.

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

 

Correct Answer
:
D

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 172

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.

client-side

B.

batch processing

C.

server-side

D.

multithreaded

 

Correct Answer: C

Explanation:

For room availability we need to check a database located on a server.

 

 

QUESTION 173

You are creating an application for computers that run Windows XP or later. This application must run after the computer starts. The user must not be aware that the application is running.

 

The application performs tasks that require permissions that the logged-in user does not have.

 

Which type of application allows this behavior?

 

A.

Windows Forms application

B.

DOS batch file

C.

Terminate-and-stay-resident (TSR) program

D.

Windows Service application

 

Correct Answer: D

 

 

QUESTION 174

You have a table named ITEMS with the following fields:

 

clip_image002ID (integer, primary key. auto generated)

clip_image002[1]Description (text)

clip_image002[2]Completed (Boolean)

 

You need to insert the following data in the table:

 

“Cheese”, False

 

Which statement should you use?

 

A.

INSERT INTO ITEMS (Description, Completed) VALUES (‘Cheese’, 1)

B.

INSERT INTO ITEMS (ID, Description, Completed) VALUES (NEWID(), ‘Cheese’, 0)

C.

INSERT INTO ITEMS (ID, Description, Completed) VALUES (1, ‘Cheese”, 0)

D.

INSERT INTO ITEMS (Description, Completed) VALUES (‘Cheese’, 0)

 

Correct Answer: D

Explanation:

The string values TRUE and FALSE can be converted to bit values: TRUE is converted to 1 and FALSE is converted to 0.

 

Incorrect:

Not B, not C: ID is autogenerated and should not be specified.

 

 

QUESTION 175

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.

 

A.

No change is needed

B.

downcasting

C.

interfacing

D.

flexing

 

Correct Answer: A

Explanation:

Casting up a hierarchy means casting from a derived object reference to a base object reference.

 

 

QUESTION 176

What are two advantages of normalization in a database? (Choose two.)

 

A.

reduces schema limitations

B.

minimizes impact of data corruption

C.

decreases space used on disk

D.

prevents data inconsistencies

 

Correct Answer: CD

 

 

QUESTION 177

You have a server that limits the number of data connections.

 

What should you use to optimize connectivity when the number of users exceeds the number of available connections?

 

A.

Named pipes

B.

Normalization

C.

Connection timeouts

D.

Connection pooling

 

Correct Answer: D

 

 

 

 

 

 

QUESTION 178

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

 

Converting a value type to a reference type in an object is called boxing.

 

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.

unboxing

C.

interfacing

D.

mapping

 

Correct Answer: A

Explanation:

Boxing is an implicit conversion of a Value Types (C# Reference) to the type object or to any interface type implemented by this value type.

 

 

QUESTION 179

A class named Manager is derived from a parent class named Employee. The Manager class includes characteristics that are unique to managers. Which term is used to describe this object-oriented concept?

 

A.

inheritance

B.

data modeling

C.

data hiding

D.

encapsulation

 

Correct Answer: A

Explanation:

Classes (but not structs) support the concept of inheritance. A class that derives from another class (the base class) automatically contains all the public, protected, and internal members of the base class except its constructors and destructors.

 

Incorrect:

not D: Encapsulation is sometimes referred to as the first pillar or principle of object- oriented programming. According to the principle of encapsulation, a class or struct can specify how accessible each of its members is to code outside of the class or struct. Methods and variables that are not intended to be used from outside of the class or assembly can be hidden to limit the potential for coding errors or malicious exploits.

 

 

QUESTION 180

You need to create a property in a class. Consumers of the class must be able to read the values of the property. Consumers of the class must be prevented from writing values to the property. Which property procedure should you include?

 

A.

Set

B.

Get

C.

Let

D.

Return

 

Correct Answer: B

 

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

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