In this article, you will get NPTEL Assignment Answers of Week 3 (2023) of the course Operating System Fundamentals
Week 3 Due date: 2023-08-16, 23:59 IST.
CLICK HERE TO GO FOR WEEK 3 ASSIGNMENT OF OS FUNDAMENTALS (NPTEL)
Note : Answers are marked with red color.
1.Choose the correct option.
(A) Bootstrap program may be stored in a flash drive
(B) Bootstrap program may be stored in EEPROM
(C) Bootstrap program may be stored in CD-ROM
(D) Bootstrap program may be stored in Secondary Storage
(E) Bootstrap program may be stored in a DVD
2. Choose the correct answer(s).
(A) fork() system call is used for creating a new process
(B) Parent and child processes will execute the next instmction following the fork()
system call
(C) Child process uses the same open files which is used in the parent process
(D) Scheduling of Child or Parent process depending on the scheduling algorithm
(E) All of the above
3. A Process Connol Block (PCB) includes
(A) state of the program counter (PC)
(B) state of the memory address register (MAR)
(C) priority of the process
(D) value of the base and limit registers
(E) All of the above
4. During the execution of a process,
(A) the process stack holds the temporary data
(B) the heap memory dynamically allocates memory to the process
(C) the initialized data section includes the global and static variables
(D) the uninitialized data section includes the global and static variables
(E) All of the above
5. Which of the statement is false for a five-state process model?
(A)A ready process is waiting to be assigned to the processor
(B) A waiting process is waiting for an L’O completion event to occur for which it has
been waiting
(C) A waiting process is waiting for the reception of a signal for which it has been
waiting
(D)A waiting process becomes a ready process when the event occurs for which it has
been waiting
(E) A high-priority process in running mode may become a ready process if a low-
priority process joins the ready queue
6. Select which of the statement is false.
(A) A ready process resides in the main memory
(B) A tunning process resides in the main memory
(C) A waiting process resides in the secondary storage
(D) A suspended process resides in the secondary storage
(E) A newly created process resides in the secondary storage
7. Long-term scheduler
(A) selects a process from the secondary storage and puts it in the ready queue
(B) selects a process from the ready queue and allocates the CPU
(C) controls the degree of multi-programming
(D) controls system’s throughput
(E) is invoked much less frequently
8. A Short-term scheduler
(A) selects a process from the ready queue and allocates the CPU
(B) swap outs a process from the main memory and place it in the secondary storage
(C) is invoked very frequently
(D) is invoked if a clock interupt occurs
(E) is invoked if an VO interupt occurs
9. Select which of the statement is true.
(A) the core dump file is created on the failure of a process
(B) the core dump file includes the memory of a failed process
(C) the crash dump file containing kernel memory
(D) the crash dump file is created on the failure of the operating system
(E) All of the above
10. An operating system maintains different queues during the scheduling of processes,
then which of the statement is true?
(A) all the processes waiting for a device are placed in a device queue
(B) all the ready processes waiting to execute are placed in a ready queue
(C) all the newly created processes are placed in the job queue
(D) the job queue is maintained in the secondar}’ storage
(E) All of the above
11. Which of the statement is false in correction with context switch?
(A) context switch is not essential to move between user mode and kernel mode
(B) context switching is essential for multitasking operating system
(C) context switch time is pure overhead
(D) during context switching. the operating system is not executing any process
(E) state of an interrupted process is stored in the process control block
12. The output of the following program is a list of files
#include<stdio.h>
#include<unistd.h>
int main()
{
char *path = "/bin/ls";
execl(path, "Is", "-l", "-a", NULL);;
return 0;
}
(A) in the current directory
(B) including hidden files in the current directory
(C) including hidden files with the long format in the current directory
(D) in the current directory. and the files are sorted by time and date
(E) in the current directory. and the files are printed in reverse order
13. The number of times “Operating systems” will be printed by the following program is
(A) 0
(B) 1
(C) 2
(D) 3
(E) 4
14. Which of the statement is false in connection with the following program?
//Program
(A) the statement “Before execl() system call” will be printed
(B) the statement “After execl() system call” will be printed
(C) the current process image will be replaced by the process “Is”
(D) the output of the “Is” command will be printed
(E) the process identifier (PID) of the current process and the process “Is” is the same
15. Which of the statement is true for the iOS 4 mobile operating system?
(A) it supports multitasking
(B) it allows only one foreground process to run
(C) it allows multiple background processes to run
(D) it is developed by Apple Inc.
(E) all of the above