CoreHRx Jobs

Apply in one click, save jobs and take free mock tests.

Register free Log in
Hiring? Post jobs with CoreHRx
My account
user

View & update profile

Operating Systems mock test: free online practice

15 to 30 random questions in 15 to 30 minutes, by the level you choose: processes, scheduling, synchronization, deadlocks, memory and files. After you submit you get your score, your strong and weak topics, and the right answer with an explanation for every question.

Want to revise first? Read the Operating Systems interview questions and answers.

Choose your level

Free with a CoreHRx Jobs account: you will be asked to sign in or create one first.

What does the Operating Systems mock test cover?

The test covers 12 topics across three levels. Each attempt picks 15 to 30 questions at random, by the level you choose, so every attempt is different.

  • CPU Scheduling
  • Virtual Memory
  • Process Synchronization
  • Processes and Threads
  • Linux and Unix Concepts
  • Paging and Segmentation
  • Deadlocks
  • File Systems
  • OS Basics and System Calls
  • Disk Scheduling
  • Memory Management
  • I/O and Interrupts

Sample Operating Systems mock test questions

One question from each level, the way they appear in the test. A new set comes on the 1st of every month. Try it, then open the answer.

  1. EasyCPU Scheduling

    All four processes arrive at time 0 (burst times in ms). Using non-preemptive SJF, what is the average turnaround time?

    Process  Arrival  Burst
    P1       0        7
    P2       0        3
    P3       0        9
    P4       0        5
    • 13.5
    • 6.5
    • 10.5
    • 12.5
    Show the answer

    Answer: 12.5. SJF picks the shortest burst first: P2 0-3, P4 3-8, P1 8-15, P3 15-24. With arrival 0, turnaround equals completion time: 3, 8, 15, 24, sum 50, average 12.5 ms.

  2. MediumFile Systems

    An inode has 10 direct pointers, 1 single indirect and 1 double indirect pointer. Blocks are 1 KB and a block pointer is 4 bytes. What is the largest file size?

    • 12 KB + 256 KB + 64 MB
    • 10 KB + 256 KB + 512 KB
    • 10 KB + 256 KB + 64 MB
    • 10 KB + 1 MB + 1 GB
    Show the answer

    Answer: 10 KB + 256 KB + 64 MB. A 1 KB block holds 1024 / 4 = 256 pointers. Direct: 10 x 1 KB. Single indirect: 256 x 1 KB = 256 KB. Double: 256 x 256 x 1 KB = 64 MB. Total 10 KB + 256 KB + 64 MB, about 64 MB.

  3. HardPaging and Segmentation

    A data TLB has 64 entries. What is its reach (memory it can map at once) with 2 MB huge pages, compared with 4 KB pages?

    • 256 MB, compared with 512 KB
    • 64 MB, compared with 128 KB
    • 2 MB, compared with 4 KB
    • 128 MB, compared with 256 KB
    Show the answer

    Answer: 128 MB, compared with 256 KB. Reach = entries x page size: 64 x 2 MB = 128 MB, versus 64 x 4 KB = 256 KB. A database or JVM with a large working set gets far fewer TLB misses with huge pages, at the cost of more internal fragmentation.

Take the full Operating Systems mock test: 15 to 30 questions and 15 to 30 minutes, by level.

How is the Operating Systems mock test scored?

A question counts as right only when you pick exactly the right option, or all the right options where it says so; a question left blank counts as wrong. Your score is the share of the test's questions you got right (15 to 30, by level). The result also scores every topic, so you know what to revise before the interview.

  • 75% or more in a topica strength
  • 50% to 74%worth a revision
  • Under 50%a topic to work on

Operating Systems mock test: questions people ask

Is the Operating Systems mock test free?

Yes. The Operating Systems mock test is free. You need a free CoreHRx Jobs account to start it, so your score and the topics to work on are saved.

How many questions are in the Operating Systems mock test?

It depends on the level: Easy has 15 questions in 15 minutes, Medium has 20 questions in 20 minutes, Hard has 30 questions in 30 minutes. They are multiple-choice questions picked at random from a larger bank of Operating Systems questions at your level, so every attempt is different.

Which Operating Systems topics does the test cover?

The questions cover CPU Scheduling, Virtual Memory, Process Synchronization, Processes and Threads, Linux and Unix Concepts, Paging and Segmentation, Deadlocks, File Systems, OS Basics and System Calls, Disk Scheduling, Memory Management, I/O and Interrupts. Your result shows how you did in each topic.

Which level should I choose?

Easy: Processes, threads, system calls and scheduling basics. Medium: Scheduling problems, synchronization, deadlocks and paging. Hard: Virtual memory, page replacement and tricky concurrency, for top scores. Start with Easy and move up.

Can employers see my Operating Systems score?

Only your best Operating Systems score, and only when it is 60% or more. It shows on the job applications you send on CoreHRx. Lower scores stay private.

Can I take the Operating Systems mock test again?

Yes, up to 10 tests a day. Each attempt picks questions you have not seen recently first.

All mock tests