MCQ Practice

Which of the following is a valid condition for an if statement? (The condition should be both syntactically and logically valid.)

A

(age) > 65

B

(age > 0 and < 10)

C

(sales > 500 && < 800)

D

(sales > 100 && sales 100 || sales <= 1000)

Correct Answer: D