Question: Ruby has a loop method that takes a block as its only parameter. This method executes the block repeatedly forever. To exit the method (stop

Ruby has a loop method that takes a block as its only parameter. This method executes the block repeatedly forever. To exit the method (stop iteration), a next statement must be executed inside the block. This is an example of what sort of loop? User-located loop control Logical loop Pretest loop Posttest loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
