Basic Syntax In Ruby - Study Mode

[#131] What is the purpose of the gem command in Ruby?
Correct Answer

(A) Installs and manages Ruby libraries

[#132] What is the correct way to define an array in Ruby?
Correct Answer

(A) array = ["element1", "element2"]

[#133] What is the correct way to define a conditional statement in Ruby?
Correct Answer

(A) if (condition) { code }

[#134] What symbol is used to denote the end of a statement in Ruby?
Correct Answer

: