You are on page 1of 14

CONFIDENTIAL CS/NOV 2020/CSC204

UNIVERSITI TEKNOLOGI MARA


TEST

COURSE : PRACTICAL APPROACH OF OPERATING SYSTEMS


COURSE CODE : CSC204
DATE : 26 NOV 2020
TIME : 8.00 – 10.30PM (2 ½ HOURS)

INSTRUCTIONS TO CANDIDATES
1. This test consists of TWO (2) parts: PART A and PART B.
2. Answer ALL questions in this question paper.
3. When you save this file, please include your name as part of the file name. Export to PDF file
and upload it at Google Classroom.

STUDENT ID 2019279758

STUDENT NAME MUHAMAD LUQMAN BIN MOHAMED ZAKI

GROUP CS1103A

Question Full Mark Mark Scored

Part A 20

Part B: Q1 10

Part B: Q2 10

Part B: Q3 10

Part B: Q4 10

Part B: Q5 10

Total Marks 70

DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 2 CS/NOV 2020/CSC204

PART A (20 marks)

1. Which of the following is NOT a benefit of microkernel architecture?

a) Modular design of the microkernel architecture helps to enhance efficiency


and performance.
b) The microkernel architecture supports distributed operating system and object
oriented operating system.
c) Microkernel architecture is flexible because features can be subtracted to
produce a smaller and more efficient architecture.
d) Microkernel architecture makes the operating systems become more
extensible.

Answer = d

2. The following statements regarding Multithreading operating system are TRUE


EXCEPT:

a) Multithreading operating system requires programs to be run on a computer


with multiple CPUs
b) Several threads running at one time that have same or different priorities
c) Thread of execution is the smallest unit of processing that can be scheduled
by the operating system
d) On a multiprocessor system different threads can be run on different
processors

Answer = a

3. MBR is a small 512 bytes partition which is at the first physical sector of the
hard disk. How many primary partition contains in MBR ?

a) 2 primary 2 extended
b) 3 primary partition
c) 4 primary partition
d) 2 primary partition

answer = c

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 3 CS/NOV 2020/CSC204

4. MBR contains a small program known as ______________ which is responsible for


booting into any OSes.

a) partition table
b) bootstrap program
c) extended partition
d) ntLoader program
Answer = b

5. Which of the following operating system used a command line interpreter?

i. Windows
ii. MS DOS
iii. LINUX
iv. UNIX

a) i only
b) i and ii only
c) ii and iii only
d) All of the above
Answer = d

6. The command line interpreter is also known as:

a) Shell
b) Kernel
c) Translator
d) Line driven
Answer = a

7. Which of the following is TRUE about shell in Linux?

a) The shell is the user interface with the Linux system


b) The shell provide security to files
c) The shell is the file manager
d) The shell acts as mediator between software and hardware
answer = a

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 4 CS/NOV 2020/CSC204

8. NLI accept inputs from the users in the form of __________


a) text
b) image
c) speech
d) none of these
answer = a

9. Computer interface that is used by DOS is called __________

a) Menu driven interface


b) Command driven interface
c) Design interface
d) System interface

answer = b

1 Which of the following is NOT a file attribute?


0.
a) Size
b) Name
c) Location
d) Archive

answer = c

1 Below are types of file allocation EXCEPT


1.
a) Contiguous allocation
b) Indexed allocation
c) Random allocation
d) Linked allocation

answer = c

1 Which one of the following file systems does MS DOS commonly uses?
2.
a) FAT16
b) FAT64
c) FAT32
d) NTFS

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 5 CS/NOV 2020/CSC204

answer = a

1 The following are the basic operations of directory EXCEPT


3.
a) Truncate
b) Delete
c) Create
d) Search
Answer = a

1 “The address of the last byte read. It is used by the File Manager to access records in
4. secondary storage and must be updated every time a record is accessed”.

This statement refers to ______

a) Email Address
b) Access Control Address (ACA)
c) IP Address
d) Current Byte Address (CBA)

answer = c

1 The permission granted for command CHMOD 741 of a filename CSC204.TXT is


5. __________.

a) – rwx r-- --x


a) - rwx rw- --x
b) - rwx r-x -wx
c) – r-x r-- -w-
Answer = c

1 Following are the functionalities of an I/O Device Manager EXCEPT


6.
a) Update drivers
b) Identify installed port
c) Change peripheral I/O settings
d) Check for viruses
Answer = b

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 6 CS/NOV 2020/CSC204

1 Choose the correct steps of data movement from an application to a device?


7
. a) Application -> Operating system -> Device driver -> Device controller ->
Device
b) Application -> Operating system -> Device controller -> Device Driver ->
Device
c) Application -> Device controller -> Operating system -> Device -> Device
controller
d) Device driver -> Application -> Operating system -> Device controller ->
Device

Answer = c

1 Device Driver API (Application Programming Interfaces) provides the interaction


8. between an application and a connected device through a method known as _______

a)Device Controller
b)System Call
c) Memory
d)System buffer

Answer = d

1 Which of the following is NOT a responsibility of the Device Manager?


9.
a) Maintains the information in the device status table
b) Loads the register within the device controller
c) Deallocates the device
d) Chooses the most efficient way to allocate all the system's device
answer = c

2 What is the function of an operating system?


0.
a) Manages computer’s resources very efficiently
b) Takes care of scheduling jobs for execution
c) Manages the flow of data and instructions
d) All the above
answer = a

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 7 CS/NOV 2020/CSC204

PART B (50 marks)

QUESTION 1 (10 marks)

a) What is the relationship between operating systems and computer hardware?


- Operating system helps to make computer hardware available to the
application programs. Without Operating System we cannot access computer
hardware.
(2 marks)

b) What inconveniences that a user might face when interacting with a computer
system that has no operating system?
- Operating system is a required component of the computer system. Thus without
operating system execution of user program or to solve user problems is extremely
difficult.
(3 marks)

c) How does Master Boot Record (MBR) work during the booting process? Name
ONE (1) example of Master Boot Code used in Windows operating system.
- The master boot record is the small bit of computer code that the BIOS loads
and executes to start the boot process. This code, when fully executed,
transfers control to the boot program stored on the boot (active) partition to load
the operating system. For example, examining code created by a Microsoft
Operating System.
(3 marks)

d) Explain what is a bootstrap program and state where bootstrap is stored.


- A bootstrap program is the initial program that the computer runs when it is
powered up or rebooted. Typically, it is stored in read-only memory (ROM) or

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 8 CS/NOV 2020/CSC204

electrically erasable programmable read-only memory (EEPROM), known by


the general term firmware, within the computer hardware.
(2 marks)

QUESTION 2 (10 marks)

Diagram 1 below shows the partitions of a disk. The sector 0 is labelled as X.

X
Diagram 1

a) What is X? Why is X important during operating system booting?


-X is master boot record (MBR). This code, when fully executed, transfers
control to the boot program stored on the boot (active) partition to load the
operating system.
(2 marks)

b) Anne has upgraded her laptop from Windows 8 to Windows 10 Operating


System. During warm booting, the Windows system doesn’t boot successfully
as usual and an error message has popped up as shown in Diagram 2.

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 9 CS/NOV 2020/CSC204

Diagram 2

i. Briefly explain the steps of Windows booting process.


1.Power-on self test (POST) phase.
2.Boot loader phase.
3.Detect and configure hardware phase.
4.Kernel loading phase.
5.Logon phase.
(4 marks)

ii. What is NTLDR? Give suggestion or recommendation on how to solve the


problem shown in Diagram 2 above.
- NTLDR (abbreviation of NT loader) is the boot loader for all releases of
Windows NT operating system up to and including Windows XP and Windows
Server 2003. NTLDR is typically run from the primary hard disk drive, but it
can also run from portable storage devices such as a CD-ROM, USB flash
drive, or floppy disk. My suggestion to solve the problem is Open Control
Panel, run Windows Update and ensure that the PC is fully up to date. If
updates fail, run the Windows Update Troubleshooter
(4 marks)

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 10 CS/NOV 2020/CSC204

QUESTION 3 (10 marks)

a) Briefly explain how does User Interface (UI) enable users to interact with the
software application and hardware devices. Give any appropriate example in
your explanation.
- allow effective operation and control of the machine from the human end,
whilst the machine simultaneously feeds back information that aids the
operators' decision-making process. Examples of this broad concept of user
interfaces include the interactive aspects of computer operating systems, hand
tools, heavy machinery operator controls, and process controls
(4 marks)

b) Please refer to Diagram 3 below to answer the following questions:

Diagram 3

i. Diagram 3 is an image that will pop up when user clicks Save As menu. This
image is called a __context menu____________.
(1 mark)

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 11 CS/NOV 2020/CSC204

ii. What is the purpose of the image in Diagram 3 in referring to the operating
system user interface?
- A context menu offers a limited set of choices that are available in the
current state, or context, of the operating system or application to which the
menu belongs. Usually the available choices are actions related to the
selected object. From a technical point of view, such a context menu is a
graphical control element.
(2 marks)

c) Please refer to Diagram 4 below to answer the following questions:

Diagram 4

i. Diagram 4 is an example of __menu-driven _________________ user


interface.
(1 mark)

ii. Give TWO (2) advantages of using this operating system user interface.
1. Guide user in the better way
2. The user does not need to remember a lot of commands
(2 marks)

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 12 CS/NOV 2020/CSC204

QUESTION 4 (10 marks)

a) List and explain any THREE (3) operations that can be performed on a file.
1.Creating a file: There are two steps necessary for creating a file. First,
space in the file system must be found for the file. We discuss how to allocate
space for the file. Second, an entry for the new file must be made in the
directory.

2.Writing a file: To write to a file, you make a system call specify about both
the name of the file along with the information to be written to the file.

3.Reading a file: To read from a file, you use a system call which specifies the
name of the file and where within memory the next block of the file should be
placed.
(6 marks)

b) When a file is in used, information is read and accessed into computer


memory using several ways of access method. Some systems provide only
one access method for files. Other systems, such as those of IBM, may
support many access methods. Explain in detail TWO (2) most common file
access methods.
1.Sequential Access –
It is the simplest access method. Information in the file is processed in order,
one record after the other. This mode of access is by far the most common;
for example, editor and compiler usually access the file in this fashion. Read
and write make up the bulk of the operation on a file. A read operation -read
next- read the next position of the file and automatically advance a file pointer,
which keeps track I/O location. Similarly, for the writewrite next append to the
end of the file and advance to the newly written material.

2. Index sequential method –


It is the other method of accessing a file which is built on the top of the
sequential access method. These methods construct an index for the file. The
index, like an index in the back of a book, contains the pointer to the various
blocks. To find a record in the file, we first search the index and then by the

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 13 CS/NOV 2020/CSC204

help of pointer we access the file directly.


(4 marks)

QUESTION 5 (10 marks)

a) What is the difference between device controller and device driver?


- The main difference between the device driver and device controller is that a
device driver is a software program whereas device controller is a hardware
unit. Device driver is a program via which the operating system communicates
with the device controller.

(4 marks)

b) The device controller has THREE (3) types of registers in order to function
with the device driver. Determine the name and task of each register.
1.Interface-
is a shared boundary across which two or more separate components of a
computer system exchange information. The exchange can be between
software, computer hardware, peripheral devices, humans, and combinations
of these.
2.Hardware-
Computer hardware includes the physical parts of a computer, such as the
case, central processing unit (CPU), monitor, mouse, keyboard, computer data
storage, graphics card, sound card, speakers and motherboard.
3.Operating system (OS)-
An operating system (OS) is system software that manages computer
hardware, software resources, and provides common services for computer
programs.
(6 marks)

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL


CONFIDENTIAL 14 CS/NOV 2020/CSC204

END OF QUESTION PAPER

© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL

You might also like