Study Guide Q's Flashcards

1
Q

Which of the following describes rotational delay?

A) Time to move the read/write head to the correct track

B) Time for the desired sector to rotate under the read/write head

C) Time to transfer data to the computer once it is under the read/write head

D) Time to spin up the disk to its operational speed

A

B) Time for the desired sector to rotate under the read/write head

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following describes seek time?

A) Time for the desired sector to rotate under the read/write head

B) Time to move the read/write head to the correct track

C) Time to transfer data once the head is in position

D) Time to access data on a solid-state drive

A

B) Time to move the read/write head to the correct track

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You have memory blocks of sizes: 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order). A process requests 250 KB of memory.

Which block would Best Fit choose?

A

300 KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

You have memory blocks of sizes: 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order). A process requests 250 KB of memory.

Which block would Worst Fit choose?

A

600 KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

You have memory blocks of sizes: 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order). A process requests 250 KB of memory.

Which block would First Fit choose?

A

500 KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You have memory blocks of sizes: 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order). A process requests 250 KB of memory.

Which block would Next Fit choose? (Assume the last allocation was made in the 300 KB block)

A

600 KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the primary role of an operating system?

A) To manage the hardware and software resources of the system

B) To act as a bridge between hardware capabilities and user needs

C) To run applications directly without hardware intervention

D) To replace hardware functionality entirely

A

B) To act as a bridge between hardware capabilities and user needs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which feature of the OS allows multiple programs to run simultaneously?

A) Abstraction

B) Multiprogramming

C) Resource Allocation

D) Virtualization

A

B) Multiprogramming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does the OS abstract hardware functionality for users?

A) By giving direct access to hardware

B) By simplifying and hiding the complexity of hardware

C) By requiring applications to handle hardware-level instructions

D) By allowing hardware to run independently of the OS

A

B) By simplifying and hiding the complexity of hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Virtualization in an operating system:

A) Provides direct access to hardware components

B) Creates the illusion of more favorable hardware characteristics

C) Duplicates hardware components for redundancy

D) Runs only one application at a time

A

B) Creates the illusion of more favorable hardware characteristics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which component of the OS is primarily responsible for managing resources?

A) Kernel

B) User Interface

C) File System

D) Device Driver

A

A) Kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a process?

A) A hardware component of the computer

B) A sequence of static instructions

C) A program in execution

D) A component of the OS

A

C) A program in execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following is a characteristic of a thread?

A) Operates independently of processes

B) Does not share memory space with other threads in the same process

C) Is a smaller unit of execution within a process

D) Is managed only at the hardware level

A

C) Is a smaller unit of execution within a process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the Process Control Block (PCB) store?

A) Information about a process, such as its state, memory, and open files

B) Details about all threads in the system

C) The instructions for a process

D) Information about CPU hardware

A

A) Information about a process, such as its state, memory, and open files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In which scheduling algorithm does each process get a fixed time quantum?

A) Shortest Job First (SJF)

B) Priority Scheduling

C) Round Robin (RR)

D) First-Come, First-Served (FCFS)

A

C) Round Robin (RR)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a critical section?

A) A part of the OS that schedules threads

B) A file that controls resource access

C) A section of code that must not be executed by more than one process at a time

D) A memory area shared by multiple processes

A

C) A section of code that must not be executed by more than one process at a time

17
Q

What is the difference between user-level threads and kernel-level threads?

A) User-level threads are managed by the OS kernel, while kernel-level threads are managed by user applications

B) User-level threads are managed in user space, while kernel-level threads are managed by the OS kernel

C) Kernel-level threads are faster to manage than user-level threads

D) User-level threads require no scheduling mechanism

A

B) User-level threads are managed in user space, while kernel-level threads are managed by the OS kernel

18
Q

What is the purpose of paging in memory management?

A) To allocate memory in fixed-size blocks

B) To divide programs into logical segments

C) To map virtual memory pages to physical frames

D) To allocate entire memory blocks to processes

A

C) To map virtual memory pages to physical frames

19
Q

What is internal fragmentation?

A) Unused memory outside allocated regions

B) Unused memory within allocated blocks

C) Wasted memory due to segmentation

D) Wasted memory from page tables

A

B) Unused memory within allocated blocks

20
Q

What is the role of the Translation Lookaside Buffer (TLB)?

A) Manages all memory allocations

B) Caches recent address translations for faster access

C) Handles interrupts during memory access

D) Prevents segmentation faults

A

B) Caches recent address translations for faster access

21
Q

Which memory management technique combines segmentation and paging?

A) Virtual Memory

B) Hybrid Memory Management

C) Relocation

D) Cache Memory

A

B) Hybrid Memory Management

22
Q

What is external fragmentation?

A) Unused memory between allocated memory blocks

B) Unused memory within allocated blocks

C) Memory waste caused by paging

D) Memory waste from TLB misses

A

A) Unused memory between allocated memory blocks

23
Q

Which RAID level provides no redundancy but increases performance?

A) RAID 0

B) RAID 1

C) RAID 5

D) RAID 6

A

A) RAID 0

24
Q

Which RAID level duplicates data on two disks for fault tolerance?

A) RAID 0

B) RAID 1

C) RAID 5

D) RAID 6

A

B) RAID 1

25
Q

Which RAID level can recover from a single disk failure using distributed parity?

A) RAID 0

B) RAID 1

C) RAID 5

D) RAID 6

A

C) RAID 5

26
Q

What is Logical Block Addressing (LBA)?

A) A method of addressing storage blocks independently of physical details

B) A mechanism to map virtual addresses to physical memory

C) A type of RAID implementation

D) A file organization method

A

A) A method of addressing storage blocks independently of physical details

27
Q

Which disk scheduling algorithm services the request closest to the current head position?

A) First-Come, First-Served (FCFS)

B) Shortest Seek Time First (SSTF)

C) Round Robin (RR)

D) Circular SCAN (C-SCAN)

A

B) Shortest Seek Time First (SSTF)

28
Q

What is the main purpose of mounting a file system?

A) To make the file system accessible to the operating system

B) To format the disk for new file storage

C) To back up the disk’s contents

D) To create a directory structure

A

A) To make the file system accessible to the operating system

29
Q

What is a Trojan Horse?

A) A malicious program disguised as a legitimate one

B) A vulnerability in the operating system

C) A tool for debugging applications

D) A protocol for secure communication

A

A) A malicious program disguised as a legitimate one

30
Q

What is the principle of least privilege?

A) Granting users full access to resources

B) Granting users only the minimum access necessary for their tasks

C) Restricting all resource access

D) Allowing unrestricted resource sharing between processes

A

B) Granting users only the minimum access necessary for their tasks

31
Q

What is the main purpose of a digital signature?

A) Encrypting data for secure storage

B) Verifying the authenticity and integrity of a message

C) Hashing data for quick access

D) Authenticating user credentials

A

B) Verifying the authenticity and integrity of a message

32
Q

Which technique prevents processes from accessing unauthorized resources?

A) Cryptography

B) Trojan Protection

C) Access Control

D) Buffer Overflow Prevention

A

C) Access Control

33
Q

What is phishing?

A) A type of encryption

B) A process scheduling algorithm

C) An attack that deceives users into providing sensitive information

D) A method for detecting malware

A

C) An attack that deceives users into providing sensitive information

34
Q

What is a buffer overflow attack?

A) An OS scheduling issue

B) A security vulnerability caused by writing more data than a buffer can hold

C) A type of RAID failure

D) A synchronization problem

A

B) A security vulnerability caused by writing more data than a buffer can hold

35
Q

What is the main advantage of multithreading?

A) Reduces CPU scheduling overhead

B) Allows multiple sequences of execution within a single process

C) Prevents deadlock between processes

D) Simplifies memory management

A

B) Allows multiple sequences of execution within a single process

36
Q

What is a deadlock?

A) A situation where processes are stuck waiting for resources held by each other

B) A scheduling algorithm for real-time systems

C) A memory management technique

D) A synchronization mechanism

A

A) A situation where processes are stuck waiting for resources held by each other

37
Q

Which algorithm is used to avoid deadlock by ensuring safe resource allocation?

A) Banker’s Algorithm

B) Shortest Job First

C) First-Come, First-Served

D) Priority Scheduling

A

A) Banker’s Algorithm

38
Q

What is a semaphore?

A) A memory management technique

B) A synchronization primitive used to control access to shared resources

C) A paging mechanism

D) A process state

A

B) A synchronization primitive used to control access to shared resources

39
Q
A