Home / MCQ Bank / Computer
Computer Blocks And Procs In Ruby

What is the difference between a block and a proc in Ruby?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • A block can be passed directly to methods, while a proc needs to be converted into an object

Related Computer Questions

Which class is used for reading character streams in a platform-independent way in Java? Knox provides perimeter ______ for Hadoop clusters. A storage system for small amounts of data is What happens if you select first and second slide and then click on New Slide button on toolbar? What does the 'in' operator do in Python?