Ruby Online Quizzes - Section 8
1. Which of the following is valid conditional statement in Ruby? 1. elseiff 2. elseif …
1. Which of the following is valid conditional statement in Ruby? 1. elseiff 2. elseif …
1. What is the use of else statement? 1. When the if condition is false and if else condition is true t…
1. The following syntax is correct for if conditional statement. if condition code end 1. Tr…
1. Why do we use comments? 1. For later use to understand the working of the program 2. It…
1. Which of the following datatypes are valid in Ruby? 1. Boolean 2. Numbers …
1. The .upcase and .capitalize method are used for capitalizing the whole string. 1. True …
1. Which of the following is the valid string method? 1. The .length method 2. The .irreve…
1. Which of the following is not a valid library function? 1. Print 2. Get 3. G…
Our website uses cookies to improve your experience. Learn more
Ok