Software Development Fundamentals

 

QUESTION 21

You have a class named Truck that inherits from a base class named Vehicle. The Vehicle class includes a protected method named brake ().

 

How should you call the Truck class implementation of the brake () method?

 

A.

Vehicle. brake ();

B.

This. brake ();

C.

MyBase. brake();

D.

Truck. brake ();

 

Correct Answer: C

Explanation:

The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class.MyBase is commonly used to access base class members that are overridden or shadowed in a derived class.

 

 

QUESTION 22

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

 

clip_image002

 

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.< /p>

SELECT * FROM Students

E.

WHERE Students SELECT firstName, lastName, telephoneNumber

 

Correct Answer: B

Explanation:

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

 

 

QUESTION 23

Which of the following must exist to inherit attributes from a particular class?

 

A.

Public properties

B.

A has-a relationship

C.

An is-a relationship

D.

Static members

 

Correct Answer: A

Explanation:

There must be some public properties that can be inherited.

 

 

QUESTION 24

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

 

Correct 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 25

HOTSPOT

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

 

clip_image004

 

Correct Answer:

clip_image006

 

 

QUESTION 26

The following functions are defined:

 

clip_image008

 

What does the console display after the following line?

 

Printer(2);

 

A.

210

B.

211

C.

2101

D.

2121

 

Correct Answer: B

 

 

QUESTION 27

Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as:

 

A.

Analyzing requirements

B.

Prototyping

C.

Software testing

D.

Flowcharting

 

Correct Answer: C

 

 

QUESTION 28

HOTSPOT

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

 

clip_image010

 

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

 

clip_image012

 

Correct Answer:

clip_image014

 

 

QUESTION 29

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

 

Correct Answer: A

 

 

QUESTION 30

You have a SQL Server database named MyDB that uses SQL Server Authentication. Which connection string should you use to connect to MyDB?

 

A.

Data Source=MyDB; UserID=username; Password=P@sswOrd; Initial Catalog=Sales

B.

Data Source=MyDB; Integrated Security=SSPI; Initial Catalog=Sales

C.

Data Source=MyDB; Integrated Security=True; Initial Catalog=Sales

D.

Data Source=MyDB; Trusted_Connection=True; MultipleActiveResultSets=True; Initial Catalog=Sales

 

Correct Answer: A

Explanation:

Integrated Security

Integrated Security is by default set to false.

When false, User ID and Password are specified in the connection.

 

Incorrect:

not C: Windows Authentication (Integrated Security = true) remains the most secure way to log in to a SQL Server database.

 

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…