Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 8 (Q.No. 21)
21.
Which of the following is a valid condition for an if statement? (The condition should be both syntactically and logically valid.)
(age) > 65
(age > 0 and < 10)
(sales > 500 && < 800)
(sales > 100 && sales <= 1000)
(sales > 100 || sales <= 1000)
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Ameya said:   2 years ago
a is syntactically incorrect.
b is syntactically incorrect.
c is syntactically incorrect.
d is correct logically and syntactically.
e is logically incorrect.

Post your comments here:

Your comments will be displayed after verification.