Download New Updated (June) Microsoft 98-361 Practice Test 91-100

Ensurepass

QUESTION 91

HOTSPOT  (Topic 1)

 

The ASP.NET MVC page lifecycle is shown in the following graphic:

 

 

 

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

 

How many parameters can a default constructor have?

 

A.

0

B.

1

C.

2

D.

3 or more

 

Answer: A

Explanation: If a class contains no instance constructor declarations, a default instance constructor is automatically provided. That default constructor simply invokes the parameterless constructor of the direct base class.

 

 

QUESTION 93  (Topic 1)

 

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

 

The bubble sort algorithm steps through the list to be sorted, comparing adjacent items and swapping them if they are in the wrong order

 

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.

merge

C.

library

D.

insertion

 

Answer: A

 

 

QUESTION 94  (Topic 1)

 

You need to allow a consumer of a class to modify a private data member.

 

What should you do?

 

A.

Assign a value directly to the data member.

B.

Provide a private function that assigns a value to the data member.

C.

Provide a public function that assigns a value to the data member.

D.

Create global variables in the class.

 

Answer: C

Explanation: In this example (see below), the Employee class contains two private data members, name and salary. As private members, they cannot be accessed except by member methods. Public methods named GetName and Salary are added to allow
controlled access to the private members. The name member is accessed by way of a public method, and the salary member is accessed by way of a public read-only property.

 

 

 

Note: The private keyword is a member access modifier. Private access is the least permissive access level. Private members are accessible only within the body of the class or the struct in which they are declared

 

Example:

class Employee2

{

private string name = “FirstName, LastName”;

private double salary = 100.0;

 

public string GetName()

{

return name;

}

 

public double Salary

{

get { return salary; }

}

}

 

 

QUESTION 95  (Topic 1)

 

You need to evaluate the following expression:

 

(A>B) AND (C<D)

 

What is the value of this expression if A=3, B=4, C=4, and D=5?

 

A.

0

B.

4

C.

5

D.

False

E.

Null

F.

True

 

Answer: D

Explanation: A>B is false.

 

 

QUESTION 96  (Topic 1)

 

You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8.

 

The following sequence of operations is executed:

 

Pop

 

Push 3

 

Pop

 

Push 4

 

Push 6

 

Push 7

 

Pop

 

Pop

 

Pop

 

What is the value of the top element after these operations are executed?

 

A.

2

B.

3

C.

6

D.

7

 

Answer: B

 

 

QUESTION 97  (Topic 1)

 

 

What is displayed when you attempt to access a Web service by using a Web browser?

 

A.

a listing of methods that are available in the Web service

B.

a directory listing of the Web service’s application structure

C.

an error page explaining that you have accessed the Web service incorrectly

D.

a visual depiction of your preliminary connection to the Web service

 

Answer: A

Explanation: The server, in response to this request, displays the Web service’s HTML description page.

The Web service’s HTML description page shows you all the Web service methods supported by a particular Web service. Link to the desired Web service method and enter the necessary parameters to test the method and see the XML response.

 

 

QUESTION 98

HOTSPOT  (Topic 1)

 

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

 

A.

 

B.

 

C.

 

D.

 

 

Answer:

 

 

QUESTION 99  (Topic 1)

 

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

 

A.

prevents data inconsistencies

B.

reduces schema limitations

C.

minimizes impact of data corruption

D.

decreases space used on disk

 

Answer: AD

 

 

QUESTION 100  (Topic 1)

 

The Dog class and the Cat class inherit from the Animal class. The Animal class includes a breathe() method and a speak() method. If the speak() method is called from an object of type Dog, the result is a bark. If the speak() method is called from an object of type Cat, the result is a meow.

 

Which term is used to describe this object-oriented concept?

 

A.

multiple inheritance

B.

polymorphism

C.

data hiding

D.

encapsulation

 

Answer: A

Explanation: Polymorphism is often referred to as the third pillar of object-oriented programming, after encapsulation and inheritance. Polymorphism is a Greek word that means “many-shaped” and it has two distinct aspects:

* At run time, objects of a derived class may be treated as objects of a base class in places such as method parameters and collections or arrays. When this occurs, the object’s declared type is no longer identical to its run-time type.

 

* Base classes may define and implement virtual methods, and derived classes can override them, which means they provide their own definition and implementation. At run- time, when client code calls the method, the CLR looks up the run-time type of the object, and invokes that override of the virtual method. Thus in your source code you can call a method on a base class, and cause a derived class’s version of the method to be executed.

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…