Exam 9: File and Folder Administration
Exam 1: Ruby Basics45 Questions
Exam 2: Interacting With Ruby55 Questions
Exam 3: Working With Strings, Objects, and Variables50 Questions
Exam 4: Implementing Conditional Logic49 Questions
Exam 5: Working With Loops50 Questions
Exam 6: Working With Collections of Data46 Questions
Exam 7: Working With Regular Expressions50 Questions
Exam 8: Object-Oriented Programming50 Questions
Exam 9: File and Folder Administration49 Questions
Exam 10: Debugging50 Questions
Exam 11: Ruby on Rails Web Development51 Questions
Select questions type
The Dir class's size method returns a count of the specified file's size in bytes.
(True/False)
4.9/5
(34)
One limitation within Ruby programming is the inability to redirect STDIN and STDOUT .
(True/False)
4.7/5
(39)
If you attempt to delete a file or folder that does not exist, or if you try to delete a folder that is not empty, Ruby will ignore the error and substitute an empty file.
(True/False)
4.9/5
(38)
Which of the mode options opens a file for writing only, overwriting any existing text by placing the pointer at the beginning of the file.
(Multiple Choice)
4.8/5
(39)
Which of the following File class methods can be used to determine if a resource is a folder or something else?
(Multiple Choice)
4.7/5
(35)
The File class also contains a method named file? , which can be used to determine whether a resource is a file or something else.
(True/False)
4.8/5
(37)
Which of the following actions occur if you attempt to delete a file or folder that does not exist?
(Multiple Choice)
4.9/5
(28)
Which of the following is a special variable containing a string that identifies the type of operating system on which a script is executed?
(Multiple Choice)
4.9/5
(27)
Which of the following is the Ruby redirection output operator?
(Multiple Choice)
4.9/5
(37)
RUBY_PLATFORM contains a string that identifies the type of operating system on which a script is executing.
(True/False)
4.7/5
(32)
Which of the following File class methods can be used to determine if a file has any data in it?
(Multiple Choice)
4.7/5
(44)
The operating system, and not Ruby, provides both the > and the redirection operators.
(True/False)
4.8/5
(39)
RUBY_PLATFORM contains a string that identifies the manufacturer of the operating system on which a script is executing.
(True/False)
4.8/5
(30)
When executed on UNIX or Linux, Ruby program file and path data must be specified using the backslash character.
(True/False)
4.8/5
(34)
Which of the following File and Dir methods can be used to delete both files and folders?
(Multiple Choice)
4.8/5
(28)
Which of the following File class methods can be used to determine if a file or folder exists?
(Multiple Choice)
4.8/5
(38)
Which of the mode options opens a file for both reading and writing?
(Multiple Choice)
4.9/5
(36)
To determine if a file has any data in it, you can use the File class's size method.
(True/False)
4.8/5
(33)
By default, a computer sends standard output ( STDOUT ) to the computer's hard drive.
(True/False)
4.8/5
(45)
Showing 21 - 40 of 49
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)