Professional Documents
Culture Documents
In the Unix/Linux system, a process can kill itself without any OS intervention.
Select one:
True
False
Feedback
Question 2
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
A new PCB is created on every successful execution of every fork system call
Select one:
True
False
Feedback
Question 3
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
A process is created only when CPU is executing in the kernel-mode
A process is terminated only when the CPU is executing in the kernel-mode
A process can not enter waiting state while executing a system call
A process may be terminated without making the exit() system call
Feedback
Question 4
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
virtual address from the heap and virtual address from the heap
virtual address from the stack and virtual address from the stack
virtual address from the heap and virtual address from the stack
none of the above
Feedback
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Two processes P1 and P2 invoke the malloc library call to allocate one kilobyte each. Which
of the following statements is true?
Select one:
The free physical memory in the system will be reduced by at least two kilobytes.
The free virtual memory in the process address space for P1 will be reduced by one kilobyte.
The free virtual memory in the process address space for P1 will be reduced by at least one
kilobyte.
None of the above
Feedback
Question 6
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Consider the following program in the UNIX/Linux OS.
Question 7
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Which of the following statement(s) is are false assuming a Linux like OS with no
vulnerabilities?
Question 8
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Which of the following standard C library calls will never invoke any system call?
Question 9
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Question 10
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Flag question
Question text
By default, all open file descriptors remain open across the exec family of system calls.
Select one:
True
False
Feedback
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Two different system calls can have same system call number in the Unix/Linux System.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 3
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
The number of arguments passed to the OS from the user space when invoking the 1 seek
system call is
Select one:
2
3
4
5
Feedback
Question 4
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
The PID of the process executing L1 and L2 will be the same
The PID of the process executing L1 and all input/output operations of ls will be the same
The PID of the process executing L1 and all input/output operations of ls will be different
None of the above
Feedback
Question 5
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
If the first argument passed to the open system call in the Unix/Linux system is passed as
NULL from any user process P, then,
Question 6
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Which of the following statement(s) is/are true in the Linux/Unix system? The second
argument of the read system call can be
Question 7
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Which of the following system call(s) may manipulate or query the file related information
for any given process?
Question 8
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Question 9
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Which of the following statement(s) is/are true regarding system call handler
implementation in the Unix/Linux System?
Question 10
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Which of the following option(s) is/are correct regarding the behavior of the software
during the execution of the above program?
Quiz : 3
Flag question
Question text
In a x86 system, the OS can execute the hlt instruction without causing any protection faults.
Select one:
True
False
Feedback
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
We can design an OS to allow a user mode program to handle a particular device interrupt
in user mode.
Select one:
True
False
Feedback
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
When switching the context between two processes, the OS will explicitly change the stack
pointer at least once
Select one:
True
False
Feedback
Flag question
Question text
In which of the following erroneous user space execution scenarios, the hardware will detect
the error and notify the OS?
Select one:
Invocation of a system call with an invalid system call number
Invocation of a system call with an invalid pointer
Setting the stack pointer register (SP) to an invalid address
None of the above
Feedback
Question 5
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
If read access to the kernel stack of a single-threaded process P is allowed from user mode,
isolation will be compromised.
Select one:
True
False
Feedback
Flag question
Question text
Question 7
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
In a computer system with 4 CPUs, a rouge application creates four processes and executes
infinite loop in each process. Which of the following statement(s) is/are true?
Question 8
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
In which of the following scenario(s), the OS-mode execution may be triggered in a X86
system?
Question 9
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Question 10
Correct
Mark 3.00 out of 3.00
Flag question
Question text
Consider a scenario where because of a OS bug, some part of the code segment of a user
process P is modified by the OS. Which of the following statements is/are true in this
scenario? (Assume there are no other bugs in the OS)
Finish review
Quiz 4:
Question text
Select one:
True
False
Feedback
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Address translation mechanisms do not impose any limit on the physical address size of a
system.
Select one:
True
False
Feedback
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The OS can handle a page fault without allocating any physical frame.
Select one:
True
False
Feedback
Question 4
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
In the Unix file system with 4KB block size and inode size of 512 bytes, what is the minimum
number of block accesses (read and write) required to allocate an inode in a persistent
manner? Assume that only the super block is present in memory and disk I/O can be
performed at block size (4KB) granularity.
Select one:
3
4
2
1
Feedback
Question 5
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Consider a file system employing linked allocation where the address of the last block is
stored in the inode. Which of the following statement is true?
Select one:
Random write to the file will require scanning all data blocks
Random read to the file will require scanning all data blocks
Both A and B
None of the above
Feedback
Question 6
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Consider a single-threaded process in the Linux/Unix system. The process performs write
access on a valid (previously allocated) user space address with proper permissions that
results in a page fault. Which of the following statement(s) is/are true in normal operating
conditions? Normal operating conditions refer to absence of extreme resource crunch
scenarios.
Question 7
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Which of the following statements is/are true? Assume a system without any disk caches
where the super block and the inodes are present in memory.
Question 8
Correct
Mark 3.00 out of 3.00
Flag question
Question text
Consider a file system with block layer cache to store frequently accessed blocks in the
RAM. Further, consider the file system block size is of 4KB. Which of the following system
call(s) may require some disk accesses before the system call returns to the user space?
Question 9
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
The maximum physical address size supported (irrespective of the actual physical memory
size of the system) by a multi-level paging system depends on the
Question 10
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Consider a paging system with 48-bit virtual address, 4-level page tables (L1 is the root-
level pointed to by the CR3 register) and page size of 4KB. At each level, 9-bits of virtual
address are used to index into the page table entry location (same as 48-bit system
explained in the lectures). Which of the following statement(s) is/are true assuming that the
OS uses a separate address space?
Flag question
Question text
A new file can not be created in an existing file system residing on a logical disk partition
without mounting the file system.
Select one:
True
False
Feedback
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
An OS for a single CPU system can be designed without using any locks.
Select one:
True
False
Feedback
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The page fault handler in the Unix/Linux OS does not require any locking.
Select one:
True
False
Feedback
Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
When the OS performs a context switch between two threads of a multi-threaded process in
a X86 system,
Select one:
The values of all registers of the outgoing thread are not required to be saved
The values of all registers of the outgoing thread are required to be saved
Only the stack pointer register value of the outgoing thread is required to be saved
Only the stack pointer and base pointer register value of the outgoing thread are required to
be saved
Feedback
Question 5
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Consider a file system with inode size 256 bytes and block size of 4KB (4096 bytes). Further,
consider that 200 bytes of the inode is consumed to maintain all information about the
file/directory except the block index maps. If the
le system is designed to support an underlying storage device of maximum size one
terabyte (1TB) and employs only direct indexing, what is the maximum File size supported
by the file system?
Select one:
28KB
32KB
56KB
64KB
Feedback
Question 6
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Select the correct answer(s) for the following questions. Note that, you have to write all
correct choices to get the credits (no partial marks). No explanation required.
After a system crash, if the inode bitmap corresponding to a particular inode is set in the
Unix
le system, which of the following statement(s) is/are false?
Question 7
Correct
Mark 3.00 out of 3.00
Flag question
Question text
Consider a file system with page cache (to store file blocks in RAM). Which of the following
statement(s) is/are true?
Question 8
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Consider two threads T1 and T2 of a process P created using the pthread APIs in a
Unix/Linux system. Which of the following statement(s) is/are true.
Question 9
Incorrect
Mark 0.00 out of 3.00
Flag question
Question text
Which of the following can be the correct output(s) if one thread executes string() and the
other thread executes number() concurrently?
Question 10
Correct
Mark 3.00 out of 3.00
Flag question
Question text
Consider two threads T1 and T2 of a process P created using the pthread APIs in a Unix/Linux
system. Which of the following statement(s) is/are false.
Finish review