Q. What is the purpose of using blocks and procs in Ruby? (A) To create new instances of classes (B) To encapsulate and pass around chunks of code (C) To handle file input and output (D) To create new instances of classes ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (B) To encapsulate and pass around chunks of code