Tree structure displays the A. File only B. Directory only C. File and directory name D. None of above

File only
Directory only
File and directory name
None of above

The correct answer is: C. File and directory name.

A tree structure is a way of representing data in a hierarchical manner. It consists of a root node, which has zero or more child nodes. Each child node can have zero or more child nodes, and so on. The root node is the topmost node in the tree, and the leaves of the tree are the nodes that have no child nodes.

In a file system, a tree structure is used to represent the files and directories on a disk. The root node of the tree is the root directory, which contains all of the other directories on the disk. Each directory can contain files and other directories. The files and directories at the bottom of the tree are the leaves of the tree.

The tree structure is a useful way of representing data because it is easy to navigate. To find a file or directory, you start at the root node and follow the branches until you reach the desired node.

Option A is incorrect because a tree structure displays both files and directories. Option B is incorrect because a tree structure displays both files and directories. Option D is incorrect because a tree structure displays both files and directories.