Question 1 of 25
Hints left: 3
Q1
Which modifier is used to perform single-line matching in Ruby regular expressions?
Q2
Which method is used to extract all occurrences of a pattern in a string in Ruby?
Q3
What is a proc in Ruby?
Q4
What happens if a block is passed to a method that doesn't expect one in Ruby?
Q5
What does the \A anchor represent in a regular expression in Ruby?
Q6
What is the difference between a block and a proc in Ruby?
Q7
How do you pass a proc as an argument to a method in Ruby?
Q8
How do you define a block in Ruby?
Q9
How do you call a block in Ruby?
Q10
What does the $ anchor represent in a regular expression in Ruby?
Q11
What does the (?<=...) construct represent in a regular expression in Ruby?
Q12
What is a block in Ruby?
Q13
How do you create a proc in Ruby?
Q14
Which metacharacter is used to specify character ranges in a regular expression in Ruby?
Q15
Which modifier is used to perform global matching in Ruby regular expressions?
Q16
What is the purpose of using blocks and procs in Ruby?
Q17
Which method is used to split a string into substrings based on a regular expression in Ruby?
Q18
Which metacharacter is used to specify grouping in a regular expression in Ruby?
Q19
Which metacharacter is used to specify the beginning of a line in a regular expression in Ruby?
Q20
What does the (?<!...) construct represent in a regular expression in Ruby?
Q21
What does the & operator do when used with a proc in Ruby?
Q22
How do you define a lambda in Ruby?
Q23
What is a lambda in Ruby?
Q24
What does the \w character class represent in a regular expression in Ruby?
Q25
What is the purpose of the \G anchor in a regular expression in Ruby?