Class 10 Computer Science · Chapter 1 · Test 5
Test 5: Short Questions – Part 2
24 questions · 50 min · 48 marks
Want to try first? Take the free Computer Science test: 94hbp-7gz9m-ufent-tsj4r
Sample questions with answers
The first 5 of 24, each with a model answer. Try writing yours first.
Question 1 · 2 marks
What is scheduling in an operating system?
Show model answerHide model answer
The CPU cannot run all processes at the same time, so the OS must decide which process should run first and how long each process should run. This is called scheduling.
Question 2 · 2 marks
Define First Come, First Served (FCFS) scheduling with an example.
Show model answerHide model answer
In FCFS, the CPU processes tasks in the exact order they arrive. The first process to arrive is completed first, and the next starts only after the previous one finishes.
Example: like a queue at a shop counter, the first customer in line is served first, then the next, and so on.
Question 3 · 2 marks
Explain one advantage and one disadvantage of FCFS scheduling.
Show model answerHide model answer
Advantage: FCFS is easy to understand and implement, as processes are served in the exact order they arrive, and no process is skipped.
Disadvantage: short processes may have to wait a long time if they are queued behind longer processes (the convoy effect), which can affect the overall efficiency of the system.
Question 4 · 2 marks
In the FCFS example with P1 (0s, 5s), P2 (1s, 3s) and P3 (2s, 2s), why must P3 wait although it is the shortest?
Show model answerHide model answer
P3 arrives after P1 and P2, and in FCFS processes are served in arrival order. P3 must wait until P1 and P2 have finished (P1: 0-5, P2: 5-8, P3: 8-10). Shorter tasks can be delayed if they arrive after longer ones.
Question 5 · 2 marks
Using FCFS, give the order of execution and the start and finish times for P1 (arrival 0s, needs 4s), P2 (1s, 5s) and P3 (2s, 3s).
Show model answerHide model answer
Order: P1, P2, P3. P1 starts at 0s and finishes at 4s. P2 starts at 4s and finishes at 9s. P3 starts at 9s and finishes at 12s.
More tests in Operating Systems: Structure and Services
- 94hbp-7gz9m-ufent-tsj4r
MCQs · 30 questions · 25 min · 30 marks
- Test 2: Memory, Threads, System Calls, File Systems and OS Types
MCQs · 30 questions · 25 min · 30 marks
- Test 3: Complete Chapter Review
MCQs · 30 questions · 25 min · 30 marks
- Test 4: Short Questions – Part 1
Short questions · 24 questions · 50 min · 48 marks
- Test 6: Long Questions
Long questions · 10 questions · 50 min · 82 marks
Practise with a free account
Save your scores, see which chapters need work, and keep a notebook of every question you got wrong.