Question 1 of 25
Hints left: 3
Q1
Which method is used to delete a file in Ruby?
Q2
What does the \d character class represent in a regular expression in Ruby?
Q3
Which method is used to check if a file is hidden in Ruby?
Q4
What does the ctime method return in Ruby file I/O?
Q5
Which modifier is used to perform multiline matching in Ruby regular expressions?
Q6
How can you check if a file is readable in Ruby?
Q7
What does the \b anchor represent in a regular expression in Ruby?
Q8
What does the fcntl method do in Ruby file I/O?
Q9
How can you get the absolute path of a file in Ruby?
Q10
Which method is used to retrieve file attributes in Ruby?
Q11
Which metacharacter is used to specify optional characters in a regular expression in Ruby?
Q12
What does the =~ operator do in Ruby when used with regular expressions?
Q13
How do you create a new directory in Ruby?
Q14
What does the truncate method do in Ruby file I/O?
Q15
What is the purpose of the chown method in Ruby file I/O?
Q16
Which method is used to replace occurrences of a pattern in a string with a specified string in Ruby?
Q17
What does the \s character class represent in a regular expression in Ruby?
Q18
What is the purpose of the * quantifier in a regular expression in Ruby?
Q19
What does the ^ anchor represent in a regular expression in Ruby?
Q20
Which method is used to check if a file is executable in Ruby?
Q21
Which method is used to find the first occurrence of a pattern in a string in Ruby?
Q22
What does the binmode method do in Ruby file I/O?
Q23
What does the /\A anchor represent in a regular expression in Ruby?
Q24
What is the purpose of the + quantifier in a regular expression in Ruby?
Q25
Which modifier is used to perform case-insensitive matching in Ruby regular expressions?