Sample Exam 1
Sample Exam 1
Sample Exam 1
SECTION A
Attempt all multiple choice questions on the mark sense sheet provided. Each question is worth 1
mark. Each of the questions has four alternative answers. Choose only one (1) that best answers
the question. No penalty is given to wrong attempts.
QUESTION 1
(a) node
(b) host
(c) site
(d) resource
QUESTION 2
Which of the following routing schemes cannot adapt to link failures or load changes?
QUESTION 3
Which of the following connection strategies involves breaking up a message into a number of
packets that must be reassembled upon arrival?
QUESTION 4
Which one of the following explains the sequential file access method?
cont/...
2
QUESTION 5
Which file is a sequence of bytes organized into blocks understandable by the system’s linker?
QUESTION 6
QUESTION 7
QUESTION 8
cont/...
3
QUESTION 9
A(n) file is a series of code sections that the loader can bring into memory and execute.
(a) text
(b) source
(c) object
(d) executable
QUESTION 10
In an environment where several processes may open the same file at the same time, .
(a) the operating system typically uses only one internal table to keep track of open files
(b) the operating system typically uses two internal tables called the system-wide and per-
disk tables to keep track of open files
(c) the operating system typically uses three internal tables called the system-wide, per-disk,
and per-partition tables to keep track of open files
(d) the operating system typically uses two internal tables called the system-wide and per-
process tables to keep track of open files
QUESTION 11
A shared lock .
QUESTION 12
An exclusive lock .
cont/...
4
QUESTION 13
QUESTION 14
QUESTION 15
QUESTION 16
cont/...
5
QUESTION 17
(a) Name
(b) Size
(c) Resolution
(d) Protection
QUESTION 18
QUESTION 19
(a) can contain information needed by the system to boot an operating system from that
partition
(b) is a directory structure used to organize the files
(c) contains many of the file’s details, including file permissions, ownership, size, and loca-
tion of the data blocks
(d) contains information such as the number of blocks in a partition, size of the blocks, and
free-block and FCB count and pointers
QUESTION 20
Which of the following permission values indicates the public access is “-/-/Execute”?
(a) 0761
(b) 0777
(c) 0555
(d) 0007
cont/...
6
SECTION B
QUESTION 21
Consider the following set of processes, with the length of the CPU burst given in milliseconds:
The processes are assumed to have arrived in the order P1 , P2 , P3 , P4 , P5 , all at time 0.
(a) Draw a Gantt chart to illustrate the execution of these processes using each of the following
CPU scheduling algorithms:
(b) What is the turnaround time for each process in FCFS in Part (a)?
(1 mark)
(c) What is the waiting time for each process in SJF in Part (a)?
(1 mark)
(d) What is the response time for each process in RR (quantum = 2) in Part (a)?
(1 mark)
cont/...
7
QUESTION 22
(a) Given five memory partitions of 200 KB, 500 KB, 100 KB, 300 KB, and 600 KB (in
order), how would each of the first-fit, best-fit, and worst-fit algorithms place processes
of 190 KB, 110 KB, 450 KB, and 400 KB (in order)?
(3 marks)
(b) Consider the following segment table:
What are the physical addresses for the following logical addresses?
(i) 0, 200
(ii) 1, 10
(iii) 2, 50
(iv) 3, 400
(2 marks)
cont/...
8
QUESTION 23
Considering the following snapshot of a system, where there are five(5) processes p0 , p1 , · · ·, p4 ,
which share four(4) types of resources A, B, C, and D. Allocation is a 5 × 4 matrix defining
the number of resources of each type currently allocated to each process, M ax is a 5 × 4 matrix
defining the maximum demand of each process, and Available is vector indicating the number
of resources of each type.
(c) If a request from process P4 arrives for (0, 0, 2, 0), can the request be granted immediately?
Why? (3 marks)
END OF PAPER