Operating Systems

Practice questions

At start-up, where is the operating system loaded to run?

  1. Into the keyboard
  2. Into the printer
  3. Into the hard disk only
  4. 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

  1. Linux distribution
  2. Compiler program
  3. Search engine site
  4. Printer driver set
Answer and explanation

Answer: A

Ubuntu is a distribution that bundles the Linux kernel with other software.

Which statement is true?

  1. Windows source code is freely editable
  2. Linux is only for phones
  3. Android uses the Linux kernel
  4. 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

  1. Shell
  2. Kernel
  3. Icon
  4. 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?

  1. Microsoft
  2. Google
  3. Linux Foundation
  4. 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

  1. Separate files
  2. Not allowed
  3. Always copies
  4. 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?

  1. 12
  2. 18
  3. 30
  4. 24
Answer and explanation

Answer: D

3 x 8 = 24 bits.

Which file system is mainly used by Windows computers for their hard disks?

  1. ext4
  2. NTFS
  3. APFS
  4. 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?

  1. 128
  2. 64
  3. 256
  4. 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)?

  1. 5000 KB
  2. 512 KB
  3. 5120 KB
  4. 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?

  1. Renames notes.txt to study.txt
  2. Deletes study.txt
  3. Moves it to another drive
  4. 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?

  1. touch
  2. cat
  3. cp
  4. 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?

  1. /home/asha/work
  2. /work
  3. /home
  4. /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?

  1. md
  2. del
  3. dir
  4. cls
Answer and explanation

Answer: D

cls clears the screen; the Linux equivalent is clear.

Which Linux command lists the files in a folder?

  1. pwd
  2. cat
  3. ls
  4. 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?

  1. 2 KB
  2. 3 KB
  3. 1 KB
  4. 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?

  1. 3 ms
  2. 6 ms
  3. 9 ms
  4. 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?

  1. 8
  2. 16
  3. 32
  4. 12
Answer and explanation

Answer: B

128 / 8 = 16 frames.

A 30 KB program uses 4 KB pages. How many pages does it need?

  1. 7
  2. 6
  3. 9
  4. 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?

  1. 300 ms
  2. 270 ms
  3. 30 ms
  4. 330 ms
Answer and explanation

Answer: A

10 x 30 = 300 ms.

Privacy · Terms · Refunds · Delivery