Data Types And Variables In Ruby - Study Mode

[#1] Which of the following is NOT a valid data type in Ruby?
Correct Answer

(D) Double

[#2] What is the data type of the value 3.14 in Ruby?
Correct Answer

(B) Float

[#3] What is the default value of a variable in Ruby if not initialized?
Correct Answer

(B) nil

[#4] Which symbol is used to declare a variable in Ruby?
Correct Answer

(C) @

[#5] What does the 'nil' value represent in Ruby?
Correct Answer

(B) Null value