What should you do?
Your organization has a department named product testing. You are creating a new membership named ProductTesting. You are adding a distribution list to the new membership. You need to ensure that the membership is displayed only to managers.
What should you do?
Which XML fragment should you use?
You create a Microsoft Windows SharePoint Services site. You add a recurring event to an Events list by using the RecurrenceData property of the SPListItem class.
You need to ensure that the event occurs once every Monday for five consecutive weeks.
Which XML fragment should you use?
What should you do?
You create Microsoft Windows-based applications. You are designing an application that streams multimedia data. The application must have minimal impact on the network. The application will be used by Microsoft Windows XP Professional client computers and Microsoft Windows Server 2003 client computers. The media you need to use is stored on a file server in a nonproprietary raw video format and the files are unedited. You need to choose an appropriate design modification that requires the least amount of programming effort. What should you do?
What should you do?
You create a custom template and several custom stencils. You need the stencils to open automatically when a new file is created from the template. What should you do?
Which lines are covered by the test?
You create Web-based client applications. You create a Web site that will be used to simulate different types of loans. You are writing a method to calculate the payment on a simple loan. You write the following lines of code for the method. (Comments are included for reference only.)
public static decimal Payment(decimal loanAmount, int period, decimal rate) { if (!(loanAmount > 0)||!(period > 1)||!(rate > 0)) { // Line A throw new Exception(“Invalid input!”); // Line B
} else {
return 0M; // Line C: return a calculated payment
}
}
public static decimal CheckBalance(ulong accountID) {
return 0M; // Line D: return calculated balance
}
You write the following code for the unit test.
[TestMethod()]
public void PaymentTest() {
decimal payment = Loan.Payment(100000,360,10); // Line E
Assert.AreEqual(payment, 877.57M); // Line F
}
You enable coverage testing for this unit test. You need to identify the coverage of your test. Which lines are covered by the test?
Which code segment should you insert at line 06?
You are creating a Virtual Earth 6.0 application. The application allows users to enter an address and view the corresponding mapped location. A Print Preview link appears next to the location. The link opens a pop-up window that contains the location information in a query string.
The map load in the pop-up window is defined by the following code segment. (Line numbers are included for reference only.)
01 var loc = … ;
02 var map = null;
03 function GetMap(){
04 map = new VEMap(‘PrintPreviewMap’);
05 map.LoadMap();
06 …
07 }
The variable named loc in the code segment is an object that contains the id, address, latitude, longitude, and zoom properties that are present in the query string.
You need to ensure that the pop-up window meets the following requirements:
It uses the properties in the query string to display the location.
It does not display map controls.
Which code segment should you insert at line 06?
What should you do?
Your company stores product information in a SQL Server 2005 database. You create a BDC definition to search for product information within the database. You need to ensure that incremental crawls can be performed in the database for indexing.
What should you do?
Which code segment should you use?
You create a Microsoft Windows SharePoint Services site.
You need to update the first item in a SharePoint list named MyList without triggering any alerts.
Which code segment should you use?
Which action should you perform?
You create Microsoft Windows-based applications. You participate in the planning phase of an incident tracking tool for technical support analysts.
The incident tracking tool must meet the following requirements:
Technical support analysts must open multiple incidents simultaneously.
The application can run only one instance at a time.
Users must be able to adjust the order and layout of the incident screens.
You need to design an application user interface that meets these requirements with the minimum amount of code. Which action should you perform?
Which code should you add to the application?
You have a Windows Forms application that contains an embedded Visio Drawing Control. You have an Office Visio 2007 drawing saved as C:\Template.vsd. You need to configure the application to load and display the drawing as a template by using the Visio Drawing Control. Which code should you add to the application?