Examveda
Examveda

In Ruby, what does the unless keyword do?

A. Executes code if condition is true

B. Executes code if condition is false

C. Breaks out of loop if condition is true

D. Executes code only once if condition is true

Answer: Option B


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

Join The Discussion

Related Questions on Control Structures in Ruby