70-548 Designing and Developing Windows-Based Applications by Using the Microsoft .NET Framework Certification Exam


Microsoft ™

70-548 Designing and Developing Windows-Based Applications by Using the Microsoft .NET Framework



Note 1: 70-548 Exhibit and all related diagrams are not shown in demo questions.
Note 2: 70-548 Answers are not shown in demo questions.
Exhibits and Answers are only provided in the Full Version.


Demo Question 11.


You work as the Enterprise application developer at EliteCertify.com. The EliteCertify.com network consists of a single Active Directory domain named EliteCertify.com. All servers in the domain run Windows Server 2003. Your responsibilities at EliteCertify.com include the design and development of Application Frameworks. EliteCertify.com operates as an international retail company. The EliteCertify.com management follows an incentive scheme in the enumeration of their personnel. This incentive scheme is as follows: 1. If a staff member ships goods to the value of $5,000 they receive $500 2. If a staff member ships goods of a value greater than $5,000 and up to $10,000 they receive $1,200 3. If a staff member ships goods of a value greater than $10,000 and up to $15,000 they receive $2,500 4. If a staff member ships goods of a value greater than $15,000 they receive 25% of the value. You are developing a Microsoft Windows Forms shipping management application for EliteCertify.com. You thus need to take into account how the EliteCertify.com staff is enumerated. To this end you create two Double variables named shipped and enumeration to represent the shipped goods and enumeration, respectively. The shipped variable is always greater than zero. You now need to select an appropriate decision flow structure to implement the business rules. What should you do? (Choose the appropriate code segment.)

A. if (shipping <= 5000) { enumeration = 500; if (Shipping <= 10000) { enumeration = 1200; if (Shipping <= 15000) { enumeration = 2500; } else { enumeration = shipping * 0.25; } } }
B. switch ((int)Shipping) { case 5000: { enumeration = 500; break; } case 10000: { enumeration = 1200; break; } case 15000: { enumeration = 2500; break; } default: { enumeration = shipping * 0.25; break; } }
C. if (shipping <= 5000) { enumeration = 500; } if (shipping <= 10000) { enumeration = 1200; } if (shipping <= 15000) { enumeration = 2500; } if (shipping > 15000) { enumeration = shipping * 0.25; }
D. if (shipping <= 5000) { enumeration = 500; } else if (shipping <= 10000) { enumeration = 1200; } else if (shipping <= 15000) { enumeration = 2500; } else { enumeration = shipping * 0.25; }


Display Answer


Purchase Full Version:


70-548 Printable PDF Prep Guide $49.95 BUY NOW!

70-548 Test Simulation Engine $69.95 BUY NOW!

70-548 PDF & Test Simulation Engine $99.95 BUY NOW!




Answer: D

Explanation: You need to make use of if-else statements because these statements control execution based on a single expression. In this scenario, if a staff member ships goods of value less than or equal to $5,000, the enumeration variable is 500 and execution leaves the entire if-else block. If not the code will determine if the amount shipped is less than or equal to $10,000, if so then the enumeration variable is set to 1200 and execution leaves the entire if-else block, etc. Incorrect answers: A. You should not make use of nested statements as it will result in shipping of a value of less than $500 to generate enumeration of $2,500. B : You should not make use of Switch-case statements as each case statement can be used to test a single value and this will result in shipping of the value less than $500 to generate enumeration of 25% of the shipped amount. C. You should not make use of if statements as it will result in shipping to the value of less than $500 to generate enumeration of $2,500.



  • Based on the latest 70-548 exam objectives!
  • Designed like actual 70-548 exam questions!
  • 100% Verified Realistic 70-548 Exam Questions and Answers!
  • Exhibits, Drag&Drop and Simulation 70-548 Questions Included!
  • Constantly Updated Guide to Reflect the Current 70-548 Exams!
  • Detailed Explanations for Most Guide Practice Exams!
 Sponsored Links
Japan Exam



MPC
70-121 70-122
70-123 74-131
74-132 74-133
74-134 74-139

$239 Get Detail

9i DBA
1Z0-007 1Z0-030
1Z0-031 1Z0-032
1Z0-033 1Z0-035
1Z0-036
$209 Get Detail

9i IAD
1Z0-001 1Z0-101
1Z0-131 1Z0-132
1Z0-140 1Z0-141
1Z0-147
$209 Get Detail

MCITP
70-431 70-441
70-442 70-443
70-444 70-446
70-447
$209 Get Detail

Solaris 10 SCSA
310-200 310-202

$59 Get Detail


NY, USA
I wanted to take a few minutes to thank EliteCertify for passing 3 exams towards my MCSE. ...


Demark
Took my last CCNP test last Friday. EliteCertify tests really made the difference, I passed every one on the first ...


Australia
Great thanks to EliteCertify for such excellent products! It really helped me a lot for passing 3Com 3M0-212. The practice ...





Keyword
This site is both PayPal and VeriSign Verified. 128-bit SSL Encryption!
More questions about Order Security?