Operating Systems
Practice questions
At start-up, where is the operating system loaded to run?
- Into the keyboard
- Into the printer
- Into the hard disk only
- Into RAM
Answer and explanation
Answer: D
The OS is loaded from storage into RAM when the computer boots, because the CPU works with programs in RAM.
Ubuntu is best described as a
- Linux distribution
- Compiler program
- Search engine site
- Printer driver set
Answer and explanation
Answer: A
Ubuntu is a distribution that bundles the Linux kernel with other software.
Which statement is true?
- Windows source code is freely editable
- Linux is only for phones
- Android uses the Linux kernel
- iOS runs on all Android phones
Answer and explanation
Answer: C
Android is built on the Linux kernel. The other statements are false.
The core part of an operating system that manages hardware is the
- Shell
- Kernel
- Icon
- Desktop
Answer and explanation
Answer: B
The kernel is the core of the OS; the shell is the layer through which users give commands.
Which company makes the macOS operating system?
- Microsoft
- Linux Foundation
- Apple
Answer and explanation
Answer: D
macOS is made by Apple for its own computers.
In Linux, the files Notes.txt and notes.txt in one folder are
- Separate files
- Not allowed
- Always copies
- The same file
Answer and explanation
Answer: A
Linux file names are case-sensitive, so the two names refer to different files.
How many bits are in 3 bytes?
- 12
- 18
- 30
- 24
Answer and explanation
Answer: D
3 x 8 = 24 bits.
Which file system is mainly used by Windows computers for their hard disks?
- ext4
- NTFS
- APFS
- HTML
Answer and explanation
Answer: B
NTFS is the standard Windows file system on hard disks and SSDs.
A 1 GB card is filled with 8 MB photos. About how many photos does it hold?
- 128
- 64
- 256
- 512
Answer and explanation
Answer: A
1 GB = 1024 MB and 1024 / 8 = 128 photos.
How many KB are there in 5 MB (using 1024)?
- 5000 KB
- 512 KB
- 5120 KB
- 1024 KB
Answer and explanation
Answer: C
5 x 1024 = 5120 KB.
What does mv notes.txt study.txt do if both are in the same folder?
- Renames notes.txt to study.txt
- Deletes study.txt
- Moves it to another drive
- Copies notes.txt to study.txt
Answer and explanation
Answer: A
With both names in the same folder, mv simply renames the file. No second copy is created.
Which Linux command displays the contents of a text file on the screen?
- touch
- cat
- cp
- pwd
Answer and explanation
Answer: B
cat prints a text file's contents. The Windows partner is type.
You are in /home/asha/work and type cd .. . Which folder are you in now?
- /home/asha/work
- /work
- /home
- /home/asha
Answer and explanation
Answer: D
Two dots mean the parent folder, so you move from /home/asha/work up to /home/asha.
Which Windows command clears the Command Prompt screen?
- md
- del
- dir
- cls
Answer and explanation
Answer: D
cls clears the screen; the Linux equivalent is clear.
Which Linux command lists the files in a folder?
- pwd
- cat
- ls
- mv
Answer and explanation
Answer: C
ls lists files and folders. Its Windows partner is dir.
A program of 18 KB is loaded into 4 KB pages. How much space is wasted in its last page?
- 2 KB
- 3 KB
- 1 KB
- 4 KB
Answer and explanation
Answer: A
18 / 4 = 4.5, so 5 pages = 20 KB are allocated. Waste = 20 - 18 = 2 KB.
Under FCFS, bursts 3, 6 and 1 arrive together in that order. What is the waiting time of the third process?
- 3 ms
- 6 ms
- 9 ms
- 10 ms
Answer and explanation
Answer: C
It waits for 3 + 6 = 9 ms before it starts.
RAM of 128 KB is divided into frames of 8 KB. How many frames are there?
- 8
- 16
- 32
- 12
Answer and explanation
Answer: B
128 / 8 = 16 frames.
A 30 KB program uses 4 KB pages. How many pages does it need?
- 7
- 6
- 9
- 8
Answer and explanation
Answer: D
30 / 4 = 7.5, rounded up to 8 pages.
Ten processes share the CPU with a time slice of 30 ms each. How long is one full round?
- 300 ms
- 270 ms
- 30 ms
- 330 ms
Answer and explanation
Answer: A
10 x 30 = 300 ms.