1.

Objects of which class does the integer from the range -2^30 to 2^(30-1) belong to?(a) Bignum(b) Octal(c) Fixnum(d) BinaryThis question was addressed to me in an interview for internship.I'd like to ask this question from Data Types and Variables in section Ruby Basics of Ruby

Answer»

The CORRECT choice is (c) FIXNUM

The best explanation: Integer within this RANGE are objects of the CLASS fixnum.



Discussion

No Comment Found

Related InterviewSolutions