microsoft 98-361 practice test

Software Development Fundamentals


Question 1 Topic 2, VB

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

Answer:

Explanation:
A value type holds a data value within its own memory space while a reference type holds a pointer to the memory location
that holds the data.
Bool and char are value types; String is a reference type.

Discussions

Question 2 Topic 2, VB

This question requires that you evaluate the underlined text to determine if it is correct.
The application type should be ClickOnce for an application that presents users with a graphical interface in which they can
enter data, and must run on computers that do not have network connectivity.
Instructions: Review the underlined text. If it makes the statement correct, select No change is needed. If the statement is
incorrect, select the answer choice that makes the statement correct.

  • A. Windows Service
  • B. Windows Presentation Foundation
  • C. console-based
  • D. No change is needed
Answer:

D

Discussions

Question 3 Topic 2, VB

You run the following code.

What will the value of the variable iResult be?

  • A. 1
  • B. 2
  • C. 3
  • D. 4
Answer:

C

Discussions

Question 4 Topic 2, VB

You have a table named ITEMS with the following fields:
ID (integer, primary key. auto generated)

Description (text)

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)
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.

Discussions

Question 5 Topic 2, VB

You create an object of type ANumber. The class is defined as follows.

The code is executed as follows.

What is the value of number after the code is executed?

  • A. Null
  • B. 0
  • C. 3
  • D. 7
Answer:

D

Discussions

Question 6 Topic 2, VB

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

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

Answer:

Discussions

Question 7 Topic 2, VB

You run the following code:

What is the value of result when the code has completed?

  • A. 0
  • B. 10
  • C. 20
  • D. 30
Answer:

B

Explanation:
The conditional-OR operator (||) performs a logical-OR of its bool operands. If the first operand evaluates to true, the second
operand isn't evaluated. If the first operand evaluates to false, the second operator determines whether the OR expression
as a whole evaluates to true or false.

Discussions

Question 8 Topic 2, VB

You have a class named Glass that inherits from a base class named Window. The Window class includes a protected
method named break().
How should you call the Glass class implementation of the break() method?

  • A. Glass.break()
  • B. Window.break()
  • C. Me.break()
  • D. MyBase.break()
Answer:

B

Discussions

Question 9 Topic 2, VB

DRAG DROP
You are extending an application that stores and displays the results of various types of foot races. The application contains
the following definitions:

The following code is used to display the result for a race:

The contents of the console must be as follows:
99 seconds

1.65 minutes


You need to implement the FootRace class.
Match the method declaration to the method body. (To answer, drag the appropriate declaration from the column on the left
to its body on the right. Each declaration may be used once, more than once, or not at all. Each correct match is worth one
point.)
Select and Place:

Answer:

Discussions

Question 10 Topic 2, VB

You are developing an application that tracks tennis matches. A match is represented by the following class:

A match is created by using the following code:

How many times is the Location property on the newly created Match class assigned?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
Answer:

C

Discussions
To page 2