Which two code fragments can be independently placed at line n1 to meet the requirements?

Given the code fragment: And given the requirements: * If the value of the qty variable is
greater than or equal to 90, discount = 0.5. * If the value of the qty variable is between 80
and 90, discount = 0.2. Which two code fragments can be independently placed at line n1 to
meet the requirements?

Given the code fragment: And given the requirements: * If the value of the qty variable is
greater than or equal to 90, discount = 0.5. * If the value of the qty variable is between 80
and 90, discount = 0.2. Which two code fragments can be independently placed at line n1 to
meet the requirements?

A.
Option E

B.
Option D

C.
Option C

D.
Option A

E.
Option B

Explanation:



Leave a Reply 7

Your email address will not be published. Required fields are marked *


IO

IO

D.
Option A
C.
Option C

Kaykay

Kaykay

Answer is B – Option D and D – Option A.

C – Option C is wrong! Test on IDE.

Narayana Gowda

Narayana Gowda

Correct answers are D-Option A & C-Option C. You plz check once.

Xsvier

Xsvier

options C and A.

Tomas

Tomas

Answers: D (option A) and C (option C)
Tested

joe

joe

Answer D is incorrect, if value of qty is between 80 and 90, discount is set to 0.2. then, in second if-conditional – set to 0.