Computer Science, asked by amanrastogi8040, 10 months ago

What will be the value returned by expression ""India"" < ""bharat""? (i) 0 (ii) true (iii) false (iv) Invalid expression

Answers

Answered by agentdevprobs
1

Answer:

Invalid

Explanation:

Only single inverted comas are used to specific a thing not double the output will show invslid

Answered by shilpa85475
1

The value returned by the given expression "India" < "bharat" is Option 3: FALSE

EXPLANATION:  

Relational Operators are symbols that return a Boolean value, true or false after evaluating the condition.  

The given literals are two string literals. “India” < “Bharat”. ‘<’ is a relational or a comparison operator.  Relational operators are functional for strings also. The comparison takes place in alphabetical order. This alphabetical order is based on ASCII number. Given expression is neither invalid not it is a true statement. India less than Bharat will return FALSE.

Similar questions