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

A. readdir()
B. opendir()
C. scandir()
D. closedir()


Answer: C

Computer Science & Information Technology

You might also like to view...

If grade has the value of 60, what will the following code display?

if ( grade >= 60 ) cout << "Passed"; a. nothing. b. 60 c. Passed d. cout << "Passed";

Computer Science & Information Technology

The reason we don’t consider nodes that have equal values in a binary search tree is because:

A. the nodes often contain struct objects of information B. it would be impossible to search for two or more values that are the same C. we need to be able to search for a node, so it makes sense to use keys D. it would be impossible to provide the elements of the nodes in order

Computer Science & Information Technology

Sections of most commercial Web sites are off-limits except to subscribers and registered customers and have a(n) ____ Web page that users must go through to get to the off-limits area.

A. password-protected B. protected C. unprotected-entry D. password key

Computer Science & Information Technology

[This question is for UNIX/Linux users.] Use function fork to spawn a child and let the child exit without leaving an entry in the process table.

What will be an ideal response?

Computer Science & Information Technology