System Call


Question 1
Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?
A
Function Call
B
malloc Call
C
Page Fault
D
System Call
GATE CSE 2023   Operating System
Question 2
Which of the following standard C library functions will always invoke a system call when executed from a single-threaded process in a UNIX/Linux operating system?
[MSQ]
A
exit
B
malloc
C
sleep
D
strlen
GATE CSE 2021 SET-1   Operating System


Question 3
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 process created is __________ .
A
31
B
63
C
5
D
6
GATE CSE 2019   Operating System
Question 4
The difference between a named pipe and a regular file in Unix is that
A
Unlike a regular file, named pipe is a special file
B
The data in a pipe is transient, unlike the content of a regular file
C
Pipes forbid random accessing, while regular files do allow this.
D
All of the above
ISRO CSE 2018   Operating System
Question 5
The following C program:
 {
    fork(); fork(); printf("yes");
    
}
If we execute this core segment, how many times the string yes will be printed?
A
Only once
B
2 times
C
4 times
D
8 times
ISRO CSE 2018   Operating System


There are 5 questions to complete.

3 thoughts on “System Call”

Leave a Comment