1. Which of the following datatypes are valid in Ruby? a) Numbers b) Boolean c) String d) All of the mentioned AnswerAnswer: d [Reason:] Ruby supports all the three (numbers,strings,boolean) data types. 2. What will any variable evaluate to if it is of Boolean data type? a) True b) Nil c) False d) Either True…