Correct Answer: f.chmod(mode) changes the permission mode of f.
Explanation:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Ruby Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Ruby MCQ Questions
Command 1: $ ruby -c Command 2: $ ruby -C dir Which of the following statements regarding these two commands are correct?
colors= ['Red', 'Blue', 'Yellow', 'Green', 'Violet', 'Black'] Which of the given options will print the following output? Red Blue Yellow Green Violet Black
if there are two variables x and y, such that x=10 and y=5, then:
What is the difference between 'redo' and 'retry' statements in Ruby?
The following code snippet has two methods, namely 'method1' and 'method2'. def method1 x = 'This' y = 'is' z = 'test' end puts method1 def method2 x = 'This' y = 'is' z = 'test' return x, y, z end print method2
Ruby code, a = hello world puts a.scan(/(..)(..)/)
A file named 'test' is located at the location '/var/www/ruby/' 1. aFile = File.new('/var/www/ruby/test', 'r') 2. if aFile 3. aFile.syswrite('RUBY Testing') 4. print
What is the purpose of the following hash method in Ruby?
Which of the following statements regarding catch and throw blocks are true?
In the Ruby programming language. 'true‘ is a type of: