Correct Answer: D d.close closes the directOry stream.
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
Which of the following operators indicate continuation of a statement In Ruby?
range operators in Ruby: Statement X: The two.dot form. '..’. range operator creates a range from start point to end point inclusive. Statement Y: The three-dot form. '...', range operator creates a range from start point to end point exclusive.
Statement 1: When a Ruby program terminates, all running threads are killed, regardless of their states. Statement 2: You can wait for a particular thread to finish by calling that thread's Thread#wait method.
What is the output of the following code in Ruby? puts 'hello world'.sub(/[aeiou]/, '*')
Consider the following Interactive Ruby Shell console quotes. In one of the quotes, => is not the real irb result. Which of the following is that quote?
Ruby MCQs | Topic-wise