Examveda

In Ruby, what does the `else` keyword do?

A. Specifies the code block to execute if a condition is true

B. Specifies the code block to execute if a condition is false

C. Specifies the code block to execute if no other conditions are met

D. Specifies the code block to execute in all cases

Answer: Option C


This Question Belongs to Ruby Programming >> Control Structures In Ruby

Join The Discussion

Related Questions on Control Structures in Ruby