ExamQuestions.com

Register
Login
Java SE 8 Programmer Exam Questions

Oracle

Java SE 8 Programmer

38 / 76

Question 38:

Given the code fragment: 
image
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? 
image

                
                
            
            
            
                

Answer options:

A.
Option A
B. Option B
C. Option C
D. Option D
E. Option E