What is the size of an integer data type in ruby?
A. -230 to 230
B. -230 to 2(30-1)
C. -229 to 230
D. -260 to 261
Answer: Option B
Related Questions on Basic Syntax in Ruby
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user

Join The Discussion