Vidyalelo
Ruby Programming · Q1

Blocks and Procs in Ruby

Programming · Ruby Programming · question 1

Q1

What is a block in Ruby?

A.
A chunk of code that can be passed to methods as an argument
Answer
B.
A data structure for storing multiple values
C.
A special type of object that holds code to be executed
D.
A method that can be invoked with different arguments

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board