Kit Library

🎯 Exam Preparation Kit

Basics of Operating System Exam Prep

English 65 leveled MCQs Free

Shared by a Veda learner · Generated with Veda AI

Smart notes

What you'll study, topic by topic

1

Basics of Operating System Exam Prep

Full explanation, worked examples & memory tricks in the app

Solved paper preview

Sample questions with model answers

Every question in the paper gets a full exam-length answer in the app — organised by marks, the way a topper writes it.

7 marks Long answer

Explain FCFS process scheduling algorithm with example.

Show answer outline

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.

7 marks Long answer

Explain Shortest Job First process scheduling algorithm with example.

Show answer outline

SJF selects the process with the smallest execution time next, minimizing average waiting time.

The full exam-length answer is in the app.

7 marks Long answer

Define Operating system and explain components of computer system.

Show answer outline

An operating system manages hardware and software resources in a computer.

The full exam-length answer is in the app.

7 marks Long answer

List different types of operating system. Explain multiprogramming and multitasking operating system in detail.

Show answer outline

Types include batch, time-sharing, and real-time; multiprogramming allows multiple processes in memory.

The full exam-length answer is in the app.

7 marks Long answer

Explain mutual exclusion and critical section in detail.

Show answer outline

Mutual exclusion ensures that only one process accesses the critical section at a time.

The full exam-length answer is in the app.

7 marks Long answer

Explain Multiprogramming with Fixed (static) partition with figure.

Show answer outline

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.

7 marks Long answer

Enlist all disk scheduling algorithm and explain Elevator algorithm with example.

Show answer outline

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.

7 marks Long answer

Write a shellscript to generate prime numbers from 1 to N where N is any positive integer entered by user.

Show answer outline

The shell script checks each number for primality and prints the primes.

The full exam-length answer is in the app.

7 marks Long answer

Explain all disk scheduling algorithms and illustrate with examples.

Show answer outline

Disk scheduling algorithms manage the order of disk access requests for efficiency.

The full exam-length answer is in the app.

7 marks Long answer

Explain various deadlock prevention techniques.

Show answer outline

Techniques include resource allocation strategies, hold and wait prevention, and preemption.

The full exam-length answer is in the app.

7 marks Long answer

List strategies for dealing with deadlocks and explain any two of them.

Show answer outline

Strategies include prevention and avoidance; prevention eliminates one of the necessary conditions.

The full exam-length answer is in the app.

7 marks Long answer

Explain Multiprogramming with Dynamic partition with figure.

Show answer outline

Dynamic partitioning allocates memory based on process needs, allowing flexible memory usage.

The full exam-length answer is in the app.

7 marks Long answer

Explain components of Linux operating system/Architecture of Linux OS.

Show answer outline

Linux OS architecture consists of the kernel, system libraries, and user space.

The full exam-length answer is in the app.

7 marks Long answer

Explain paging memory management technique.

Show answer outline

Paging divides memory into fixed-size pages, allowing non-contiguous allocation and eliminating external fragmentation.

The full exam-length answer is in the app.

7 marks Long answer

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.

Show answer outline

Using FIFO, the number of page faults is 6.

The full exam-length answer is in the app.

7 marks Long answer

Explain C-SCAN disk scheduling algorithm.

Show answer outline

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.

7 marks Long answer

Explain Indexed file allocation in detail.

Show answer outline

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.

7 marks Long answer

Write a shell script to find factorial of given number.

Show answer outline

A shell script can use recursion or loops to calculate factorial.

The full exam-length answer is in the app.

7 marks Long answer

Write a shell script to find maximum of three numbers.

Show answer outline

A shell script can use conditional statements to find the maximum.

The full exam-length answer is in the app.

7 marks Long answer

Explain various file operations in detail.

Show answer outline

File operations include creation, deletion, reading, writing, and manipulation of file attributes.

The full exam-length answer is in the app.

7 marks Long answer

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.

Show answer outline

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.

7 marks Long answer

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.

Show answer outline

SCAN services requests in one direction until the end is reached, then reverses direction.

The full exam-length answer is in the app.

7 marks Long answer

Enlist all partition selection strategies and explain it with example.

Show answer outline

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.

7 marks Long answer

Enlist all disk scheduling algorithm and explain FCFS with example.

Show answer outline

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.

5 marks Long answer

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.

Show answer outline

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.

5 marks Long answer

Write a shellscript to find sum of all individual digits in given 5 digit numbers.

Show answer outline

The shell script iterates through each digit of the number and sums them up.

The full exam-length answer is in the app.

5 marks Long answer

Explain multiple programming with fixed size partition. Implement it using example.

Show answer outline

Fixed size partitioning divides memory into fixed blocks, allowing multiple processes to run concurrently.

The full exam-length answer is in the app.

4 marks Medium answer

Explain multiple programming with dynamic size partition. Implement it using example.

Show answer outline

Dynamic size partitioning allocates memory based on process needs, allowing for efficient memory use.

The full exam-length answer is in the app.

4 marks Medium answer

Enlist at least 6 file handling commands and explain cmp command with example.

Show answer outline

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.

4 marks Medium answer

Explain process life cycle with diagram.

Show answer outline

The process life cycle includes states such as New, Ready, Running, Waiting, and Terminated.

The full exam-length answer is in the app.

4 marks Medium answer

Enlist and explain necessary conditions for deadlock to occur.

Show answer outline

Necessary conditions include mutual exclusion, hold and wait, no preemption, and circular wait.

The full exam-length answer is in the app.

4 marks Medium answer

Differentiate internal and external fragmentation.

Show answer outline

Internal fragmentation occurs within allocated memory blocks, while external fragmentation occurs in free memory space.

The full exam-length answer is in the app.

4 marks Medium answer

Discuss pros and cons of contiguous memory allocation.

Show answer outline

Pros include simplicity and performance; cons include external fragmentation and limited process size.

The full exam-length answer is in the app.

4 marks Medium answer

Differentiate Absolute file path and Relative file path.

Show answer outline

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.

4 marks Medium answer

Explain physical structure of hard disk.

Show answer outline

The physical structure includes platters, tracks, sectors, and read/write heads.

The full exam-length answer is in the app.

4 marks Medium answer

Explain below LINUX commands: Cat, grep.

Show answer outline

Cat displays file content; grep searches for patterns in files.

The full exam-length answer is in the app.

4 marks Medium answer

Explain below LINUX commands: head, chmod.

Show answer outline

Head displays the first few lines of a file; chmod changes file permissions.

The full exam-length answer is in the app.

4 marks Medium answer

Calculate Average turnaround time and average waiting time using First come first serve (FCFS) algorithm. Draw Gantt.

Show answer outline

Average turnaround time is calculated based on the Gantt chart of the processes.

The full exam-length answer is in the app.

4 marks Medium answer

Explain features of Linux operating system.

Show answer outline

Linux features include multitasking, multi-user capabilities, and strong security.

The full exam-length answer is in the app.

4 marks Medium answer

Write shell script to read three numbers from user and find maximum value among them.

Show answer outline

A shell script can use conditional statements to compare and find the maximum value.

The full exam-length answer is in the app.

4 marks Medium answer

What is deadlock? Explain conditions for deadlock to occur.

Show answer outline

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.

4 marks Medium answer

Write shell script to read five numbers from user and print its sum and average.

Show answer outline

The script reads numbers, calculates sum and average, and prints the results.

The full exam-length answer is in the app.

3 marks Medium answer

Describe logical structure of Disk.

Show answer outline

The logical structure of a disk includes tracks, sectors, and cylinders.

The full exam-length answer is in the app.

3 marks Medium answer

Enlist all directory related commands and explain ls command with options.

Show answer outline

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.

3 marks Medium answer

Explain GREP command with example.

Show answer outline

GREP searches for patterns in files; for example, 'grep 'text' filename' finds 'text' in 'filename'.

The full exam-length answer is in the app.

3 marks Medium answer

Explain CHMOD command with example.

Show answer outline

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.

2 marks Short answer

Explain address translation in paging.

Show answer outline

Address translation in paging maps logical addresses to physical addresses using a page table.

The full exam-length answer is in the app.

2 marks Short answer

List out services of operating system from System point of view.

Show answer outline

Services include process management, memory management, file system management, and I/O system management.

The full exam-length answer is in the app.

2 marks Short answer

Differentiate between Windows and Linux operating system.

Show answer outline

Windows is proprietary and user-friendly, while Linux is open-source and customizable.

The full exam-length answer is in the app.

2 marks Short answer

Define following terms: i. Process ii. Scheduler iii. Turnaround Time.

Show answer outline

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.

2 marks Short answer

Explain medium term scheduler.

Show answer outline

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.

2 marks Short answer

Define memory management unit.

Show answer outline

A memory management unit (MMU) translates virtual addresses to physical addresses.

The full exam-length answer is in the app.

2 marks Short answer

Define demand paging.

Show answer outline

Demand paging loads pages into memory only when they are needed, reducing memory usage.

The full exam-length answer is in the app.

2 marks Short answer

Enlist file operations.

Show answer outline

File operations include create, read, write, delete, and rename.

The full exam-length answer is in the app.

2 marks Short answer

List out attributes of file.

Show answer outline

Attributes include name, type, size, location, and permissions.

The full exam-length answer is in the app.

2 marks Short answer

List out components of LINUX operating system.

Show answer outline

Components include the kernel, shell, file system, and utilities.

The full exam-length answer is in the app.

2 marks Short answer

List out features of LINUX operating system.

Show answer outline

Features include multitasking, multi-user, portability, and security.

The full exam-length answer is in the app.

2 marks Short answer

Differentiate between preemptive and non-preemptive scheduling algorithm.

Show answer outline

Preemptive allows interruption; non-preemptive does not.

The full exam-length answer is in the app.

2 marks Short answer

Give difference between logical address and physical address.

Show answer outline

Logical address is generated by the CPU; physical address is the actual location in memory.

The full exam-length answer is in the app.

2 marks Short answer

Define Throughput, Turnaround time and waiting time.

Show answer outline

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.

Study it properly — free, 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.