Basics of Operating System Exam Prep
Full explanation, worked examples & memory tricks in the app
Shared by a Veda learner · Generated with Veda AI
Full explanation, worked examples & memory tricks in the app
Every question in the paper gets a full exam-length answer in the app — organised by marks, the way a topper writes it.
Explain FCFS process scheduling algorithm with example.
FCFS schedules processes in the order of their arrival, with the first process to arrive being the first to execute.
The full exam-length answer is in the app.
Explain Shortest Job First process scheduling algorithm with example.
SJF selects the process with the smallest execution time next, minimizing average waiting time.
The full exam-length answer is in the app.
Define Operating system and explain components of computer system.
An operating system manages hardware and software resources in a computer.
The full exam-length answer is in the app.
List different types of operating system. Explain multiprogramming and multitasking operating system in detail.
Types include batch, time-sharing, and real-time; multiprogramming allows multiple processes in memory.
The full exam-length answer is in the app.
Explain mutual exclusion and critical section in detail.
Mutual exclusion ensures that only one process accesses the critical section at a time.
The full exam-length answer is in the app.
Explain Multiprogramming with Fixed (static) partition with figure.
Multiprogramming with fixed partition allows multiple processes to run in fixed memory segments, improving CPU utilization.
The full exam-length answer is in the app.
Enlist all disk scheduling algorithm and explain Elevator algorithm with example.
Disk scheduling algorithms include FCFS, SSTF, SCAN, and C-SCAN; the Elevator algorithm moves the disk arm in one direction servicing requests.
The full exam-length answer is in the app.
Write a shellscript to generate prime numbers from 1 to N where N is any positive integer entered by user.
The shell script checks each number for primality and prints the primes.
The full exam-length answer is in the app.
Explain all disk scheduling algorithms and illustrate with examples.
Disk scheduling algorithms manage the order of disk access requests for efficiency.
The full exam-length answer is in the app.
Explain various deadlock prevention techniques.
Techniques include resource allocation strategies, hold and wait prevention, and preemption.
The full exam-length answer is in the app.
List strategies for dealing with deadlocks and explain any two of them.
Strategies include prevention and avoidance; prevention eliminates one of the necessary conditions.
The full exam-length answer is in the app.
Explain Multiprogramming with Dynamic partition with figure.
Dynamic partitioning allocates memory based on process needs, allowing flexible memory usage.
The full exam-length answer is in the app.
Explain components of Linux operating system/Architecture of Linux OS.
Linux OS architecture consists of the kernel, system libraries, and user space.
The full exam-length answer is in the app.
Explain paging memory management technique.
Paging divides memory into fixed-size pages, allowing non-contiguous allocation and eliminating external fragmentation.
The full exam-length answer is in the app.
Consider the following page reference string with 3 page frames: 10, 17, 1, 12, 1, 12, 3, 2. Find number of page fault using FIFO page replacement algorithm.
Using FIFO, the number of page faults is 6.
The full exam-length answer is in the app.
Explain C-SCAN disk scheduling algorithm.
C-SCAN services requests in a circular manner, moving in one direction and jumping back to the start.
The full exam-length answer is in the app.
Explain Indexed file allocation in detail.
Indexed file allocation uses an index block to keep track of the locations of file blocks.
The full exam-length answer is in the app.
Write a shell script to find factorial of given number.
A shell script can use recursion or loops to calculate factorial.
The full exam-length answer is in the app.
Write a shell script to find maximum of three numbers.
A shell script can use conditional statements to find the maximum.
The full exam-length answer is in the app.
Explain various file operations in detail.
File operations include creation, deletion, reading, writing, and manipulation of file attributes.
The full exam-length answer is in the app.
Explain FCFS algorithm with example of 200 tracks and disk request sequence is 98,183,37,122,14,124,65,67, head pointer starting at 53.Find number of head movement in cylinder.
FCFS processes requests in the order they arrive, calculating total head movements based on the sequence.
The full exam-length answer is in the app.
Explain SCAN algorithm with example of 200 tracks and disk request sequence is 98,183,37,122,14,124,65,67, head pointer starting at 53.Find number of head movement in cylinder.
SCAN services requests in one direction until the end is reached, then reverses direction.
The full exam-length answer is in the app.
Enlist all partition selection strategies and explain it with example.
Partition selection strategies include first fit, best fit, and worst fit, each with different allocation methods.
The full exam-length answer is in the app.
Enlist all disk scheduling algorithm and explain FCFS with example.
Disk scheduling algorithms include FCFS, SSTF, SCAN, and C-SCAN; FCFS serves requests in the order they arrive.
The full exam-length answer is in the app.
Solve the example using first fit and best fit algorithm. Consider multiprogramming with fixed partition having memory partition of 200 KB, 400 KB, 600 KB, 500 KB, 300 KB and 250 KB.
Use first fit and best fit to allocate processes P1, P2, P3, and P4 to the given memory partitions.
The full exam-length answer is in the app.
Write a shellscript to find sum of all individual digits in given 5 digit numbers.
The shell script iterates through each digit of the number and sums them up.
The full exam-length answer is in the app.
Explain multiple programming with fixed size partition. Implement it using example.
Fixed size partitioning divides memory into fixed blocks, allowing multiple processes to run concurrently.
The full exam-length answer is in the app.
Explain multiple programming with dynamic size partition. Implement it using example.
Dynamic size partitioning allocates memory based on process needs, allowing for efficient memory use.
The full exam-length answer is in the app.
Enlist at least 6 file handling commands and explain cmp command with example.
File handling commands include cp, mv, rm, touch, cat, and echo; cmp compares two files byte by byte.
The full exam-length answer is in the app.
Explain process life cycle with diagram.
The process life cycle includes states such as New, Ready, Running, Waiting, and Terminated.
The full exam-length answer is in the app.
Enlist and explain necessary conditions for deadlock to occur.
Necessary conditions include mutual exclusion, hold and wait, no preemption, and circular wait.
The full exam-length answer is in the app.
Differentiate internal and external fragmentation.
Internal fragmentation occurs within allocated memory blocks, while external fragmentation occurs in free memory space.
The full exam-length answer is in the app.
Discuss pros and cons of contiguous memory allocation.
Pros include simplicity and performance; cons include external fragmentation and limited process size.
The full exam-length answer is in the app.
Differentiate Absolute file path and Relative file path.
Absolute path specifies the complete path from the root, while relative path specifies the path relative to the current directory.
The full exam-length answer is in the app.
Explain physical structure of hard disk.
The physical structure includes platters, tracks, sectors, and read/write heads.
The full exam-length answer is in the app.
Explain below LINUX commands: Cat, grep.
Cat displays file content; grep searches for patterns in files.
The full exam-length answer is in the app.
Explain below LINUX commands: head, chmod.
Head displays the first few lines of a file; chmod changes file permissions.
The full exam-length answer is in the app.
Calculate Average turnaround time and average waiting time using First come first serve (FCFS) algorithm. Draw Gantt.
Average turnaround time is calculated based on the Gantt chart of the processes.
The full exam-length answer is in the app.
Explain features of Linux operating system.
Linux features include multitasking, multi-user capabilities, and strong security.
The full exam-length answer is in the app.
Write shell script to read three numbers from user and find maximum value among them.
A shell script can use conditional statements to compare and find the maximum value.
The full exam-length answer is in the app.
What is deadlock? Explain conditions for deadlock to occur.
Deadlock is a situation where two or more processes are unable to proceed because each is waiting for the other.
The full exam-length answer is in the app.
Write shell script to read five numbers from user and print its sum and average.
The script reads numbers, calculates sum and average, and prints the results.
The full exam-length answer is in the app.
Describe logical structure of Disk.
The logical structure of a disk includes tracks, sectors, and cylinders.
The full exam-length answer is in the app.
Enlist all directory related commands and explain ls command with options.
Directory commands include ls, cd, mkdir, rmdir; ls lists directory contents with options like -l for detailed view.
The full exam-length answer is in the app.
Explain GREP command with example.
GREP searches for patterns in files; for example, 'grep 'text' filename' finds 'text' in 'filename'.
The full exam-length answer is in the app.
Explain CHMOD command with example.
CHMOD changes file permissions; for example, 'chmod 755 filename' sets read, write, execute for owner and read, execute for others.
The full exam-length answer is in the app.
Explain address translation in paging.
Address translation in paging maps logical addresses to physical addresses using a page table.
The full exam-length answer is in the app.
List out services of operating system from System point of view.
Services include process management, memory management, file system management, and I/O system management.
The full exam-length answer is in the app.
Differentiate between Windows and Linux operating system.
Windows is proprietary and user-friendly, while Linux is open-source and customizable.
The full exam-length answer is in the app.
Define following terms: i. Process ii. Scheduler iii. Turnaround Time.
i. Process: A program in execution. ii. Scheduler: Component that selects processes for execution. iii. Turnaround Time: Total time taken from submission to completion.
The full exam-length answer is in the app.
Explain medium term scheduler.
The medium term scheduler temporarily removes processes from main memory to reduce the degree of multiprogramming.
The full exam-length answer is in the app.
Define memory management unit.
A memory management unit (MMU) translates virtual addresses to physical addresses.
The full exam-length answer is in the app.
Define demand paging.
Demand paging loads pages into memory only when they are needed, reducing memory usage.
The full exam-length answer is in the app.
Enlist file operations.
File operations include create, read, write, delete, and rename.
The full exam-length answer is in the app.
List out attributes of file.
Attributes include name, type, size, location, and permissions.
The full exam-length answer is in the app.
List out components of LINUX operating system.
Components include the kernel, shell, file system, and utilities.
The full exam-length answer is in the app.
List out features of LINUX operating system.
Features include multitasking, multi-user, portability, and security.
The full exam-length answer is in the app.
Differentiate between preemptive and non-preemptive scheduling algorithm.
Preemptive allows interruption; non-preemptive does not.
The full exam-length answer is in the app.
Give difference between logical address and physical address.
Logical address is generated by the CPU; physical address is the actual location in memory.
The full exam-length answer is in the app.
Define Throughput, Turnaround time and waiting time.
Throughput is the number of processes completed in a time unit; turnaround time is total time taken; waiting time is time spent waiting.
The full exam-length answer is in the app.
The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit — plus Daily Facts and the Arena, every day.