What will be the value returned by expression ""India"" < ""bharat""? (i) 0 (ii) true (iii) false (iv) Invalid expression
Answers
Answered by
1
Answer:
Invalid
Explanation:
Only single inverted comas are used to specific a thing not double the output will show invslid
Answered by
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
English,
5 months ago
History,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Math,
1 year ago