41. Which method is used to find the length of an array in Ruby? A. .size B. .length C. .count D. .length_of Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
42. What is the output of the expression: 7 / 2 in Ruby? A. 3 B. 3.5 C. 4 D. 2 Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
43. In Ruby, what is the keyword used to define a loop that repeats until a condition is true? A. until B. loop C. while D. repeat Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
44. What is the data type of the value "true" in Ruby? A. Integer B. Float C. String D. Boolean Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
45. Which of the following is the correct way to define a constant in Ruby? A. CONSTANT_NAME = value B. constant_name : value C. constant_name = value D. constantName(value) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board