adplus-dvertising
frame-decoration

Question

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 <= 1000)

Answer: (d).(sales > 100 && sales <= 1000)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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