Vidyalelo
Ruby Programming · Q26

File Input Output in Ruby

Programming · Ruby Programming · question 26

Q26

Which method is used to check if a file is executable in Ruby?

A.
File.can_execute?("filename")
B.
File.is_executable?("filename")
C.
File.executable?("filename")
Answer
D.
File.runnable?("filename")

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board