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