Computer Knowledge

Operating Systems

1,344 Questions

Test your computer knowledge with these questions on operating systems. The content covers various platforms including Unix, Linux, Windows, Android, and Macintosh. These questions are commonly asked in the computer knowledge sections of banking and government exams.

Unix emulatorsLinux distributionsAndroid software stackMacintosh operating systemsWindows OS versionsSymbian OS history

Operating Systems Questions

Multiple choice technology
  1. CTRL+C

  2. CTRL+Z

  3. CTRL+B

  4. CTRL+P

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

CTRL+B moves the cursor backward one character in readline editing mode (used by bash and other Unix shells). This follows emacs-style keyboard shortcuts where B stands for 'backwards.' CTRL+C interrupts, CTRL+Z suspends, and CTRL+P moves to the previous history command.

Multiple choice technology
  1. CTRL+W

  2. CTRL+B

  3. CTRL+C

  4. CTRL+D

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

CTRL+W deletes the word before the cursor in Unix shells - so in 'mv file1 file2', if your cursor is after 'file2', it removes 'file2'. CTRL+C sends interrupt signal, CTRL+B moves cursor back one character, CTRL+D sends end-of-transmission or logout.

Multiple choice technology operating systems
  1. filter

  2. kernel

  3. inode

  4. Shell

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

An inode (index node) is the fundamental data structure in UNIX filesystems that stores file metadata like permissions, ownership, size, location data, and timestamps. Each file has a unique inode number. The kernel and shell are not data structures, and filter is a different concept entirely.

Multiple choice technology
  1. tar lot_of_thing.tar.Z | decomp

  2. zcat lot_of_thing.tar.Z | tar xvf -

  3. tar xvf lot_of_thing.tar.Z

  4. tar lot_of_thing

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The command 'zcat lot_of_thing.tar.Z | tar xvf -' correctly uncompresses the .Z file using zcat and pipes the output to tar for extraction. The hyphen (-) tells tar to read from stdin. Option A pipes in wrong direction, C doesn't handle compression, and D is incomplete.

Multiple choice technology
  1. cat file1.txt file2.txt > new.txt

  2. make new.txt=file1.txt+file2.txt

  3. tail file1.txt | head file2.txt > new.txt

  4. cat file1.txt file2.txt

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The command 'cat file1.txt file2.txt > new.txt' concatenates both files and redirects output to create new.txt. The > operator creates a new file (or overwrites existing). Option B uses invalid syntax, C misuses tail/head, and D only displays to screen without creating file.

Multiple choice technology mainframe
  1. TEST

  2. CHECK

  3. JCLCHK

  4. EJCL ALL

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The CHECK command is widely used in mainframe editors and specific compilers to scan and catch JCL or program code syntax errors without executing the code. While JCLCHK is a CA Broadcom utility, CHECK is the general command interface option designed for standard syntax validation.

Multiple choice technology
  1. while command do list ; done

  2. while command ; do list

  3. while command ; do list ; done;

  4. while command ; do list ; done

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The correct single-line while loop syntax in shell is 'while command ; do list ; done'. The semicolons allow placing the do and done keywords on the same line as commands. Option D has the proper syntax with semicolons in all required positions. Options A and C are missing semicolons, while B is missing 'done'.

Multiple choice technology operating systems
  1. Gnome not Unix

  2. GNU not unix.

  3. gnome

  4. gnometrics

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

GNU is a recursive acronym standing for 'GNU's Not Unix.' The recursive nature (where the acronym contains itself) is a classic hacker joke. It represents a free software operating system project started by Richard Stallman, intended to be a Unix-compatible system that is completely free software.

Multiple choice technology operating systems
  1. lilo

  2. grub

  3. ntloader

  4. booter

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

GRUB (Grand Unified Boot Loader) is the standard boot loader for modern Linux systems, responsible for loading the kernel into memory during system startup. LILO was an older boot loader but has been largely replaced. ntloader is specific to Windows systems, and booter is not a recognized Linux boot loader.

Multiple choice technology operating systems
  1. 4 times to RAM

  2. 3 Times to RAM

  3. 2 times to RAM

  4. RAM size

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A traditional rule of thumb for configuring virtual memory in Linux and UNIX-like systems is to allocate swap space equal to two times the size of physical RAM. While modern systems with high RAM may require less, '2 times RAM' remains the general historical standard.

Multiple choice technology operating systems
  1. yes

  2. no

  3. cant say

  4. dont know

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A separate home partition is optional during Linux installation. The /home directory can simply be a directory within the root partition, containing all user files and configurations. Many distributions successfully install and run without a dedicated home partition.

Multiple choice technology operating systems
  1. lilo

  2. grub

  3. ntloader

  4. booter

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

GRUB (Grand Unified Boot Loader) is the standard boot loader for modern Linux systems, responsible for loading the kernel into memory during system startup. LILO was an older boot loader but has been largely replaced. ntloader is specific to Windows systems, and booter is not a recognized Linux boot loader.

Multiple choice technology operating systems
  1. 4 times to RAM

  2. 3 Times to RAM

  3. 2 times to RAM

  4. RAM size

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Traditional guidelines suggested sizing swap partition at 2 times the RAM size, though modern systems with ample RAM may use less. The 2x rule was a general heuristic for systems with limited memory to ensure adequate swap space for hibernation and memory overflow.