Home »
MCQs »
Scala MCQs
Logical operators in Scala are used to –
43. Logical operators in Scala are used to -
- Perform a comparison of values
- Perform logical operation on the boolean value
- Return a value
- None
Answer: B) Perform logical operation on the boolean value
Explanation:
Logical operators, logical-or (|| and | ) and logical-and (&& and &) take Boolean operands and evaluate to a Boolean result.