Q21medium
An e-commerce system applies a discount if a user is a "Premium Member" AND their cart total is > $50. Which of the following test cases will successfully trigger the discount?
Topic-wise practice questions for Problem Solving & Analytical Skills. Test your knowledge, check solutions on demand, and pace your preparation.
False)
x = 5
if (x > 2 AND x < 10) {
if (x == 5 OR x == 6) {
print("Alpha")
} else {
print("Beta")
}
} else {
print("Gamma")
}
What is printed?