Tap an option to check your answer — the correct answer and full explanation appear after you choose.
Computer ScienceOperating SystemsPPSCID: LTP-8779
Which command lists files in a directory in Linux?
Adir
Blist
Cshow
Dls ✓ Correct answer
✓ Correct answer: ls
Full explanation
The ls command lists files in a directory in Linux.
Computer ScienceOperating SystemsPPSCID: LTP-8780
Which Linux command changes the current directory?
Acd ✓ Correct answer
Bls
Cpwd
Dmkdir
✓ Correct answer: cd
Full explanation
The cd command changes the current directory in Linux.
Computer ScienceOperating SystemsPPSCID: LTP-8781
Which Linux command creates a new directory?
Acd
Bmkdir ✓ Correct answer
Crm
Dcp
✓ Correct answer: mkdir
Full explanation
The mkdir command creates a new directory in Linux.
Computer ScienceOperating SystemsPPSCID: LTP-8782
Which Linux command removes a file?
Adel
Berase
Crm ✓ Correct answer
Dcut
✓ Correct answer: rm
Full explanation
The rm command removes a file in Linux.
Computer ScienceOperating SystemsPPSCID: LTP-8783
Which Linux command copies a file?
Acopy
Bmv
Cpaste
Dcp ✓ Correct answer
✓ Correct answer: cp
Full explanation
The cp command copies a file in Linux.
Computer ScienceOperating SystemsPPSCID: LTP-8784
What is swap space in an operating system?
ADisk space used as virtual memory when RAM is full ✓ Correct answer
BSpace reserved for the recycle bin
CSpace used by the web browser
DSpace for temporary internet files
✓ Correct answer: Disk space used as virtual memory when RAM is full
Full explanation
Swap space is disk space used as virtual memory when RAM is full.
Computer ScienceOperating SystemsPPSCID: LTP-8785
What is a GUI?
AA type of computer virus
BGraphical User Interface, using windows, icons and menus ✓ Correct answer
CA programming language
DA network protocol
✓ Correct answer: Graphical User Interface, using windows, icons and menus
Full explanation
A GUI is a Graphical User Interface, using windows, icons and menus.
Computer ScienceOperating SystemsPPSCID: LTP-8786
What is a CLI?
AA type of monitor
BA computer virus
CCommand Line Interface, where the user types text commands ✓ Correct answer
DA file format
✓ Correct answer: Command Line Interface, where the user types text commands
Full explanation
A CLI is a Command Line Interface, where the user types text commands.
Computer ScienceOperating SystemsPPSCID: LTP-8788
What is the Windows Registry?
AA database that stores settings for Windows and its programs ✓ Correct answer
BA list of installed fonts
CA folder for documents
DA type of antivirus
✓ Correct answer: A database that stores settings for Windows and its programs
Full explanation
The Windows Registry is a database that stores settings for Windows and its programs.
Computer ScienceOperating SystemsPPSCID: LTP-8789
Which key combination opens the Task Manager in Windows?
AAlt + Tab
BCtrl + Shift + Esc ✓ Correct answer
CCtrl + C
DWindows + R
✓ Correct answer: Ctrl + Shift + Esc
Full explanation
Ctrl + Shift + Esc opens the Task Manager in Windows.
Computer ScienceOperating SystemsID: OS-001
Which page replacement algorithm removes the page that has not been used for the longest time?
AFirst In First Out (FIFO)
BLeast Recently Used (LRU) ✓ Correct answer
COptimal
DLast In First Out (LIFO)
✓ Correct answer: Least Recently Used (LRU)
Full explanation
Least Recently Used (LRU) removes the page that has not been used for the longest time, on the idea that pages used recently are likely to be needed again.
Computer ScienceOperating SystemsID: OS-002
Which page replacement algorithm can show Belady's anomaly, where giving a process more frames increases the number of page faults?
AFirst In First Out (FIFO) ✓ Correct answer
BLeast Recently Used (LRU)
COptimal
DClock
✓ Correct answer: First In First Out (FIFO)
Full explanation
FIFO can show Belady's anomaly: for some reference strings more frames mean more page faults. LRU and Optimal never do this.
Computer ScienceOperating SystemsID: OS-003
Which kind of fragmentation leaves free memory split into many small blocks that are too small to use, even though their total is enough?
AInternal fragmentation
BThrashing
CExternal fragmentation ✓ Correct answer
DSegmentation
✓ Correct answer: External fragmentation
Full explanation
External fragmentation is free memory split into many small blocks scattered between allocated blocks, so no single block is big enough even though the total free space is enough.
Computer ScienceOperating SystemsID: OS-004
Which paging technique loads a page into memory only when the program actually needs it?
ADemand paging ✓ Correct answer
BPre-paging
CSwapping
DSpooling
✓ Correct answer: Demand paging
Full explanation
Demand paging loads a page into memory only when it is needed, so a program can start before all of its pages are in memory.
Computer ScienceOperating SystemsID: OS-005
What is the set of pages that a process is actively using called?
APage table
BFrame set
CSegment table
DWorking set ✓ Correct answer
✓ Correct answer: Working set
Full explanation
The working set is the set of pages a process has used in the recent past. If the whole working set is in memory, the process runs without page faults; if it is not, the system thrashes.
Computer ScienceOperating SystemsID: OS-006
Which page replacement algorithm removes the page that will not be used for the longest time in the future?
AFirst In First Out (FIFO)
BLeast Recently Used (LRU)
COptimal ✓ Correct answer
DSecond chance
✓ Correct answer: Optimal
Full explanation
The Optimal algorithm removes the page that will not be used for the longest time in the future. It gives the fewest page faults possible, but it cannot be used in practice because the future cannot be known; it is the yardstick the other algorithms are judged against.
Computer ScienceOperating SystemsID: OS-007
Which time is measured from the moment a job is submitted until the moment it completes?
AWaiting time
BTurnaround time ✓ Correct answer
CResponse time
DBurst time
✓ Correct answer: Turnaround time
Full explanation
Turnaround time is the time from submission of a job to its completion. It includes the waiting time and the time the job actually runs.
Computer ScienceOperating SystemsID: OS-008
Which time is measured from the moment a job is submitted until the moment the system first responds to it?
ATurnaround time
BWaiting time
CThroughput
DResponse time ✓ Correct answer
✓ Correct answer: Response time
Full explanation
Response time is the time from submission until the first response. It matters most in interactive systems, where the user must see something happen quickly.
Computer ScienceOperating SystemsID: OS-009
Which kind of scheduling lets the operating system take the CPU away from a running process before it finishes?
ANon-preemptive scheduling
BPreemptive scheduling ✓ Correct answer
CBatch scheduling
DCooperative scheduling
✓ Correct answer: Preemptive scheduling
Full explanation
In preemptive scheduling the operating system can take the CPU away from a running process, for example when its time quantum ends or a higher-priority process arrives. Round Robin is preemptive; FCFS is not.
Computer ScienceOperating SystemsID: OS-010
In FCFS scheduling, what is the effect called when short processes wait behind one long process?
AStarvation
BThrashing
CDeadlock
DConvoy effect ✓ Correct answer
✓ Correct answer: Convoy effect
Full explanation
The convoy effect is what happens in FCFS when short processes queue up behind one long process, like cars stuck behind a slow truck. It is why FCFS can give a poor average waiting time even though no process starves.