Operating Systems · 33 programs
Get a random program, write it from memory, run it, then compare with the answer.
Mock examUnit 1
echo, read, arithmetic, bc
Add two numbers
Simple interest
Area of a circle
Circumference of a circle
Full name from title and name
Swap without a third variable
Unit 2
if, elif, case
Odd or even
Leap year
Grade from marks
Largest of three
Menu with case
Unit 3
while, for, digits
Factorial (loop)
Reverse a number
Sum of digits
Sum of a 3-digit number's digits
Prime check
Fibonacci series
GCD (Euclid)
Odd & even sums (1–50)
Multiplication table
Power without built-ins
Unit 4
local, nested loops
Factorial with a function
Star pyramid
Number pattern
Pascal's triangle
Unit 5
arr[i], ${arr[@]}
Array input & display
Largest in an array
Unit 6
FCFS, priority, Round Robin
FCFS scheduling (C)
Priority scheduling (C)
Round Robin scheduling
Unit 7
Banker's, First / Best / Worst Fit
Banker's algorithm (deadlock avoidance)
First Fit, Best Fit, Worst Fit
Unit 8
mkdir, grep, sed, cal…
Linux commands
That's the whole syllabus
Ready for a mock? Exam mode draws a random program and starts a timer.
Start a mock exam