Exam 5: Working With Files and Directories
Exam 1: Getting Started With Php83 Questions
Exam 2: Functions and Control Structures83 Questions
Exam 3: Manipulating Strings83 Questions
Exam 4: Handling User Input83 Questions
Exam 5: Working With Files and Directories84 Questions
Exam 6: Manipulating Arrays83 Questions
Exam 7: Working With Databases and Mysql83 Questions
Exam 8: Manipulating Mysql Databases With Php84 Questions
Exam 9: Managing State Information83 Questions
Exam 10: Developing Object-Oriented Php79 Questions
Select questions type
The operational constant of the flock() function that opens the file with an exclusive lock for writing is the ____.
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
A
A handle is a special type of variable that PHP uses to represent a resource, such as a file or directory.
Free
(True/False)
4.9/5
(42)
Correct Answer:
True
The ____________________ function is the preferred method to copying files as it uses less resources on the server.
(Short Answer)
4.9/5
(32)
The move_uploaded_file() function is used to move an uploaded file from its ____________________ location to the permanent destination.
(Short Answer)
4.8/5
(29)
A(n) ____________________ link, which is identified with the is_link() function, is a reference to another file elsewhere on the system, not a file itself.
(Short Answer)
4.9/5
(35)
You can use the opendir() function to return the file and directory names from the open directory.
(True/False)
5.0/5
(38)
Write permission normally implies ____________________ permission as well.
(Short Answer)
4.9/5
(45)
The chdir() function changes to the name of the specified directory.
(True/False)
4.8/5
(28)
You would use the file_put_contents() function to quickly replace the contents of a file or append data to the end of an existing file.
(True/False)
4.8/5
(38)
The move_uploaded_file() function moves the uploaded file from its temporary location to the permanent destination.
(True/False)
4.8/5
(39)
The ____ argument of the fwrite() function allows you to specify the maximum number of bytes that should be written.
(Multiple Choice)
5.0/5
(40)
Two arguments, source and destination, are used with the ____ function.
(Multiple Choice)
4.9/5
(40)
To iterate through the entries in a directory, you open a ____________________ to the directory with the opendir() function.
(Short Answer)
5.0/5
(36)
The fileperms() function allows the user to read the permissions associated with a particular file.
(True/False)
4.7/5
(49)
The scandir() function returns an indexed array containing the names of files and directories in a specified directory.
(True/False)
4.9/5
(49)
One way to move a file in PHP is to copy with file with the copy() function, and then delete the original file with the unlink() function.
(True/False)
4.9/5
(36)
What function returns a line, strips any XHTML tags the line contains, and then moves the file pointer to the next line?
(Multiple Choice)
4.8/5
(25)
Instead of reading a large text file into PHP, you can use the ____ to iterate through a text file.
(Multiple Choice)
4.8/5
(39)
The currently selected record in a directory listing can be accessed using the directory ____________________.
(Short Answer)
4.8/5
(30)
Showing 1 - 20 of 84
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)