70-548 Designing and Developing Windows-Based Applications by Using the Microsoft .NET Framework
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!

NY, USA

Demark

Australia








