Exam 5: Working With Files and Directories

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

The ____ function writes a text string and creates the file if it does not exist.

(Multiple Choice)
4.8/5
(39)

The ____________________ function can be used to return the names of the entries in the directory.

(Short Answer)
4.8/5
(38)

PHP recognizes two types of files: binary and text.

(True/False)
4.9/5
(41)

You can use the fwrite() function to incrementally write data to a text file.

(True/False)
4.8/5
(29)

PHP provides the chper() function for changing the permission of a file from within PHP.

(True/False)
4.9/5
(35)

The ____ function reads the contents of a text file that stores each individual line as an element of an indexed array.

(Multiple Choice)
4.8/5
(41)

When downloading a file with PHP, you must provide the appropriate XHTML ____________________ to tell the client Web browser that a response contains more than just a Web page.

(Short Answer)
4.9/5
(27)

Before you can use the unlink() or rmdir() functions, you should use the ____________________ function to determine if the file or directory exists.

(Short Answer)
4.9/5
(33)

You can use the delete() function to delete files.

(True/False)
4.9/5
(41)

When you are finished working with a file stream, you use the ____ function to ensure that the file does not keep taking up space in your computer's memory.

(Multiple Choice)
4.9/5
(39)

The ____________________ function reads the file and directory names from an open directory.

(Short Answer)
4.8/5
(47)

Use the unlink() function to ____________________ files.

(Short Answer)
4.9/5
(36)

What function returns a value of true when the file pointer reaches the end of the file?

(Multiple Choice)
4.8/5
(24)

The ____ constant instructs PHP to append data to any existing contents in a specified filename instead of overwriting it.

(Multiple Choice)
4.9/5
(39)

The second digit in the file permission code assigns permissions to the ____.

(Multiple Choice)
4.7/5
(37)

An input field of ____________________ within a form presents the user with a file selection control.

(Short Answer)
4.8/5
(32)

When reading, a ____________________ is defined as a string of characters ending with the end-of-line escape sequence or the end of the file.

(Short Answer)
4.7/5
(37)

The PHP ____________________ function will read a file from a disk and send it directly to the Web browser.

(Short Answer)
4.8/5
(37)

Every time you use the ____ function, the file pointer moves to the next character in the file.

(Multiple Choice)
4.9/5
(42)

To prevent multiple users from modifying a file simultaneously, you need to use the file_lock() function.

(True/False)
4.7/5
(32)
Showing 41 - 60 of 84
close modal

Filters

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