Vidyalelo
Ruby Programming · Q16

File Input Output in Ruby

Programming · Ruby Programming · question 16

Q16

What is the purpose of the File.size method in Ruby?

A.
To determine the number of characters in a file
B.
To determine the last modification time of a file
C.
To determine the size of a file in bytes
Answer
D.
To determine the number of lines in a file

Answer: Option C

Solution

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