Designing and Developing Windows-Based Applications by Using The

Designing and Developing Windows-Based Applications by Using The

70-548

Microsoft

Designing and Developing Windows-Based Applications by Using the

Microsoft .NET Framework

Visit:

Pass4sureofficial.com is a reputable IT certification examination guide, study guides and audio exam provider, we not only ensure that you pass your 70-548 exam in first attempt, but also you can get a high score to acquire Microsoft certification.

If you use pass4sureofficial 70-548 Certification questions and answers, you will experience actual 70-548 exam questions/answers. We know exactly what is needed and have all the exam preparation material required to pass the exam. Our Microsoft exam prep covers over 95% of the questions and answers that may be appeared in your 70-548 exam. Every point from pass4sure

70-548 PDF, 70-548 review will help you take Microsoft 70-548 exam much easier

and become Microsoft certified. All the Questions/Answers are taken from real exams. Here's what you can expect from the Pass4sureOfficial Microsoft 70-548 course:

* Up-to-Date Microsoft 70-548 questions taken from the real exam.

* 100% correct Microsoft 70-548 answers you simply can't find in other 70-548 courses.

* All of our tests are easy to download. Your file will be saved as a 70-548 PDF.

* Microsoft 70-548 brain dump free content featuring the real 70-548 test questions.

Microsoft 70-548 certification exam is of core importance both in your Professional life and Microsoft certification path. With Microsoft certification you can get a good job easily in the market and get on your path for success. Professionals who passed Microsoft 70-548 exam training are an absolute favorite in the industry.

You will pass Microsoft 70-548 certification test and career opportunities will be open for you.

Microsoft (C#) 70-548

Question: 1

You create Microsoft Windows-based client applications. You are designing a smart client applicationforwarehousepackagingclerks.Theapplicationmustpermittheclerkstoaddand

deleteitemsinthepackaginginvoicestheycreateattheirworkstations.Eachworkstationhas onlyakeyboardandahand-heldbarcodescannerforinput.Youneedtodesigntheuser

interfacefortheapplicationsuchthattheclerkscanaddanddeleteitemswithminimumeffort. What should you do?

A. Add to theform a context menu that has Add toInvoice and Remove from Invoice menu items. B. Add to theform a menuthat has Addto Invoice and Remove fromInvoice menu items.

C. Add to the form a KeyPress event handlerthat toggles betweenAdd to Invoice and Remove from Invoicemodes.

D. Add to the form a ToolStrip control thathasa buttonthat togglesbetween Addto Invoice and

RemovefromInvoicemodes.

Answer:C Question: 2

You create Microsoft Windows-based applications. You are enhancing an application for a medicaltranscriptionservice.Usersneedtoviewalonglistofmedicalcodesanddescriptions.

Theusersdisplaysaresetat800x600resolution.Theexistingapplicationrequirestheuserto regularlyobtainprintoutsthatcontainpagesofmedicalcodes.Thesemedicalcodesfrequently

change.

The applicationmust be updated to assistusersin entering medicalcodesinto adatabase. The applicationmustenabletheusertoviewandenter medicalcodesanddescriptionson screenat thesametime.Youneed toevaluatetheuserenvironmentandrecommendadesignthatbest meets the requirements of the users. What should yourecommend?

A. Design a form that contains a ListBoxControlcontrol. Load themedical codes into the ListBoxControl control. Place the ListBoxControlcontrol 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 Containercontrol. Display the list of medicalcodes and descriptions on the left panel and all input controls onthe right panel.

D. Design a form that contains a TableLayoutcontrol to display the medical codes in a two column table.Next to the Table Layout control displaythe medicaldata input controls.

Answer:C Question: 3

YoucreateMicrosoftWindows-basedapplications.Youaredevelopinganapplicationthatwillbe

used by stock traders. Theproject scopecontains thefollowing requirements:

•Theapplicationmustpermituserstosetthresholdsforminimumandmaximumvaluesfor different stocks.

• The application must alert the user when stock pricesreach the pre-defined thresholds.

•Theapplicationmustpermittheusertoeitherbuyorsellstockandspecifythequantityof stock totrade.

• The application must permit multiple alerts to be displayed simultaneously.

You need todecide how to implement the alert mechanism.Whatshould you do?

A. Use a modal dialog boxto show eachalert and to permit the user to trade stocks.

B. Use a message box to show each alert and the main applicationform to permit the user to trade stocks.

C. Use a BalloonTipcontrol to display multiple alerts and the mainapplication form to permit the user to tradestocks.

D. Use a custom BalloonTip control to display multiplealerts and to permit the user to trade

stocks.

Answer:D Question: 4

YoucreateMicrosoftWindows-basedapplications.Youcreateanapplicationthatloadsbulk weather data into a data warehouse for analysis. The application is used by data-entry

technicians.Onedata-entrytechnicianisvisuallyimpaired.Thedata-entrytechniciansprovidea

large flat file as the sourceofthe data, and they typically minimizethe application so that they can use other programs whilethedatais beingloaded.Thedata entrytechniciansmustload asmany datafilesaspossibleduringthecourseoftheirworkday.Theuserinterface containsaprogress barcontrolthathasatextlabel.Thetextlabelindicatesthecurrentpercentage ofprogress.You need to provide appropriate status feedback to the user by indicating that the process is complete. Whichtwoactionsshouldyouperform? (Eachcorrect answerpresents partofthe solution.Choose two.)

A. Write codeto change the title bar text of the application when the process is complete. B.Writecodetoresettheprogress bartoits minimumvalue.

C. Writecodeto play a sound that indicates the process is complete.

D. Writecodeto update thestatus bar text toindicate the number ofrecords processed. E. Write codeto display ananimated balloon tip whenthe processcompletes.

Answer:C, E Question: 5

YoucreateMicrosoftWindows-basedapplications.Youparticipateintheplanningphaseofan

incident tracking tool for technical support analysts.

The incident tracking tool must meet the following requirements:

• Technical support analysts must openmultiple 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 actionshould you perform?

A. Create aMultiple Document Interface (MDI) applicationwith a menu strip. Utilize the MdiWindowListItempropertyofthemenustriptoautomatically merge MDI child forms to the Window list.

B. Create a Single Document Interface application thatlaunches multiple forms. Writecode to enable the user to toggle between the active forms.

C. Create aMultiple Document Interface applicationwith a menustrip. Write code to add child

Windows to the menustripto 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

Question: 6

YoucreateMicrosoftWindows-basedapplications.Youaredesigninganapplicationthatstreams multimediadata.Theapplicationmusthaveminimalimpactonthenetwork.Theapplicationwill

beusedbyMicrosoftWindowsXPProfessionalclientcomputersandMicrosoftWindowsServer

2003 clientcomputers.Themediayou needtouseisstoredona fileserverin anonproprietary rawvideo formatandthefilesare unedited.Youneedto choose an appropriatedesign modification that requires the least amountof programming effort. What should you do?

A. Write codeto convert the video files to Microsoft Windows MediaVideo (WMV) format in real time.

B. Convert the video files to Microsoft Windows MediaVideo (WMV) format, andresample the video to a bit rate that is acceptable.

C. Write acustom file format filter for Microsoft DirectShow, and distribute the filter to the client computers.

D. Convert the video files into separateaudio and video files.

Answer:B Question: 7

YoucreateMicrosoftWindows-basedapplications.Youaredesigningauserinterfaceforamulti- page questionnaire.

You need toensure that the user interface meets thefollowing business requirements:

• The user interface is reusable.

• The user interfacerequiresthe user to selectthreeoutoffivechoices foreach question.

•The user interface permitsthe user to checka box to select the correct answer or answers. What should you do?

A. Create a customWindows user control that inherits from a CheckedListBox control. B. Use a multi-select ListBox controlthatdisplays thepossible answers.

C. Use a TextBox control for the userto enter answers separated bycommas. D. Use a CheckedListBox control todisplay the possible answers.

Answer:A Question: 8

YoucreateMicrosoftWindows-basedapplications.Youdesignacompositeusercontrolthatis

used to entere-mail addresses. The control is as shown in the following exhibit.

Thecontrolvalidatestheuserinputby usingaregularexpression.Thecontrolvalidatese-mail addresses andpreventstheuserfrom submitting blocked e-mail addresses. The control must permittheusertocorrect theentryiftheuserentersablockede-mailaddress.Youneedto providefeedbackiftheuserentersablockede-mailaddressinthetxtEmailAddresstextbox. 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 indicatea data validation error.

C. Write acode segment to display a message boxif the user enters a blockede-mail address.

D. Write acode segment to clearthe txtEmailAddress text box if the user enters a blocked e-mail address.

Answer:C Question: 9

YoucreateMicrosoftWindows-basedapplications.Youaredesigninganapplicationthatpermits insuranceagentstoprovideinsurancequotestoprospectivecustomers.Theapplicationpermits

insuranceagentstosurveythecustomerandenterthecustomersresponsesintotheapplication. Eachcustomerresponseadjuststhecomputedlevelofriskforthecustomerdependingonhow

the customer answers thequestion.

The application must meet the followingrequirements:

•The application mustcontinuously display a thermometer indicating the level of risk.

•The prospective customers risk must beupdated after each question.

•Theapplicationmustensurethattheuserinteractswiththethermometercomponentaslittle as possible.

Youneedtoevaluateauserinterfacedesignforthethermometercomponentoftheapplication. What should you do?

A. Design thethermometer component as a movable tool Window that is alwaysdisplayed as the top most Window.

B. Design thethermometer component as a part ofthemain questionnaire form that is always visible.

C. Design thethermometer component to be displayed as a modal Windowwhen the insurance agent clicks abutton.

D. Design thethermometer component to display a non-modalWindow that can be dismissed by

the insuranceagentswhenthey are ready to ask thenext question.

Answer:B Question: 10

YoucreateMicrosoftWindows-basedapplications.Youaredesigningaunittestforaforminan application.Youwritethefollowingcodesegment.(Linenumbersareincludedforreference

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 }

Youneedtoidentifythemethodsthatmustbeincludedforunittesting.Whichmethodsshould 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 Question: 11

YoucreateMicrosoftWindows-basedapplications.Youarereviewingcodeforanapplicationthat iscreatedforabank.YoufindthataMicrosoftWindowsFormincludesthefollowingcode

segment.

public partialclass 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));

}

}

Youanalyze thecode segmentandfindthattheformhandlesnootherevents.Youneed to suggestchangestoimprovereliability.Whichtwo actionsshouldyouperform?(Each correct answer presents part of thesolution. Choose two.)

A. Add an event handler for the TextChanged event for the txtAmount textbox tovalidate 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_Loadmethod.

E. Add a Try...Catch block to the ATMDeposit constructor.

Answer:B, C Question: 12

YoucreateMicrosoftWindows-basedapplications.Youaredesigningtheintegrationtestforan application. You write the following linesof 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);

04cmdGetRentalPrice.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;

09txtTravelCost.Text= travelCost.ToString("C");

10 }

You analyze the code and discover the following features:

• wsFlyHigh is a Webservice thatis hosted on a partners extranet.

• cmdGetRentalPrice runs astoredprocedure on a corporate databaseserver.

• bigDeal is aCOMcomponent.

Youneedtocreateareportthatliststhepartsofthecodetobeconsideredduringintegration testing.

Which lines ofcode shouldyou add to your report?

A. 03, 04, 05, 06, and 07

B. 03, 06, and 07

C. 03 and 07

D. 07

Answer:B Question: 13

YoucreateMicrosoft Windows-based applications.Youare designing aunittestclassto testthe functionalityofacomponentnamedCalculator.TheCalculatormustfunctionas astandard nonscientificcalculator.Adeveloperonyourteamwritesthefollowinglinesofcodeforthetest

class. (Line numbers are included for reference only.)

01 [TestClass()]

02 public class CalculatorTest {

03 private TestContexttestContextInstance;

04 public TestContext TestContext {

05 get{return testContextInstance;}

06 set{testContextInstance= value;}

07 }

08 [TestMethod()]

09 public voidAddTest() {

10 Calculator target = newCalculator();

11 Assert.AreEqual(target.Add(1,1),2);

12 target.Dispose();

13 }

14 [TestMethod()]

15 public voidSubtractTest() {

16 Calculator target = newCalculator();

17 Assert.AreEqual(target.Subtract(10,2),8);

Pass4SureOfficial.comLifetimeMembershipFeatures;

-Pass4SureOfficial Lifetime Membership Package includes over 2500 Exams.

-Allexams Questions and Answers are included in package.

-AllAudio Guides are included freein package.

-AllStudy Guides are includedfreein package.

-Lifetime login access.

-Unlimited download, no account expiry, no hidden charges, just one time $99 payment.

-Free updates forLifetime.

-Free Download Access to All new exams added in future.

-Accurate answers with explanations (If applicable).

-Verified answers researched by industry experts.

-Study Material updated on regular basis.

-Questions, Answers and Study Guides are downloadable in PDF format.

-Audio Exams are downloadable in MP3 format.

-No authorizationcode required to open exam.

-Portableanywhere.

-100% successGuarantee.

-Fast, helpful support 24x7.

View list of All exams (Q&A) downloads

View list of All Study Guides (SG) downloads

View list of All Audio Exams (AE) downloads

DownloadAllExamsSamples

To purchase $99 Lifetime Full Access Membership clickhere

3COM ADOBE / CompTIA ComputerAssociates / Filemaker
Fortinet / IBM IISFA / LPI McAfee / OMG Oracle / Sun
Sybase
APC / CWNP / Foundry / Intel / McData / PMI / Symantec
Apple / DELL / Fujitsu / ISACA / Microsoft / Polycom / TeraData
BEA / ECCouncil / GuidanceSoftware / ISC2 / Mile2 / RedHat / TIA
BICSI / EMC / HDI / ISEB / NetworkAppliance / Sair / Tibco
CheckPoint / Enterasys / Hitachi / ISM / Network-General / SASInstitute / TruSecure
Cisco / ExamExpress / HP / Juniper / Nokia / SCP / Veritas
Citrix / Exin / Huawei / Legato / Nortel / See-Beyond / Vmware
CIW / ExtremeNetworks / Hyperion / Lotus / Novell / SNIA