98-361 : Software Development Fundamentals : Part 06
-
When a web service is referenced from a client application in Microsoft Visual Studio, which two items are created? (Choose two.)
- a stub
- a.wsdl file
- a proxy
- a .disco file
Explanation:A .wsdl file that references the Web service is created, together with supporting files, such as discovery (.disco and .discomap) files, that include information about where the Web service is located.
-
All objects in .NET inherit from which item?
- the System.Object class
- a value type
- a reference type
- the System.Type class
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.
-
You have a class with a property.
You need to ensure that consumers of the class can write to the value of the property.
Which keyword should you use?
- value
- add
- get
- set
Explanation:Set:
The set { } implementation receives the implicit argument “value.” This is the value to which the property is assigned.* Property. On a class, a property gets and sets values. A simplified syntax form, properties are implemented in the IL as methods (get, set).
-
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.
-
You are creating an application that presents the user with a Windows Form.
Which event is triggered each time the Windows Form receives focus?
- Enter
- Paint
- Load
- Activated
Explanation:When you change the focus by using the mouse or by calling the Focus method, focus events of the Control class occur in the following order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated -
What are the three basic states that a Windows service can be in? (Choose three.)
- halted
- running
- stopped
- paused
- starting
Explanation:A service can exist in one of three basic states: Running, Paused, or Stopped.
-
You have a Windows Service running in the context of an account that acts as a non-privileged user on the local computer. The account presents anonymous credentials to any remote server.
What is the security context of the Windows Service?
- LocalSystem
- User
- NetworkService
- LocalService
Explanation:LocalService , which runs in the context of an account that acts as a non-privileged user on the local computer, and presents anonymous credentials to any remote server;
-
This question requires that you evaluate the underlined text to determine if it is correct.
Arguments are passed to console applications as a Hashtable object.
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.
- No change is needed
- String Array
- StoredProcedureCollection
- Dictionary
Explanation:Arguments are passed to console applications as a String Array object.
-
You run the following code:
What is the value of result when the code has completed?
- 0
- 10
- 20
- 30
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.
-
This question requires that you evaluate the underlined text to determine if it is correct.
To minimize the amount of storage used on the hard drive by an application that generates many small files, you should make the partition as small as possible.
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.
- No change is needed
- file allocation table
- block size
- folder and file names
-
You are designing a Windows Store application.
You need to design the application so that users can share content by connecting two or more devices by physically tapping the devices together.
Which user experience (UX) guideline for Windows Store applications should you use?
- Share and data exchange
- location-awareness
- device-awareness
- proximity gestures
-
HOTSPOT
You open the Internet Information Services 7.5 Manager console as shown in the following exhibit:You need to examine the current configuration of the server W2008R2.
Use the drop-down menus to select the answer choice that answers each question. Each correct selection is worth one point.
-
HOTSPOT
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
-
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?
- in both the client-side code and the server-side code
- in the client-side code only
- in the Web.config file
- in the server-side code only
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.
-
Which service can host an ASP.NET application?
- Internet Information Services
- Cluster Services
- Remote Desktop Services
- Web Services
Explanation:Using Internet Information Services (IIS) Manager, you can create a local Web site for hosting an ASP.NET Web application.
-
This question requires that you evaluate the underlined text to determine if it is correct.
A table whose attributes depend only on the primary key must be at least second normal form.
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.
- No change is needed
- first
- third
- fourth
Explanation:2nd Normal Form Definition
A database is in second normal form if it satisfies the following conditions:
It is in first normal form
All non-key attributes are fully functional dependent on the primary key -
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?
- INSERT INTO ITEMS (ID, Description, Completed) VALUES (1, ‘Cheese’, 0)
- INSERT INTO ITEMS (Description, Completed) VALUES (‘Cheese’, 1)
- INSERT INTO ITEMS (10, Description, Completed) VALUES (NEWID(), ‘Cheese’, 6)
- INSERT INTO ITEMS (Description, Completed) VALUES (‘Cheese’, 0)
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 A, not C: ID is autogenerated and should not be specified. -
Which three are valid SQL keywords? (Choose three.)
- GET
- WHAT
- FROM
- SELECT
- WHERE
Explanation:Example:
SELECT * FROM Customers
WHERE Country=’Mexico’; -
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.
- No change is needed
- merge
- library
- insertion
-
Which two types of information should you include in an effective test case? (Choose two.)
- the expected result from testing the case
- multiple actions combined as a single step to test the case
- any pre-conditions necessary to test the case
- the stakeholders who originated the test case
Explanation:You can create manual test cases using Microsoft Test Manager that have both action and validation test steps. You can also share a set of common test steps between multiple test cases called shared steps. This simplifies maintenance of test steps if your application under test changes.