Operating Systems – Preliminary Examination Review

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/59

flashcard set

Earn XP

Description and Tags

These 60 question-and-answer flashcards cover key concepts from the Operating Systems preliminary examination, including OS purpose, system components, processes, system calls, memory management, IPC, and mobile OS specifics.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

60 Terms

1
New cards

What is the primary purpose of an operating system?

To act as an intermediary between the user and the hardware.

2
New cards

Which of the following is NOT a component of a computer system: Hardware, Operating System, Internet, Application Programs?

Internet.

3
New cards

In a multi-user environment, the operating system is mainly responsible for what?

Managing shared resources efficiently.

4
New cards

Which of the following is NOT typically considered part of the operating system: Kernel, Application program, System program, Middleware?

Application program.

5
New cards

Which user interface allows users to type commands directly to the computer?

Command-Line Interface (CLI).

6
New cards

Which OS service is responsible for reading and writing files?

File-system manipulation.

7
New cards

The system-call interface is part of which layer?

The operating system kernel.

8
New cards

What is the role of a bootstrap loader?

To start the operating system when power is turned on.

9
New cards

Which of these is NOT typically done through system calls: Create a file, Click a mouse, Allocate memory, Terminate a process?

Click a mouse.

10
New cards

Which programming language is most commonly used to implement operating systems?

C.

11
New cards

Which operating system is based on Mac OS X and used in mobile devices?

iOS.

12
New cards

Android’s architecture is primarily based on what?

Linux.

13
New cards

What interface allows users to interact with the OS using gestures and voice commands?

Graphical User Interface (GUI).

14
New cards

What is a core dump?

A file containing memory information from a failed process.

15
New cards

Which system service allows remote communication between two computers?

Communication service.

16
New cards

Which of the following is considered a system program rather than part of the kernel: File management, Kernel, BIOS, CPU scheduler?

File management.

17
New cards

What is the main function of the linker in an operating system?

To combine object files into a single executable.

18
New cards

Which of these is NOT a type of system call: Process control, File management, Virus scanning, Communication?

Virus scanning.

19
New cards

What interface allows programs to interact with the OS without directly calling system calls?

Application Programming Interface (API).

20
New cards

What does Kernighan’s Law say about debugging?

Debugging is twice as hard as writing the code in the first place.

21
New cards

What is a process?

A program in execution.

22
New cards

Which part of a process contains global variables?

The data section.

23
New cards

What does the stack section of a process contain?

Temporary data such as return addresses.

24
New cards

What triggers the transformation of a program into a process?

Loading the program into memory.

25
New cards

Which state indicates a process is currently being executed by the CPU?

Running.

26
New cards

What is the function of the Process Control Block (PCB)?

It stores all information about a process.

27
New cards

A single program with multiple threads of execution means what?

One process with multiple threads.

28
New cards

What does the process scheduler do?

Selects which process runs next.

29
New cards

The queue where processes wait for an event is called what?

Wait queue.

30
New cards

What is a context switch?

Saving the state of one process and loading the state of another.

31
New cards

In mobile systems, what is a foreground process?

The only process that currently interacts with the user.

32
New cards

Which system call is used to terminate a process?

exit().

33
New cards

What is cascading termination?

A parent process terminating all of its child processes.

34
New cards

In Android, which is the least important process class?

Empty process.

35
New cards

For stability, the Chrome browser uses which architecture?

Multiprocess architecture.

36
New cards

Which of the following is NOT a reason for inter-process communication (IPC): Information sharing, Modularity, Privacy protection, Computation speed-up?

Privacy protection.

37
New cards

What is shared memory in IPC?

Memory shared between processes for communication.

38
New cards

In direct communication, processes must do what?

Know each other’s identity.

39
New cards

What does blocking send imply?

The sender waits until the message is received.

40
New cards

Which buffering strategy does NOT store any messages?

Zero-capacity buffering.

41
New cards

What is the core component of the OS that remains in memory and manages resources?

The kernel.

42
New cards

Name the program that acts as an intermediary between a user and computer hardware.

Operating system.

43
New cards

Which operating system interface uses windows, icons, and menus for interaction?

Graphical User Interface (GUI).

44
New cards

What type of system call is used to create or terminate processes and allocate memory?

Process-control system calls.

45
New cards

What component launches the operating system at system startup?

Bootstrap loader.

46
New cards

What provides software developers with a programming interface to access OS services?

Application Programming Interface (API).

47
New cards

Android applications run on what type of virtual machine?

Dalvik virtual machine.

48
New cards

What file is generated when an application crashes and captures the memory state?

Core dump file.

49
New cards

What mobile operating system is developed by Apple for iPhones and iPads?

iOS.

50
New cards

Which system program combines multiple object files into a single executable?

Linker.

51
New cards

What do we call a program in execution that includes code, data, stack, and heap?

Process.

52
New cards

Which memory section of a process contains global variables?

Data section.

53
New cards

What structure stores all information related to a specific process?

Process Control Block (PCB).

54
New cards

What is the operation called when the CPU switches from one process to another?

Context switch.

55
New cards

In which state is a process waiting to be assigned to a CPU?

Ready state.

56
New cards

Which system call does a process use to terminate itself?

exit().

57
New cards

What hierarchy is formed when a parent process creates child processes?

Process tree.

58
New cards

What is the communication method in which processes explicitly name each other?

Direct communication.

59
New cards

Which queue holds processes waiting for an event such as I/O to occur?

Wait queue.

60
New cards

What is the lightweight unit of execution within a process that allows multiple sequences of programmed instructions?

Thread.