Download New Updated (June) Microsoft 98-361 Practice Test 201-210

Ensurepass

QUESTION 201  (Topic 2)

 

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

 

What should you do?

 

A.

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

B.

Create global variables in the class.

C.

Assign a value directly to the data member.

D.

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

 

Answer: A

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 202

HOTSPOT  (Topic 2)

 

You have a base class named Tree with a friend property named color and a protected property named NumberOfLeaves. In the same project, you also have a class named Person.

 

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

 

clip_image002

 

A.

 

B.

 

C.

 

D.

 

 

Answer:

 

 

QUESTION 203  (Topic 2)

 

All objects in .NET inherit from which item?

 

A.

a reference type

B.

the System.Type class

C.

a value type

D.

the System.Object class

 

Answer: D

Explanation: The System.Object class supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.

 

 

QUESTION 204  (Topic 2)

 

What does the Console.Error property do within a console-based application?

 

A.

sets the standard error output stream

B.

gets the stand
ard error input stream

C.

sets the standard error input stream

D.

gets the standard error output stream

 

Answer: D

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

 

 

QUESTION 205  (Topic 2)

 

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

 

clip_image004

 

A.

The line break tag is incorrectly formatted.

B.

The HTML tags do not read XHTML.

C.

The body tag is missing a background attribute,

D.

All tags are not in uppercase.

 

Answer: A

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

 

 

QUESTION 206  (Topic 2)

 

Which language was designed for the primary purpose of querying data, modifying data, and managing databases in a Relational Database Management System?

 

A.

C + +

B.

Java

C.

SQL

D.

Visual Basic

 

Answer: C

Explanation: SQL is a special-purpose programming language designed for managing

 

 

 

data held in a relational database management system (RDBMS).

 

 

QUESTION 207  (Topic 2)

 

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

 

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.

 

 

QUESTION 208

HOTSPOT  (Topic 2)

 

You are developing a web application.

 

You need to create the following graphic by using Cascading Style Sheets (CSS):

 

clip_image006

 

 

Use the drop-down menus to select the answer choice that completes each statement.

Each correct selection is worth one point.

 

clip_image008

 

clip_image010

 

A.

 

B.

 

C.

 

D.

 

 

Answer:

 

 

QUESTION 209  (Topic 2)

 

Which programming language is characterized as client-side, dynamic and weakly typed?

 

A.

ASP.NET

B.

C#

C.

JavaScript

D.

HTML

 

Answer: C

Explanation: JavaScript is characterized as a dynamic, weakly typed, prototype-based language with first-class functions. It is primarily used in the form of client-side JavaScript for the development of dynamic websites.

 

 

QUESTION 210

HOTSPOT  (Topic 2)

 

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

 

clip_image012

 

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…