Exam 5: Working With Files and Directories

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The syntax for the copy_file() function is copy_file(source, destination).

(True/False)
4.7/5
(36)

The three levels of access for files and directories are User, Group, and Other.

(True/False)
4.9/5
(32)

A(n) ____________________ is assumed to have only printable characters and a small set of control or formatting characters.

(Short Answer)
4.8/5
(41)

With the exception of the ____ function, each time you call a function that iterates through a text file, the file pointer automatically moves to the next line in the text file.

(Multiple Choice)
4.9/5
(29)

PHP provides the ____________________ function for changing the permissions of a file within PHP.

(Short Answer)
4.8/5
(36)

The file_exists() function determines whether a file or directory exists.

(True/False)
4.7/5
(39)

The owner of a resource, such as a file or directory, can usually grant ____________________ to access the resource.

(Short Answer)
4.9/5
(36)

Adding a "b" to the end of the method argument of the fopen() function forces the file to be opened in ____________________ mode.

(Short Answer)
4.9/5
(36)

The scandir() function sorts the returned entries in the order in which they are stored by the operating system.

(True/False)
4.9/5
(31)

The ____ function returns an indexed array containing the names of files and directories in the specified directory.

(Multiple Choice)
4.8/5
(38)

When a form is posted, information from the uploaded file is stored in the ____ autoglobal array.

(Multiple Choice)
4.8/5
(34)

The ____________________ function returns a value of TRUE if it successfully locks a file and FALSE if it fails.

(Short Answer)
4.8/5
(33)

The ____ function only works when there are "." and ".." are the only two entries present in a directory.

(Multiple Choice)
4.9/5
(49)

On a Macintosh platform, you append the ____ carriage return escape sequence to the end of the line.

(Multiple Choice)
4.8/5
(41)

What function returns a line that ends with a specified delimiter and moves the file pointer to the next line?

(Multiple Choice)
4.9/5
(38)

Using a value of ____ for the mode argument of the fopen() function opens the specified file for reading and writing and places the file pointer at the end of the file.

(Multiple Choice)
4.7/5
(35)

The three levels of permissions for files and directories are Read, Write, and Delete.

(True/False)
5.0/5
(38)

The ____________________ function is an alias for the fwrite() function.

(Short Answer)
4.7/5
(40)

The directory pointer is a way of keeping track of where you are in a directory.

(True/False)
4.8/5
(38)

Some operating systems always list two directory entries named "." and "..", which refer to the current directory and the directory that contains the current directory.

(True/False)
4.9/5
(33)
Showing 61 - 80 of 84
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)