Q. 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")
  • (D) File.runnable?("filename")
πŸ’¬ Discuss
βœ… Correct Answer: (C) File.executable?("filename")

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
134
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate