InterviewSolution
Saved Bookmarks
| 1. |
What is the size of an integer data type in ruby?(a) -2^30 to 2^30(b) -2^30 to 2^(30-1)(c) -2^29 to 2^30(d) -2^60 to 2^61I got this question by my school teacher while I was bunking the class.I want to ask this question from Data Types and Variables topic in chapter Ruby Basics of Ruby |
|
Answer» CORRECT OPTION is (B) -2^30 to 2^(30-1) Explanation: Integer ranges from -2^30 to 2^29 and lies in OBJECT of CLASS Fixnum. |
|