Vidyalelo
Ruby Programming · Q1

File Input Output in Ruby

Programming · Ruby Programming · question 1

Q1

What does File.open() return in Ruby when the file is successfully opened?

A.
Integer representing file descriptor
B.
Array of file contents
C.
Boolean value
D.
File object
Answer

Answer: Option D

Solution

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