Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Chapter 11: File Systems and Directories

Total questions: 33

Worksheet time: 31mins

Name
Class
Date
1.

A text file stores binary data that is organized into groups of 8 or 16 bits that are interpreted as characters.

a)

True

b)

False

2.

A program written in a high-level language is stored in a text file that is also called a source file.

a)

True

b)

False

3.

The type of a file determines which kinds of operations can be performed on it.

a)

True

b)

False

4.

The current file pointer indicates the end of a file.

a)

True

b)

False

5.

Sequential access and direct access take the same amount of time to retrieve data.

a)

True

b)

False

6.

Some operating systems maintain a separate read pointer and write pointer for a file.

a)

True

b)

False

7.

UNIX file permissions allow a group of users to access a file in various ways.

a)

True

b)

False

8.

In most operating systems, a directory is represented as a file.

a)

True

b)

False

9.

Two files in a directory system can have the same name if they are in different directories.

a)

True

b)

False

10.

A relative path is relative to the root of the directory hierarchy.

a)

True

b)

False

11.

An absolute path and a relative path will always be the same length.

a)

False

b)

True

12.

A operating system is responsible for managing the access to a disk drive.

a)

False

b)

True

13.

The seek time is the amount of time it takes for the heads of a disk to reach a particular cylinder.

a)

True

b)

False

14.

The shortest-seek-time-first disk scheduling algorithm moves the heads the minimum amount it can to satisfy a pending request.

a)

False

b)

True

15.

The first-come, first-served disk scheduling algorithm moves the heads the minimum amount it can to satisfy a pending request.

a)

False

b)

True

16.

Match the file extension with the appropriate file

a)

Audio File

1.

mp3, au, and wav

b)

Image File

2.

gif, tiff, and jpg

c)

Program Source File

3.

java, c, and cpp

d)

Word Processing File

4.

doc and wp3

e)

Text Data File

5.

txt

17.

Match the symbol with its use.

a)

Symbol used to separate the names in a path Windows environment

1.

\

b)

Symbol used to separate the names in a path in a UNIX environment

2.

/

c)

Symbol used to represent the parent directory in a relative path names.

3.

. .

18.

Match the following

a)

The directory containing another directory

1.

Parent directory

b)

A directory inside another directory

2.

Subdirectory

c)

A program written in high level languages is stored as a text file, which is referred to as

3.

Source file

19.

​ ​ (a)   is the operating system's logical view of the files it manages.

​ (b)   is a named group of file.

A file the contains characters is called​ (c)   .

A file that contains data in a specific format, requiring special interpretation of it bits, is called​ (d)   .

​ (e)   is a named collection of data, used for organizing secondary memory.

Choose from the below words
File system
Directory
text file
binary file
File
20.

The specific kind of information contained in a file, such as a Java program or a Microsoft Word document is called ​ (a)   .

​ (b)   is part of a file name that indicates the file type.

The technique in which data in a file is accessed in a linear fashion is called ​ (c)   .

The technique in which data in a file is accessed directly by specifying logical record numbers is called ​ (d)   .

​ (e)   is a structure showing the nested directory organization of the file system.

Choose from the below words
file type
file extension
sequential file access
direct file access
directory tree
21.

The topmost directory, in which all others are contained is called ​ (a)   .

The currently active subdirectory is called the (b)   .

​ (c)   is a text designation of the location of a file or subdirectory in a file system.

Choose from the below words
root directory
working directory
path
22.

​ (a)   is a path that begins at the root and includes all successive subdirectories.

The act of deciding which outstanding requests for a disk I/O to satisfy first is called ​ (b)   .

​ (c)   is a path that begins at the current working directory.

Choose from the below words
absolute path
disk scheduling
relative path
23.

What operations can a user perform to and with a file?

a)

Create a file

b)

Reposition the current file pointer in a file

c)

All of these

d)

Truncate a file

24.

Match the following

a)

Disk scheduling algorithm moves the heads by the minimum amount necessary to satisfy any pending request.

1.

Shortest-Seek-Time-First Disk Scheduling

b)

Disk scheduling technique where the requests are processed in the order they arrive, without regards to the current position of the heads.

2.

First-Come, First-Served Disk Scheduling

c)

Disk scheduling algorithm where the read/write heads in toward the spindle, then out toward the platter edge, then back towards the spindle, and so forth. Services the requests as appropriate.

3.

SCAN Disk Scheduling

25.

What is the set of corresponding tracks on all platters called? (do not capitalize)

(a)  

26.

In Shortes-Seek-Time-First disk scheduling, lets suppose requests for cylinders continue to build up while existing ones are being satisfied. Also, suppose that new requests are always closer to the current position than an earlier request and those requests are getting processed before the earlier requests. What is this called? (do not capitalize)

(a)  

27.

Supposing the following cylinder requests have been made, in this order: 94, 16, 23, 8, 35. Also, suppose that the read/write heads are currently at cylinder 26. What order will the requests be processed under First-Come, First-Served Disk Scheduling?

a)

94

b)

16

c)

23

d)

8

e)

35

1)
2)
3)
4)
5)
28.

Supposing the following cylinder requests have been made, in this order: 94, 16, 23, 8, 35. Also, suppose that the read/write heads are currently at cylinder 26. What order will the requests be processed under Shortest-Seek-Time-First Disk Scheduling?

a)

23

b)

16

c)

8

d)

35

e)

94

1)
2)
3)
4)
5)
29.

Supposing the following cylinder requests have been made, in this order: 94, 16, 23, 8, 35. Also, suppose that the read/write heads are currently at cylinder 26, moving towards cylinder 1. What order will the requests be processed under SCAN Disk Scheduling?

a)

23

b)

16

c)

8

d)

35

e)

94

1)
2)
3)
4)
5)
30.

​ (a)   is the amount of time it takes for the heads to reach the appropriate cylinder.

​ (b)   is the additional time it takes the platter to rotate in to the proper position so that the data can be read or written

Choose from the below words
Seek time
Latency
31.

The root directory for Microsoft Windows​ is ​ (a)   .

The root directory for UNIX is ​ (b)   .

Choose from the below words
c:\
/
32.

Is the following path an example of an absolute path?

C:\My Documents\letters\applications\vaTech.doc

a)

False

b)

True

33.

Is the following an example of a relative path?

C:\My Documents\letters\applications\vaTech.doc

a)

True

b)

False