T4Tutorials .PK

VU Past Papers CS604 – Operating System Midterm Solved MCQs

Q#1: ——— command to resume the execution of a suspended job in the foreground.
(A) fg
(B) bg
(C) jobs
(D) kill
Answer: (A) fg

Q#2: __________ commands in Linux is used to copy file.
(A) ls
(B) cp
(C) mv
(D) mkdir
Answer: (B) cp

Q#3: The process id returned to the child process after successful fork system call execution is _____________.
(A) 0
(B) 1
(C) 2
(D) 3
Answer: (A) 0

Q#4: In ________addressing, the recipient is not required to name the sender.
(A) Symmetric
(B) Asymmetric
(C) Both symmetric and asymmetric
(D) None of the given options
Answer: (B) Asymmetric

Q#5: A solution to the critical section problem must satisfy the following requirements.
(A) Progress
(B) Mutual exclusion
(C) Bounded Waiting
(D) All of these
Answer: (D) All of these

Q#6: Typically the execlp system call is used after a fork system call.
(A) True
(B) False
Answer: (A) True

Q#7: You can create threads by using the pthread_create() call.
(A) True
(B) False
Answer: (A) True

Q#8: The interval from the time of submission to the time of completion is the ______.
(A) Turnaround time
(B) Waiting time
(C) Response time
(D) None of the above
Answer: (A) Turnaround time

Q#9: Each process must first request permission to enter its critical section. The section of code implementing this request is called the _____.
(A) Entry section
(B) Critical Section
(C) Remainder section
(D) None of the above
Answer: (A) Entry section

Q#10: IPC provides a mechanism to allow processes to communicate and to synchronize their actions without sharing the same__________.
(A) Address space
(B) Address Name
(C) Address ID
(D) None of the above
Answer: (A) Address space

Q#11: Linux is a version of _______ operating system.
(A) OS/2
(B) Windows
(C) Unix
(D) None of the above
Answer: (C) Unix

Q#12: Current working directory can be accessed using ——— Command.
(A) . (dot)
(B) # (hash)
(C) / (slash)
(D) ~ (tilt)
Answer: (D) ~

Q#13: Mkfifo() is a _______.
(A) Library Call
(B) Command
(C) Directory
(D) None of the above
Answer: (A) Library Call

Q#14: ____ command gives a snapshot of the current processes.
(A) ps
(B) top
(C) who
(D) ls
Answer: (A) ps

Q#15: Time interval when the I/O Devices are accessed is known as ——–.
(A) CPU Burst
(B) IO Burst
(C) Time Slice
(D) None of the above
Answer: (B) IO Burst

Q#16: The process of switching from one process to another is called —————.
(A) Context switching
(B) Scheduling
(C) Quantum period
(D) Latency
Answer: (A) Context switching

Q#17: __________ directory includes essential system boot files including the kernel image.
(A) /bin
(B) /boot
(C) /dev
(D) /etc
Answer: (B) /boot

Q#18: __________ scheduling algorithm is sometimes called shortest remaining time first scheduling algorithm.
(A) Non-preemptive SJF
(B) Priority Scheduling
(C) Preemptive Shortest Job First
(D) FCFS
Answer: (C) Preemptive Shortest Job First

Q#19: A semaphore that causes Busy-Waiting is termed as ___________.
(A) Spinlock
(B) Monitor
(C) Critical region
(D) Critical section
Answer: (A) Spinlock

Q#20: Progress and Bounded Waiting are some of the characteristics to solve the critical section problems.
(A) True
(B) False
Answer: (A) True

Q#21: In ———addressing; the recipient is not required to name the sender.
(A) Symmetric
(B) Asymmetric
(C) Both symmetric and asymmetric
(D) None of the given options
Answer: (B) Asymmetric

Q#22: The execution of critical sections must NOT be mutually exclusive.
(A) True
(B) False
Answer: (B) False

Q#23: A program in execution is called a _______________.
(A) Command
(B) Process
(C) Software
(D) Compiler
Answer: (B) Process

Q#24: The critical section problem can be solved by the following except
(A) Software based solution
(B) Firmware based solution
(C) Operating system based solution
(D) Hardware based solution
Answer: (B) Firmware based solution

Q#25: The bottom layer in the layered approach of Operating System is———–
(A) User interface
(B) Hardware
(C) Kernel
(D) None of the given options
Answer: (B) Hardware

Q#26: The manual pages can be read in Linux using ____ command.
(A) man
(B) wan
(C) desc
(D) help
Answer: (A) man

Q#27: The hardware mechanism that enables a device to notify CPU is called an ————-
(A) Interrupt
(B) Signal
(C) Trap
(D) Process
Answer: (A) Interrupt

Q#28: You can display the contents (names of files and directories) of a directory in UNIX/Linux directory structure with the ————— command.
(A) ll
(B) s
(C) ls
(D) none of the given options
Answer: (C) ls

Q#29: The ————– system call suspends the calling process.
(A) fork
(B) wait
(C) exec
(D) exit
Answer: (B) wait

Q#30: Taking the CPU from one process and giving the CPU to another process is termed as
(A) Context Switching
(B) Dispatching
(C) Swapping
(D) Tracking
Answer: (A) Context Switching

Q#31: A Process that has finished working, as well as its parent process has also finished its execution. In this state the process A will be called as _________ process.
(A) Child
(B) Thread
(C) Zombie
(D) Fork
Answer: (C) Zombie

Q#32: Bounded Buffer is a buffer of ____________ size.
(A) Variable
(B) Fixed
Answer: (B) Fixed

Q#33: In ________ communication the process which wants to communicate with the other process must explicitly name the recipient and the sender.
(A) Direct
(B) Indirect
(C) Automatic
(D) Self
Answer: (A) Direct

Q#34: In indirect inter process communication, a sender ________ mention the name of the recipient.
(A) does
(B) does not
Answer: (B) does not

Q#35: If the fork system call fails, it returns
(A) 1
(B) -1
(C) 2
(D) 0
Answer: (B) -1

Q#36: When a process opens its first file explicitly it will get descriptor number _________.
(A) 1
(B) 2
(C) 3
(D) 4
Answer: (C) 3

Q#37: Files that start with a ——– in UNIX/Linux directory structure are known as hidden files.
(A) . (dot)
(B) # (hash)
(C) / (slash)
(D) ~ (tilt)
Answer: (A) . (dot)

Q#38: You can use the ———command in UNIX to create a directory.
(A) rmdir
(B) mkdir
(C) cp
(D) gcc
Answer: (B) mkdir

Q#39: The _______ are used for communication between related or unrelated processes on the same system or unrelated processes on different systems.
(A) Pipes
(B) BSD Sockets
(C) Named pipe (FIFO)
(D) None of the given options
Answer: (B) BSD Sockets

Q#40: A_____ is an abstract key for accessing a file.
(A) File descriptor
(B) Input Redirection
(C) Output Redirection
Answer: (A) File descriptor

Exit mobile version