What Is A Process in An Operating System
What Is A Process in An Operating System
Which scheduler determines the processes to move into the "Ready" queue?
a) Medium-term Scheduler
b) Short-term Scheduler
c) Long-term Scheduler
d) Priority Scheduler
What does the Time Quantum represent in the Round-Robin algorithm?
a) The number of processes in the Ready Queue
b) The maximum burst time for each process
c) The fixed time slice given to each process for execution
d) The total time to complete all processes
What happens if a new process with a shorter burst time arrives during SRTF
scheduling?
a) The currently executing process finishes its execution
b) The new process preempts the current process
c) The new process goes to the end of the queue
d) Both processes execute simultaneously
What does the HRRN (Highest Response Ratio Next) algorithm prioritize?
a) Processes with higher burst times
b) Processes with the shortest response time
c) Processes with the highest response ratio
d) Processes with the shortest arrival time
What is the main drawback of memory that is not partitioned?
a) It cannot store data larger than 1KB
b) It leads to internal fragmentation
c) It has no physical address space
d) It leads to external fragmentation
What is the difference between First Fit and Next Fit allocation methods?
a) First Fit starts from the beginning, Next Fit continues from the last allocated location
b) First Fit finds the largest block, Next Fit finds the smallest block
c) First Fit is faster, while Next Fit is slower
d) First Fit uses fixed partitions, while Next Fit uses variable partitions
If a system uses a page size of 4KB, what is the size of the offset (d)?
a) 10 bits
b) 12 bits
c) 16 bits
d) 32 bits
Câu 3. What statement meet the description of the running state of a process?
A. The process is waiting in ready queue.
B. A process waits for a certain event or waits for input/output of an I/O event
C. The program is in execution and using the processor
D. User launch a new program on disk.
Câu 4. In a uni-processor system, how many processes can be in the running state at a dedica
A. Two processes
B. Three processes because they have 3 states.
C. One process
D. All processes which have been loaded in to the main memory.
Câu 5. What is the shell in operating system?
A. A computer program that exposes users to program their needed purposes.
B. An user applicaton program use to manage files and folder.
C. A computer program that exposes an operating system's services to a human user or other prog
D. An application software that help users to manage file system.
Câu 6. What does "time quantum" of processes?
A. The maximum time the CPU spends executing a process
B. Another name for total running time of each process.
C. The average waiting time for each process in ready queue.
D. The total execution time of each process.
Câu 7. In dynamic partitioning, what solution does the operating system use to manage free m
A. SCT (Segment control table)
B. PCT (page control table)
C. Linked list or bitmap
D. PCB (Page control Block)
Câu 8. If the specified block size is too small, what is the result to the operating system?
A. Waste disk
B. Cannot save large files.
C. Increase the capacity of the disk block management list
D. Disk fragmentation
Câu 9. The term "time quantum' is used in which scheduling algorithm?
A. First Come First Serve
B. Round-robin
C. Shortest Job First
D. Shortest Remaining-Time First
Câu
10. Arrange these memory types in decreasing order of speed?
A. Main memory, register, secondary memory, cache memory
B. Register, cache memory, main memory, secondary memory
C. Cache memory, secondary memory, main memory, register
D. Secondary memory, main memory, register, cache memory
Câu What of the following terms is not a specific operating system?
11.
A. Kali-linux
B. Ubuntu
C. Redhat
D. Linux kernel
Câu What is the logical unit that contain information in a computer system?
12.
A. User program
B. File
C. Database
D. Directory
Câu What is the following path "/home/vku/users" called?
13.
A. Dynamic path
B. Current working path
C. Relative path
D. Absolute path
Câu
14. Which of the following terms are file systems?
A. Files and folders
B. MS-DOS and Windows
C. Processes and threads
D. FAT and NTFS
Câu
15. What is not a dynamic storage-allocation method?
A. First-fit
B. Worst-fit
C. Best-fit
D. Test-fit
Câu
16. What is not a dynamic storage-allocation method?
A. Next-fit
B. Worst-fit
C. Nest-fit
D. Best-fit
Câu
17. What is NRU (a page replacement algorithm) stand for?
A. Not Recently Used
B. Not Repeatly Used
C. Next Round Used
D. Next Remain Used
Câu What is NFU (a page replacement algorithm) stand for?
18.
A. Not Frequently Used
B. Not Fast Used
C. Next For Used
D. Next Fist Used
Câu
19. What is FIFO (a page replacement algorithm) stand for?
A. Fast In Fast Out
B. First In First Out
C. Fast In First Out
D. Fit In First Out
Câu
20. What are four times when OS involved with paging?
A. Process creation, Process execution, Page fault time, Process launching time
B. Program creation, Process creation, Page fault time, Process termination time
C. Process creation, Process execution, Page fault time, Process termination time
D. Process creation, Program creation, Page fault time, Process termination time
Câu
21. What are 4 conditions for deadlock?
A. Process creation condition, Hold and wait condition, No preemption conditions, Circular wait con
B. Mutual exclusion condition, Hold and wait condition, No preemption conditions, Circular wait con
C. Process creation condition, Hold and wait condition, No preemption conditions, Process terminat
D. Process creation condition, Hold and wait condition, Mutual exclusion condition, Process termina
Câu
22. What is the deadlock prevention solution attack to Mutual exclusion condition?
A. Spool everything
B. Request all resources initially
C. Take resources away
D. Order resources numerically
Câu
23. What is the deadlock prevention solution attack to Hold and wait condition?
A. Spool everything
B. Request all resources initially
C. Take resources away
D. Order resources numerically
Câu
24. What is the deadlock prevention solution attack to No preemption condition?
A. Spool everything
B. Request all resources initially
C. Take resources away
D. Order resources numerically
Câu
25. What is the deadlock prevention solution attack to Circular condition?
A. Spool everything
B. Request all resources initially
C. Take resources away
D. Order resources numerically
PHẦN 2:
Calculate the capacity of a floppy disk with 40 cylinders, 2 tracks per cylinder, 9 sectors per track,
Câu 1.
of each sector is 512 bytes
A. 360 KB 40×2×9×512=360KB
B. 80 KB
C. 18 KB
D. 512 KB
Câu 2. Which type of RAID (Redundant Array of Independent Disks) does not support redundancy?
A. RAID 0
B. RAID 1
C. RAID 2
D. RAID 5
Câu 23. A file has a size of 2200 bytes. The size of each block is 512 bytes. How many blocks does this file
A. 4
B. 5
C. 6
D. 7
Câu 24. Which of the following is not correct about the main classes of I/O devices?
A. Character devices
B. Block devices and Character devices
C. Stream devices
D. Block devices
Câu 25. Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?
A. First-come first-served scheduling
B. Shortest job scheduling
C. Priority scheduling
D. Longest job scheduling