1.

What will any variableevaluate to if it is of Boolean data type?(a) True(b) Nil(c) False(d) Either True or FalseThis question was addressed to me in an interview for job.My question is based upon Data Types and Variables in portion Ruby Basics of Ruby

Answer»

The CORRECT CHOICE is (d) EITHER True or False

To explain I would say: Boolean data types will give the VALUE either as True or False depending on the condition.



Discussion

No Comment Found

Related InterviewSolutions