1.

Why can not we use quotation marks (‘ or “) with boolean?(a) It indicates that we are talking about a string(b) It indicates that we are assining a value(c) It indicates that that we are replacing boolean data type with string data type(d) None of the mentionedI had been asked this question in an internship interview.Asked question is from Data Types and Variables in section Ruby Basics of Ruby

Answer»

The correct OPTION is (a) It INDICATES that we are TALKING about a string

The best explanation: Quotation marks are USED only with strings.



Discussion

No Comment Found

Related InterviewSolutions