1.

The boolean operator && only result in true when both the values are true?(a) True(b) FalseI have been asked this question by my school teacher while I was bunking the class.This intriguing question comes from Operators in chapter Mathematic Operations and Loops of Ruby

Answer»

The correct answer is (a) TRUE

The EXPLANATION is: The && OPERATOR only results in true when both the values are true rest all cases it evaluates to false.



Discussion

No Comment Found

Related InterviewSolutions