Operating Systems - Quiz(Unit 1) Batch-III

A futuristic classroom filled with computers and students engaging in learning about operating systems, with digital screens displaying code and system processes, vibrant colors, educational atmosphere

Operating Systems Knowledge Quiz

Test your knowledge of Operating Systems with our comprehensive quiz designed for students and enthusiasts alike. This quiz covers key concepts, including process management, system calls, and interrupt handling.

Are you ready to challenge yourself? Here are some highlights:

  • 10 thoughtfully crafted multiple-choice questions
  • Immediate feedback on your performance
  • Perfect for refreshing or testing your OS knowledge
10 Questions2 MinutesCreated by DebuggingMouse42
20
50
40
80
The following C program is executed on a Unix/Linux system: #include < unistd.h > int main () { int I ; for (i=0; i<10; i++) if (i%2 == 0) fork ( ) ; return 0 ; } The total number of child processes created is ____
32
31
64
63
1 and 2
1 and 3
2 and 3
2 and 4
Consider the following code fragment: if (fork() == 0) { a = a + 5; printf("%d, %d \n", a, &a); } else { a = a - 5; printf ("%d, %d \n", a, &a); } Let u,v be the values printed by the parent process, and x,y be the values printed by the child process. Which one of the following is TRUE? a. u = x+10 , v = y b. u = x=10, v != y c. u+10 = x, v = y d. u+10 = x, v !=y
A
B
C
D
A CPU generally handles an interrupt by executing an interrupt service routine a. As soon as an interrupt is raised b. By checking the interrupt register at the end of fetch cycle. c. By checking the interrupt register after finishing the execution of the current instruction. d. By checking the interrupt register at fixed time intervals.
A
B
C
D
The following are some events that occur after a device controller issues an interrupt while process L is under execution. (P) The processor pushes the process status of L onto the control stack. (Q) The processor finishes the execution of the current instruction. (R) The processor executes the interrupt service routine. (S) The processor pops the process status of L from the control stack. (T) The processor loads the new PC value based on the interrupt. Which of the following is the correct order in the which the events above occur?
QPTRS
PTRSQ
TRPQS
QTPRS
Select all the correct answer Which of the following standard C library functions will always invoke a system call when executed from single-threaded process in a UNIX / Linux system?
Exit
Malloc
Sleep
Strlen
Which one or more of the following need to be saved on a context switch from one thread (T1) of a process to another thread(T2) of the same process? a) Page table base register b) Stack pointer c) Program counter d) General purpose registers
A.B
B,C
B,C,D
C,D
Which one or more of the following options guarantees that a computer system will transition from user mode to kernal mode? a) Function call b) Malloc call c) Page Fault d) System call
A,B
B,C
C,D
D,A
A
B
C
D
{"name":"Operating Systems - Quiz(Unit 1) Batch-III", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Operating Systems with our comprehensive quiz designed for students and enthusiasts alike. This quiz covers key concepts, including process management, system calls, and interrupt handling.Are you ready to challenge yourself? Here are some highlights:10 thoughtfully crafted multiple-choice questionsImmediate feedback on your performancePerfect for refreshing or testing your OS knowledge","img":"https:/images/course8.png"}
Powered by: Quiz Maker