Wednesday, August 12, 2009

70-548(CSharp) braindumps, 70-548 exam, 70-548 test questions rapidshare 4share, 70-548 torrent free download

Exam Code: 70-548(CSharp)
Exam Name: PRO:Design & Develop Wdws-Based Appl by Using MS.NET Frmwk

Like actual certification exams our 70-548(CSharp) Exam is in multiple-choice questions (MCQs). After purchasing our products you are just a step away from testing for certification. Still not convinced? Try our free samples or choose to buy your 70-548(CSharp) Practice Exam now!

Cheat-Test.com 70-548(CSharp) practice exams and study questions are composed by current and active Information Technology experts, who use their experience in preparing you for your future in IT.

Microsoft 70-548(CSharp) Exam - Cheat-Test.com

Free 70-548(CSharp) Sample Questions:

Q: 1 You create Microsoft Windows-based client applications. You are designing a smart client application for warehouse packaging clerks. The application must permit the clerks to add and delete items in the packaging invoices they create at their workstations. Each workstation has only a keyboard and a hand-held barcode scanner for input. You need to design the user interface for the application such that the clerks can add and delete items with minimum effort. What should you do?
A. Add to the form a context menu that has Add to Invoice and Remove from Invoice menu items.
B. Add to the form a menu that has Add to Invoice and Remove from Invoice menu items.
C. Add to the form a KeyPress event handler that toggles between Add to Invoice and Remove from Invoice modes.
D. Add to the form a ToolStrip control that has a button that toggles between Add to Invoice and Remove from Invoice modes.
Answer: C

Q: 2 You create Microsoft Windows-based applications. You are enhancing an application for a medical transcription service. Users need to view a long list of medical codes and descriptions. The users displays are set at 800 x 600 resolution. The existing application requires the user to regularly obtain printouts that contain pages of medical codes. These medical codes frequently change.
The application must be updated to assist users in entering medical codes into a database. The
application must enable the user to view and enter medical codes and descriptions on screen at the same time. You need to evaluate the user environment and recommend a design that best meets the requirements of the users. What should you recommend?
A. Design a form that contains a ListBoxControl control. Load the medical codes into the ListBoxControl control. Place the ListBoxControl control next to the input controls that accept the medical input.
B. Design a form that accepts the medical input. Create a context menu for this form to display all the medical codes when the user right-clicks.
C. Design a form that has a left and a right panel by using a Split Container control. Display the list of medical codes and descriptions on the left panel and all input controls on the right panel.
D. Design a form that contains a Table Layout control to display the medical codes in a two column table. Next to the Table Layout control display the medical data input controls.
Answer: C

Q: 3 You create Microsoft Windows-based applications. You are developing an application that will be used by stock traders. The project scope contains the following requirements:
The application must permit users to set thresholds for minimum and maximum values for different stocks.
The application must alert the user when stock prices reach the pre-defined thresholds.
The application must permit the user to either buy or sell stock and specify the quantity of stock to trade.
The application must permit multiple alerts to be displayed simultaneously.
You need to decide how to implement the alert mechanism. What should you do?
A. Use a modal dialog box to show each alert and to permit the user to trade stocks.
B. Use a message box to show each alert and the main application form to permit the user to trade stocks.
C. Use a BalloonTip control to display multiple alerts and the main application form to permit the user to trade stocks.
D. Use a custom BalloonTip control to display multiple alerts and to permit the user to trade stocks.
Answer: D

Q: 4 You create Microsoft Windows-based applications. You create an application that loads bulk weather data into a data warehouse for analysis. The application is used by data-entry technicians. One data-entry technician is visually impaired. The data-entry technicians provide a large flat file as the source of the data, and they typically minimize the application so that they can use other programs while the data is being loaded. The data entry technicians must load as many data files as possible during the course of their work day. The user interface contains a progress bar control that has a text label. The text label indicates the current percentage of progress. You need to provide appropriate status feedback to the user by indicating that the process is complete. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Write code to change the title bar text of the application when the process is complete.
B. Write code to reset the progress bar to its minimum value.
C. Write code to play a sound that indicates the process is complete.
D. Write code to update the status bar text to indicate the number of records processed.
E. Write code to display an animated balloon tip when the process completes.
Answer: C, E

Q: 5 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?
A. Create a Multiple Document Interface (MDI) application with a menu strip. Utilize the MdiWindowListItem property of the menu strip to automatically merge MDI child forms to the Window list.
B. Create a Single Document Interface application that launches multiple forms. Write code to enable the user to toggle between the active forms.
C. Create a Multiple Document Interface application with a menu strip. Write code to add child Windows to the menu strip to add MDI child forms to the Window list.
D. Create a Single Document Interface application. Create a custom-dockable control that can display each support incident.
Answer: A

Q: 6 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?
A. Write code to convert the video files to Microsoft Windows Media Video (WMV) format in real time.
B. Convert the video files to Microsoft Windows Media Video (WMV) format, and resample the video to a bit rate that is acceptable.
C. Write a custom file format filter for Microsoft DirectShow, and distribute the filter to the client computers.
D. Convert the video files into separate audio and video files.
Answer: B

Q: 7 You create Microsoft Windows-based applications. You are designing a user interface for a multi-page questionnaire.
You need to ensure that the user interface meets the following business requirements:
The user interface is reusable.
The user interface requires the user to select three out of five choices for each question.
The user interface permits the user to check a box to select the correct answer or answers.
What should you do?
A. Create a custom Windows user control that inherits from a CheckedListBox control.
B. Use a multi-select ListBox control that displays the possible answers.
C. Use a TextBox control for the user to enter answers separated by commas.
D. Use a CheckedListBox control to display the possible answers.
Answer: A

Q: 8 You create Microsoft Windows-based applications. You design a composite user control that is used to enter e-mail addresses.
The control is as shown in the following exhibit. (Click the Exhibit button.)

The control validates the user input by using a regular expression. The control validates e-mail addresses and prevents the user from submitting blocked e-mail addresses. The control must permit the user to correct the entry if the user enters a blocked e-mail address. You need to provide feedback if the user enters a blocked e-mail address in the txtEmailAddress text box. What should you do?
A. Write a code segment to throw an application exception.
B. Set a custom property of the composite user control to indicate a data validation error.
C. Write a code segment to display a message box if the user enters a blocked e-mail address.
D. Write a code segment to clear the txtEmailAddress text box if the user enters a blocked e-mail address.
Answer: C

Q: 9 You create Microsoft Windows-based applications. You are designing an application that permits insurance agents to provide insurance quotes to prospective customers. The application permits insurance agents to survey the customer and enter the customers responses into the application. Each customer response adjusts the computed level of risk for the customer depending on how the customer answers the question.
The application must meet the following requirements:
The application must continuously display a thermometer indicating the level of risk.
The prospective customers risk must be updated after each question.
The application must ensure that the user interacts with the thermometer component as little as possible.
You need to evaluate a user interface design for the thermometer component of the application. What should you do?
A. Design the thermometer component as a movable tool Window that is always displayed as the top most Window.
B. Design the thermometer component as a part of the main questionnaire form that is always visible.
C. Design the thermometer component to be displayed as a modal Window when the insurance agent clicks a button.
D. Design the thermometer component to display a non-modal Window that can be dismissed by the insurance agents when they are ready to ask the next question.
Answer: B

Q: 10 You create Microsoft Windows-based applications. You are designing a unit test for a form in an application. You write the following code segment. (Line numbers are included for reference only.)
01 public partial class frmCalculation : Form {
02 public frmCalculation() {
03 InitializeComponent();
04 }
05 private void cmdFib_Click(object sender, EventArgs e) {
06 lblResult.Text = Fibonacci(int.Parse(txtNumber.Text)).ToString();
07 }
08 private void cmdFac_Click(object sender, EventArgs e) {
09 lblResult.Text = Factorial(int.Parse(txtNumber.Text)).ToString();
10 }
11 private int Fibonacci(int number) {
12 if (number < 3)
13 return 1;
14 else
15 return Fibonacci(number - 1) + Fibonacci(number - 2);
16 }
17 private int Factorial(int number) {
18 int total = 1;
19 for (int x = number; x > 1; x--)
20 total *= x;
21 return total;
22 }
23 }
You need to identify the methods that must be included for unit testing. Which methods should you choose?
A. frmCalculation, cmdFib_Click, cmdFac_Click, Fibonacci, and Factorial
B. frmCalculation, cmd_Fib_Click, and cmdFac_Click
C. cmdFib_Click, cmdFac_Click, Fibonacci, and Factorial
D. Fibonacci and Factorial
Answer: D

Q: 11 You create Microsoft Windows-based applications. You are reviewing code for an application that is created for a bank. You find that a Microsoft Windows Form includes the following code segment.
public partial class ATMDeposit : Form {
private BankAccount account;
public ATMDeposit() {
InitializeComponent();
}
private void ATMDeposit_Load(object sender, EventArgs e) {
account = new BankAccount();
}
private void cmdDeposit_Click(object sender, EventArgs e) {
account.Deposit(decimal.Parse(txtAmount.Text));
}
}
You analyze the code segment and find that the form handles no other events. You need to suggest changes to improve reliability. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add an event handler for the TextChanged event for the txtAmount textbox to validate the data typed by the user.
B. Add an event handler for the Validating event for the txtAmount textbox to validate the data typed by the user.
C. Add a Try...Catch block to the cmdDeposit_Click method.
D. Add a Try...Catch block to the ATMDeposit_Load method.
E. Add a Try...Catch block to the ATMDeposit constructor.
Answer: B, C

Q: 12 You create Microsoft Windows-based applications. You are designing the integration test for an application. You write the following lines of code. (Line numbers are included for reference only.)
01 private void cmdCompare_Click(object sender, EventArgs e) {
02 decimal flightFare, carRental, hotelPrice, travelCost;
03 flightFare = wsFlyHigh.GetBestFare(txtOrigin.Text, txtDest.Text, datDateOut, datDateBack);
04 cmdGetRentalPrice.Parameters.Add("@DAYS",SqlDbType.Int);
05 cmdGetRentalPrice.Parameters[0].Value=int.Parse(txtDays.Text);
06 carRental = cmdGetRentalPrice.ExecuteScalar();
07 hotelPrice = bigDeal.GetHotelPrice(int.Parse(txtDays.Text));
08 travelCost = flightFare + carRental + hotelPrice;
09 txtTravelCost.Text = travelCost.ToString("C");
10 }
You analyze the code and discover the following features:
wsFlyHigh is a Web service that is hosted on a partners extranet.
cmdGetRentalPrice runs a stored procedure on a corporate database server.
bigDeal is a COM component.
You need to create a report that lists the parts of the code to be considered during integration testing.
Which lines of code should you add to your report?
A. 03, 04, 05, 06, and 07
B. 03, 06, and 07
C. 03 and 07
D. 07
Answer: B

Q: 13 You create Microsoft Windows-based applications. You are designing a unit test class to test the functionality of a component named Calculator. The Calculator must function as a standard nonscientific calculator. A developer on your team writes the following lines of code for the test class. (Line numbers are included for reference only.)
01 [TestClass()]
02 public class CalculatorTest {
03 private TestContext testContextInstance;
04 public TestContext TestContext {
05 get{return testContextInstance;}
06 set{testContextInstance = value;}
07 }
08 [TestMethod()]
09 public void AddTest() {
10 Calculator target = new Calculator();
11 Assert.AreEqual(target.Add(1,1),2);
12 target.Dispose();
13 }
14 [TestMethod()]
15 public void SubtractTest() {
16 Calculator target = new Calculator();
17 Assert.AreEqual(target.Subtract(10,2),8);
18 target.Dispose();
19 }
20 }
You need to ensure that appropriate assertions are tested. Which additional assertion should you test?
A. AreSame
B. IsInstanceOfType
C. IsNotNull
D. Inconclusive
Answer: C

Q: 14 You create Microsoft Windows-based applications. You create an application that requires the user to be authenticated by a domain controller. The application consumes Web services. During acceptance testing, you detect that for some users a security exception is thrown while calling a method. The users should have access to the method. The method contains the following lines of code.
[PrincipalPermission(SecurityAction.Demand,Role=Manager)]
public void ApproveOrder(int ordered) {
...
}
You need to resolve this bug. What should you do?
A. Ask an administrator to enable Windows Integrated authentication in IIS.
B. Modify the code access security machine policies for the computer running the code such that the code is permitted to execute.
C. Change the SecurityAction from Demand to Deny.
D. Ask an administrator to add the users to the YourDomain\Manager group.
Answer: D

Q: 15 You create Microsoft Windows-based applications. You are developing a component that will be used by multiple Windows-based applications in a bank.
Your specification states the following requirements for the BankAccount class:
Store the balance value.
Implement a public property to contain the value of balance.
Implement a Deposit method that receives the amount to be deposited. This method does not return anything.
Implement a Withdraw method that receives the amount to be withdrawn. This method does not return anything.
The withdraw and deposit methods must throw exceptions in the following cases:
o Negative values are used as amounts for withdrawal or deposit.
o Amounts larger than the current balance are used for withdrawal.
You need to create a unit test for the component. What should you do?
A. The test must attempt to deposit a positive amount. The test must attempt to withdraw a positive amount.
The test must attempt to get the value of balance using the property.
B. The test must attempt to deposit a negative amount. The test must attempt to withdraw a negative amount.
The test must attempt to get the value of balance using the property. The test must attempt to withdraw an amount larger than the current balance.
C. The test must attempt to deposit both negative and positive amounts. The test must attempt to withdraw both negative and positive amounts.
D. The test must attempt to deposit both negative and positive amounts. The test must attempt to withdraw both negative and positive amounts. The test must attempt to get the value of balance using the property. The test must attempt to withdraw an amount larger than the current balance.
Answer: D

70-536 exam questions rapidshare, 070-536 microsoft torrent, 70-536 dumps download

Cheat-Test.com 70-536 Exam will provide you with exam questions and verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. Our 70-536 Exam is not just questions and answers. They are your access to high technical expertise and accelerated learning capacity. Certification Experts, Certified Computer Trainers, Technical Coworker and Comprehensive Language Masters, who have a solid, verified and certified background and high technical expertise, have compiled these detailed questions and answers. MCSE Certification preparation Q and A provided by Cheat-test.com will make you feel like you are taking an actual exam at a Prometric or VUE center.

Microsoft 70-536 Exam - Cheat-Test.com

Free 70-536 Sample Questions:

1. You are writing a custom dictionary. The custom­dictionary class is named MyDictionary. You need to ensure that the dictionary is type safe. Which code segment should you use?
A. class MyDictionary : Dictionary
B. class MyDictionary : HashTable
C. class MyDictionary : IDictionary
D. class MyDictionary { ... } Dictionary t = new Dictionary(); MyDictionary dictionary = (MyDictionary)t;
Answer: A

2. You are creating a class named Age. You need to ensure that the Age class is written such that collections of Age objects can be sorted. Which code segment should you use?
A. public class Age { public int Value;
public object CompareTo(object obj)
{ if (obj is Age)
{ Age _age = (Age) obj;
return Value.CompareTo(obj); }
throw new ArgumentException("object not an Age"); } }
B. public class Age {
public int Value;
public object CompareTo(int iValue) {
try {
return Value.CompareTo(iValue); }
catch {
throw new ArgumentException ("object not an Age"); } } }
C. public class Age : IComparable {
public int Value;
public int CompareTo(object obj)
{ if (obj is Age) {
Age _age = (Age) obj;
return Value.CompareTo(_age.Value); }
throw new ArgumentException("object not an Age"); } }
D. public class Age : IComparable {
public int Value;
public int CompareTo(object obj) {
try {
return Value.CompareTo(((Age) obj).Value); }
catch {
return ­1; } } }
Answer: C

3.You are creating a class to compare a specially­formatted string. The default collation comparisons do not apply. You need to implement the IComparable interface. Which code segment should you use?
A. public class Person : IComparable{ public int CompareTo(string other){ ... }}

B. public class Person : IComparable{ public int CompareTo(object other){ ... }}

C. public class Person : IComparable{ public bool CompareTo(string other){ ... }}

D. public class Person : IComparable{ public bool CompareTo(object other){ ... }}
Answer: A

4.You are developing a custom­collection class. You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?
A. The method must return a type of either IEnumerator or IEnumerable.
B. The method must return a type of IComparable.
C. The method must explicitly contain a collection.
D. The method must be the only iterator in the class.
Answer: A

5.You are developing an application to assist the user in conducting electronic surveys. The survey consists of 25 true­or­false questions. You need to perform the following tasks: Initialize each answer to true.Minimize the amount of memory used by each survey. Which storage option should you choose?
A. BitVector32 answers = new BitVector32(1);
B. BitVector32 answers = new BitVector32(­1);
C. BitArray answers = new BitArray (1);
D. BitArray answers = new BitArray(­1);
Answer: B

6.You need to identify a type that meets the following criteria.
Is always a number.
Is not greater than 65,535.
Which type should you choose?
A. System.UInt16
B. int
C. System.String
D. System.IntPtr
Answer: A

7.You are developing a custom event handler to automatically print all open documents. The event handler helps specify the number of copies to be printed. You need to develop a custom event arguments class to pass as a parameter to the event handler. Which code segment should you use?
A. public class PrintingArgs {
private int copies;
public PrintingArgs(int numberOfCopies) { this.copies = numberOfCopies; } public int Copies {
get { return this.copies; } }}
B. public class PrintingArgs : EventArgs {
private int copies;
public PrintingArgs(int numberOfCopies) { this.copies = numberOfCopies; } public int Copies {
get { return this.copies; } }} C. public class PrintingArgs { private EventArgs eventArgs;
public PrintingArgs(EventArgs ea) {
this.eventArgs = ea; }
public EventArgs Args {get { return eventArgs; }}}
D. public class PrintingArgs : EventArgs { private int copies;}
Answer: B

8.You write a class named Employee that includes the following code segment. public class Employee {string employeeId, employeeName, jobTitleName;
public string GetName() { return employeeName; }
public string GetTitle() { return jobTitleName; }
You need to expose this class to COM in a type library. The COM interface must also facilitate forward­compatibility across new versions of the Employee class. You need to choose a method for generating the COM interface. What should you do?
A. Add the following attribute to the class definition.
[ClassInterface(ClassInterfaceType.None)]public class Employee {}
B. Add the following attribute to the class definition.
[ClassInterface(ClassInterfaceType.AutoDual)]public class Employee {} C. Add the following attribute to the class definition.
[ComVisible(true)]public class Employee {}
D. Define an interface for the class and add the following attribute to the class definition.
[ClassInterface(ClassInterfaceType.None)]public class Employee : IEmployee {}
Answer: D

9.You need to call an unmanaged function from your managed code by using platform invoke services. What should you do?
A. Create a class to hold DLL functions and then create prototype methods by using managed code.
B. Register your assembly by using COM and then reference your managed code from COM.
C. Export a type library for your managed code.
D. Import a type library as an assembly and then create instances of COM object.
Answer: A

10.You write the following code to call a function from the Win32 Application Programming Interface (API) by using platform invoke.

You need to define a method prototype. Which code segment should you use?
A. [DllImport("user32")]public static extern int MessageBox(int hWnd, String text, String caption, uint type);
B. [DllImport("user32")] public static extern int MessageBoxA(int hWnd,String text, String caption, uint type);
C. [DllImport("user32")] public static extern int Win32API_User32_MessageBox(int hWnd, String text, String caption, uint type);
D. [DllImport(@"C. \WINDOWS\system32\user32.dll")]
public static extern int MessageBox(int hWnd, String text, String caption, uint type);
Answer: A

11. You create an application to send a message by e­mail. An SMTP server is available on the local subnet. The SMTP server is named smtp.contoso.com. To test the application, you use a source address, me@contoso.com, and a target address, you@contoso.com. You need to transmit the e­mail message. Which code segment should you use?
A. MailAddress addrFrom = new MailAddress("me@contoso.com", "Me");
MailAddress addrTo = new MailAddress("you@contoso.com", "You");
MailMessage message = new MailMessage(addrFrom, addrTo);
message.Subject = "Greetings!";message.Body = "Test";message.Dispose();
B. string strSmtpClient = "smtp.contoso.com";
string strFrom = "me@contoso.com"; string strTo = "you@contoso.com"; string strSubject = "Greetings!";
string strBody = "Test";
MailMessage msg = new MailMessage(strFrom, strTo, strSubject, strSmtpClient);
C. MailAddress addrFrom = new MailAddress("me@contoso.com");
MailAddress addrTo = new MailAddress("you@contoso.com"); MailMessage message = new MailMessage(addrFrom, addrTo); message.Subject = "Greetings!";
message.Body = "Test";
SmtpClient client = new SmtpClient("smtp.contoso.com");
client.Send(message);
D. MailAddress addrFrom = new MailAddress("me@contoso.com", "Me"); MailAddress addrTo = new MailAddress("you@contoso.com", "You"); MailMessage message = new MailMessage(addrFrom, addrTo); message.Subject = "Greetings!";
message.Body = "Test";
SocketInformation info = new SocketInformation(); Socket client = new Socket(info);
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); byte[] msgBytes = enc.GetBytes(message.ToString()); client.Send(msgBytes);
Answer: C

12. You need to create a dynamic assembly named MyAssembly. You also need to save the assembly to disk. Which code segment should you use?
A. AssemblyName myAssemblyName = new AssemblyName();
myAssemblyName.Name = "MyAssembly";
AssemblyBuilder myAssemblyBuilder =AppDomain.CurrentDomain.DefineDynamicAssembly (myAssemblyName, AssemblyBuilderAccess.Run); myAssemblyBuilder.Save("MyAssembly.dll");
B. AssemblyName myAssemblyName = new AssemblyName();myAssemblyName.Name = "MyAssembly";
AssemblyBuilder myAssemblyBuilder =AppDomain.CurrentDomain.DefineDynamicAssembly (myAssemblyName, AssemblyBuilderAccess.Save); myAssemblyBuilder.Save("MyAssembly.dll");
C. AssemblyName myAssemblyName =new AssemblyName();
AssemblyBuilder myAssemblyBuilder = AppDomain.CurrentDomain.DefineDynamicAssembly (myAssemblyName, AssemblyBuilderAccess.RunAndSave); myAssemblyBuilder.Save("MyAssembly.dll");
D. AssemblyName myAssemblyName =new AssemblyName("MyAssembly");
AssemblyBuilder myAssemblyBuilder =AppDomain.CurrentDomain.DefineDynamicAssembly
(myAssemblyName, AssemblyBuilderAccess.Save); myAssemblyBuilder.Save("C. \\MyAssembly.dll");
Answer: B

13. You need to write a code segment that performs the following tasks: ? Retrieves the name of each paused service. ?
Passes the name to the Add method of Collection1. Which code segment should you use?
A. ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select * from Win32_Service where State = 'Paused'");
foreach (ManagementObject svc in searcher.Get()) {Collection1.Add(svc["DisplayName"]); }
B. ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select * from Win32_Service",
"State = 'Paused'");
foreach (ManagementObject svc in searcher.Get()) { Collection1.Add(svc["DisplayName"]);}
C. ManagementObjectSearcher searcher = new ManagementObjectSearcher( "Select * from Win32_Service");
foreach (ManagementObject svc in searcher.Get())
{if ((string) svc["State"] == "'Paused'") {Collection1.Add(svc["DisplayName"]); }}
D. ManagementObjectSearcher searcher =new ManagementObjectSearcher();
searcher.Scope = new ManagementScope("Win32_Service");
foreach (ManagementObject svc in searcher.Get())
{if ((string)svc["State"] == "Paused") {Collection1.Add(svc["DisplayName"]); }}
Answer: A

14. Your company uses an application named Application1 that was compiled by using the .NET Framework version 1.0. The application currently runs on a shared computer on which the .NET Framework versions 1.0 and 1.1 are installed. You need to move the application to a new computer on which the .NET Framework versions 1.1 and 2.0 are installed. The application is compatible with the .NET Framework 1.1, but it is incompatible with the .NET Framework 2.0. You need to ensure that the application will use the .NET Framework version 1.1 on the new computer. What should you do?
A. Add the following XML element to the application configuration file.





B. Add the following XML element to the application configuration file.




publicKeyToken="32ab4ba45e0a69a1" culture="neutral" />





C. Add the following XML element to the machine configuration file.





D. Add the following XML element to the machine configuration file.




publicKeyToken="32ab4ba45e0a69a1" culture="neutral" />





Answer: A

15. You are using the Microsoft Visual Studio 2005 IDE to examine the output of a method that returns a string. You assign the output of the method to a string variable named fName. You need to write a code segment that prints the following on a single line The message. "Test Failed. " The value of fName if the value of fName does not equal "John" You also need to ensure that the code segment simultaneously facilitates uninterrupted execution of the application. Which code segment should you use?
A. Debug.Assert(fName == "John", "Test FaileD. ", fName);
B. Debug.WriteLineIf(fName != "John", fName, "Test Failed");
C. if (fName != "John") {Debug.Print("Test FaileD. "); Debug.Print(fName); }
D. if (fName != "John") {Debug.WriteLine("Test FaileD. "); Debug.WriteLine(fName); }
Answer: B

16. You are creating an application that lists processes on remote computers. The application requires a method that performs the following tasks: Accept the remote computer name as a string parameter named strComputer.Return an ArrayList object that contains the names of all processes that are running
on that computer. You need to write a code segment that retrieves the name of each process that is running on the remote computer and adds the name to the ArrayList object. Which code segment should you use?
A. ArrayList al = new ArrayList();
Process[] procs = Process.GetProcessesByName(strComputer);
foreach (Process proc in procs) { al.Add(proc);}
B. ArrayList al = new ArrayList();
Process[] procs = Process.GetProcesses(strComputer);
foreach (Process proc in procs) { al.Add(proc);}
C. ArrayList al = new ArrayList();
Process[] procs = Process.GetProcessesByName(strComputer);
foreach (Process proc in procs) {al.Add(proc.ProcessName);}
D. ArrayList al = new ArrayList();
Process[] procs = Process.GetProcesses(strComputer);
foreach (Process proc in procs) {al.Add(proc.ProcessName);}
Answer: D

17. You are testing a newly developed method named PersistToDB. This method accepts a parameter of type EventLogEntry. This method does not return a value. You need to create a code segment that helps you to test the method. The code segment must read entries from the application log of local computers and then pass the entries on to the PersistToDB method. The code block must pass only events of type Error or Warning from the source MySource to the PersistToDB method. Which code segment should you use?
A. EventLog myLog = new EventLog("Application", ".");
foreach (EventLogEntry entry in myLog.Entries)
{if (entry.Source == "MySource") { PersistToDB(entry); } }
B. EventLog myLog = new EventLog("Application", "."); myLog.Source = "MySource";
foreach (EventLogEntry entry in myLog.Entries) {
if (entry.EntryType == (EventLogEntryType.Error & EventLogEntryType.Warning))
{ PersistToDB(entry); }}
C. EventLog myLog = new EventLog("Application", ".");
foreach (EventLogEntry entry in myLog.Entries)
{ if (entry.Source == "MySource")
{if (entry.EntryType == EventLogEntryType.Error || entry.EntryType == EventLogEntryType.Warning)
{PersistToDB(entry); } } }
D. EventLog myLog = new EventLog("Application", ".");
myLog.Source = "MySource";
foreach (EventLogEntry entry in myLog.Entries)
{if (entry.EntryType == EventLogEntryType.Error || entry.EntryType == EventLogEntryType.Warning)
{PersistToDB(entry); }
Answer: C

18. You are creating an application that retrieves values from a custom section of the application configuration file. The custom section uses XML as shown in the following block.

You need to write a code segment to define a class named Role. You need to ensure that the Role class is initialized with values that are retrieved from the custom section of the configuration file. Which code segment should you use?
A. public class Role : ConfigurationElement {
internal string _ElementName = "name";
[ConfigurationProperty("role")]
public string Name {
get {
return ((string)base["role"]); } } }
B. public class Role :
ConfigurationElement {
internal string _ElementName = "role";
[ConfigurationProperty("name", RequiredValue = true)]
public string Name {
get {
return ((string)base["name"]); } } }
C. public class Role :
ConfigurationElement {
internal string _ElementName = "role";
private string _name;
[ConfigurationProperty("name")]
public string Name {
get {
return _name; } } }
D. public class Role : ConfigurationElement {
internal string _ElementName = "name";
private string _name;
[ConfigurationProperty("role", RequiredValue = true)]
public string Name {
get {
return _name; } } }
Answer: B

19.You need to generate a report that lists language codes and region codes. Which code segment should you use?
A. foreach (CultureInfo culture in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
{ // Output the culture information...}
B. CultureInfo culture = new CultureInfo(""); CultureTypes types = culture.CultureTypes;
// Output the culture information...
C. foreach (CultureInfo culture in CultureInfo.GetCultures(CultureTypes.NeutralCultures))
{ // Output the culture information...}
D. foreach (CultureInfo culture in CultureInfo.GetCultures(CultureTypes.ReplacementCultures))
{ // Output the culture information...}
Answer: A

20.You create an application that stores information about your customers who reside in various regions. You are developing internal utilities for this application. You need to gather regional information about your customers in Canada. Which code segment should you use?
A. foreach (CultureInfo culture in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
{ // Output the region information...}
B. CultureInfo cultureInfo = new CultureInfo("CA"); // Output the region information...
C. RegionInfo regionInfo = new RegionInfo("CA"); // Output the region information...
D. RegionInfo regionInfo = new RegionInfo("");if (regionInfo.Name == "CA")
{ // Output the region information...}
Answer: C

70-547 dumps, 70-547 PDF exam questions, 70-547 vce rapidshare torrent, 70-547 testking pass4sure download

Exam Code: 70-547(CSharp)
Exam Name: PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk
Last Update: Aug, 2009

70-547(CSharp) Downloadable, Printable Exams (in PDF format):
We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our 70-547(CSharp) Preparation Exam Material provides you everything you will need to take a certification examination. Details are researched and produced by Certification Experts who are constantly using industry experience to produce precise, logical and verified explanations for the answers. You may get questions from different web sites or books, but logic is the key.

Microsoft 70-547(CSharp) Exam - Cheat-Test.com

Free 70-547(CSharp) Sample Questions:

Q: 1 You create Web-based client applications. You are creating a sales management application. The application will be used to produce sales orders. Sales data, including orders and product information, is stored in a central Microsoft SQL Server 2005 database. The application uses Microsoft Windows Integrated security to access data. You test the application component that is used to retrieve sales order information from the database. The tests are successful. You check the code back into the source control so that the other testers can utilize the code. The testers notify you that the application fails to connect to the database in the test environment. You test the application again and the tests are successful. You need to recreate the bug environment to investigate and resolve the bug. Which three aspects of the testing environment should you take into account? (Each correct answer presents part of the solution. Choose three.)
A. Web server processor speed
B. Database security settings
C. Network bandwidth
D. Web server available memory
E. Network credentials used for testing
F. Impersonation settings
Answer: B, E, F

Q: 2 You create Web-based client applications. You are creating a Web control that includes data entry fields. The Web control also includes data validation code. The data validation code verifies whether the user has entered a valid date and a valid postal code in a text box. You are writing the code within the Web control to handle the invalid data. The Web control must work on as many browsers as possible. You need to design an appropriate feedback technique. What should you do?
A. Throw an exception, and include details about the invalid data in the Message property.
B. Throw an exception, and include details about the invalid data in the InnerException property.
C. Use a pop-up error message to inform the user that the data is not valid.
D. Display text to indicate why the data is not valid.
Answer: D

Q: 3 You create Web-based client applications. You are creating a content management system (CMS). You intend to sell CMS to your customers. It is important that customers customize the appearance and behavior of the CMS installation because the system will be used for external Web sites. However, your customers are not programmers. The customers will not be able to modify complicated source code to customize the appearance and behavior of their Web sites. You need to create the system in such a way that customers can modify the appearance and behavior of their Web sites by editing the minimum number of files, ideally one or two. Which strategy should you use?
A. By using ASP.NET Server Controls and class inheritance, create a template system that permits controls to inherit the appearance and behavior of their inherited class. Permit users to modify the root classes of the hierarchy to rearrange completely the appearance and behavior of their Web sites.
B. Create a set of ASP.NET master pages and associate every page in your system by using a specific master page. Permit users to modify these master pages to rearrange completely the appearance and behavior of their Web sites.
C. Configure your system to output completely compliant XHTML and use cascading style sheets (CSS) to create the visual layout of the pages. Permit users to modify the CSS files to rearrange completely the appearance and behavior of their Web sites.
D. Create the root pages by using ASP.NET #include directives to pull in the relevant sub-pages. Permit users to modify these root pages as desired to rearrange completely the appearance and behavior of their Web sites.
Answer: B

Q: 4 You create Web-based client applications. You are creating an ASP.NET intranet site. The site permits individual departments to post content without involving the Central Information Technology resources. The site also permits Central Information Technology to maintain control over the intranet as a whole. Each department wants complete control over the appearance and behavior of their departmental content. However, Information Technology directives require every page on the intranet to maintain a consistent appearance and behavior. You need to develop the Web page on the intranet site so that it meets the requirements. What should you do?
A. Create a single ASP.NET master page and individual department master pages. The pages must refer to the master page. Permit each department to modify its master page as desired as long as it references the company master page.
B. Create a set of common .aspx files that contain the common style sheets and the header, navigation bar, and footer content that are to be referenced from departmental home pages by using ASP.NET #include directives.
C. Create a base class that inherits from System.Web.UI.Page and design this page to control the common user interface elements.
D. Create the home pages for all departments as ASP.NET server controls. Reference each control from the main project and load the appropriate server control when a departments home page is loaded.
Answer: A

Q: 5 You create Web-based client applications. You are creating a user-assistance mechanism for a Web form. The Web form serves as a multilevel wizard for clients to set up a new inventory for items.
The user-assistance mechanism must meet the following requirements:
Enable entry-level users to understand every step of the multilevel wizard process.
Ensure that users complete the multilevel wizard on their first try.
You need to select the appropriate user-assistance mechanism to meet the outlined requirements. What should you do?
A. Place a Help link and a hidden label next to each field on each step of the wizard. The label must contain a brief description of the purpose of the field. Click the Help link to make the label visible.
B. Place a Help link at the bottom of each step of the wizard, which opens a Web-based Help document for the entire wizard.
C. Place a description of each step of the wizard on the first page of the wizard, before the user has entered any data.
D. Place text containing user assistance for each step of the wizard at the top of that step.
Answer: D

Q: 6 You create Web-based client applications. Your client company has an existing ASP.NET Web-based application. The Web-based application uses a combination of HTML and client-side scripting to deliver online training content. Your client company has asked you to enhance the application to deliver interactive multimedia content. The enhanced application must support dial-up users. You need to recommend an appropriate multimedia delivery mechanism for the application. What should you recommend?
A. Dynamic HTML
B. Streaming video
C. Vector graphics animation
D. XML/XSLT
Answer: C

Q: 7 You create Web-based client applications. You are designing an extranet site for a company of trading partners.
You decide to use the following technologies:
Windows Authentication
XML to transfer data between the company and the traders
Before implementation, these technologies must be validated. You propose the following approach to perform the validation:
Coordinate a test set of Active Directory accounts for one trading partner.
Provide the trading partner access to a test site that has logon facility.
Distribute the XML schema that permits the partner to access data.
You need to evaluate whether the approach validates the proposed technology successfully. What should
you conclude?
A. The approach validates the use of the proposed technology for the application.
B. The approach does not validate the use of the proposed technology for the application. The company and
the partner need to create test applications. The test applications need to read data in the proposed XML schema to establish the validation.
C. The approach does not validate the use of the proposed technology for the application. The company and the partner need to coordinate their Active Directory tree into a shared Active Directory forest.
D. The approach does not validate the use of the proposed technology for the application. You must either use an existing publicly documented XML schema or register the shared XML schema by using an authentication site.
Answer: B

Q: 8 You create Web-based client applications. You are evaluating the design of an e-commerce Web site. The Web site processes credit card information. The Web site has a shopping cart and expects a high volume of traffic, especially during peak shopping times.
The design specifications for the application must meet the following criteria:
The application will be hosted on a Web farm.
The application will use SSL during the checkout process.
Shopping cart information will be stored in InProc session variables.
You need to evaluate the design of the application and recommend whether it is technically feasible and complete.
What should you conclude?
A. The design is technically feasible, but it is not complete. The application must be configured to use cookieless sessions. Each server on the farm must use a unique certificate.
B. The design is technically feasible and complete.
C. The design is technically feasible, but it is not complete. The servers must have their affinity set to a single host (sticky sessions).
D. The design is not technically feasible. The application cannot be hosted on a Web farm.
Answer: C

Q: 9 You create Web-based applications. You are creating an Internet banking application. The application will be used by bank account holders.
You are creating a method to withdraw money from an account. The method must change the account balance according to one of the following rules:
If the amount that is being withdrawn is less than or equal to the account balance, then subtract the amount from the balance. If the amount that is being withdrawn is greater than the account balance by up to 500 dollars, then subtract the amount and a 35-dollar fee from the balance.
If the amount that is being withdrawn is greater than the account balance by more than 500 dollars, then generate an error.
You are translating the specification given here into pseudo code. You start by writing the following code.
Method
public void Withdraw Input parameters decimal amount Class field decimal balance Pseudo code //your
pseudo code
You need to insert the correct pseudo code. Which code segment should you insert?
A. If amount < balance then balance - = amount
If amount < balance + 500 then balance = balance - (amount + 35)
If amount > balance + 500 then throw exception
B. If amount <= balance then balance - = amount
If amount < = balance + 500 then balance = balance - (amount + 35)
If amount > balance + 500 then throw exception
C. If amount < balance then balance - = amount
Else If amount < balance + 500 then balance = balance - (amount + 35)
Else throw exception
D. If amount <= balance then balance - = amount
Else If amount < = balance + 500 then balance = balance - (amount + 35)
Else throw exception
Answer: D

Q: 10 You create Web-based client applications.
You are designing a database that must meet the following requirements:
Store data about people in the People table and data about the companies they work for in the
Companies table.
Track an unlimited number of companies for a person.
Track an unlimited number of persons who worked at each company.
You decide to create a one-to-many link from the People table to the Companies table. You need to evaluate whether the database is designed effectively and make a recommendation, if required. What should you recommend?
A. The database is not correctly designed according to the requirements. You must create a many-to-many link between the People table and the Companies table by using an intersection table.
B. The database is not correctly designed according to the requirements. You must create a many-to-many link directly between the People table and the Companies table.
C. The database is not correctly designed according to the requirements. You must create a one-to-many link from the People table to the Companies table. Create another one-to-many link from the Companies table to the People table. Add columns to the People table and the Companies table to accommodate multiple child rows.
D. The database is correctly designed according to the requirements. No changes are required.
Answer: A

Q: 11 You create Web-based client applications. All Web-based applications are created by using ASP.NET. Larger applications are hosted on Web server farms. The larger applications appear to intermittently lose session state information for users. You need to correct the problem. What should you do?
A. Add additional servers to the Web farm to accommodate load. Configure the entire Web farm to reside in the same domain. Configure IIS on each server to have domain-level administrative permissions.
B. Modify the Web.config file and set the mode attribute of the sessionState element to InProc. Restart IIS on each associated Web server.
C. Modify the Web.config file and set the mode attribute of the sessionState element to StateServer. Start the state service on each associated Web server.
D. Modify the Web.config file and set the mode attribute of the sessionState element to None. Configure IIS on each Web server to make state information available to all servers in the Web farm.
Answer: C

Q: 12 You create Web-based applications. You are creating an application that manages travel arrangements. Users can book business trips through the application and submit their expense reports. The current design specifies that 10 components are consumed by the application. You need to identify the components that require integration testing. Which three components should you choose? (Each correct answer presents part of the solution. Choose three.)
A. public Web service to retrieve weather information
B. third-party Web service to book flights
C. third-party Web service to book car rentals
D. locally hosted COM+ component to book hotels
E. locally hosted data access component to access a central database
F. the .NET Framework Web server controls
Answer: A, B, C

Q: 13 You create Web-based applications. You are creating an application for purchase order management. The application is composed of a Web client, business logic components, a Data Access Component (DAC) Web service, and a central database.
The application design meets the following specifications:
The Web-based client application is used for end-user interaction.
The Web-based client application uses two business logic components named Order and Customer.
Each customer can have multiple orders.
Each order belongs to a single customer.
The business logic components use a DAC Web service.
The business logic components make data available to the Web-based client application.
You receive a deployment diagram as shown in the following exhibit. (Click the Exhibit button.)

You need to evaluate the diagram to ensure that it complies with the specifications. What should you conclude?
A. The diagram complies with the specifications.
B. The diagram is incomplete. It needs a dependency from the Web client component to the Microsoft Data Access component.
C. The diagram is incomplete. It needs a dependency from the Data Access component to the Order component.
D. The diagram is incomplete. It needs a dependency from the Order component to the Web-based client application.
Answer: A

Q: 14 You create Web-based client applications. You deploy an application for a company. The application enables customers to access mobile phone invoices. Users report that the application fails to respond and time-outs occur. You test the application and find that the reports are valid. You need to identify the cause of the problem. Which analysis strategy should you use?
A. Start the performance MiCTOsoft Management Console snap-in.
Change to the Report view.
Add all ASP.NET performance object.. < inters.
Look for high counts of requests queued and requests timed out.
B. Start the event viewer Microsoft Management Console snap-in.
Switch to the Application view.
Look for high counts of number of requests timed that are shown at configured intervals.
C. Start the performance Microsoft Management Console snap-in.
Change to the Report view.
Add all the network interface performance object counters.
Look for high counts of requests queued and requests timed out.
D. Open the Trace.axd file.
Scroll to the performance count category.
Look for high counts of requests queued and requests timed out.
E. Start the event viewer Microsoft Management Console snap-in.
Switch to the System view.
Apply a filter to show only ASP.NET related events.
Look for high counts of number of requests timed out that are shown at configured intervals.
Answer: A

Q: 15 You create Web-based client applications. You deploy an application on your company extranet. The application uses an ASP.NET 2.0 Membership system. The support team requires that changes in passwords be communicated to their Microsoft Windows Management Instrumentation (WMI) integrated system.
You propose the use of health monitoring APIs to perform the following actions:
Respond to password changes inside the application.
Call a custom event handler when a password change occurs.
Report the changes to the support teams WMI system by using the custom event handler.
You need to examine whether the proposed solution meets the requirements. What should you conclude?
A. The proposed solution meets the requirements.
B. The proposed solution does not meet the requirements. The health monitoring API does not support WMI directly.
C. The proposed solution does not meet the requirements. The output of the WMI export is done on a batch basis that relies on the Heartbeat method. The Heartbeat method will not permit event-driven interaction.
D. The proposed solution does not meet the requirements. The health monitoring API cannot ascertain successful password changes.
Answer: A