Vidyalelo
Computer Science · Q364

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 364

Q364

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
E.
(sales > 100 || sales <= 1000)

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board