System Call: GATE CS Previous Year Questions

System Call · Operating System

16 questions · asked in 11 of 27 years (2000–2026)

MCQ 11 · MSQ 2 · NAT 31-mark 12 · 2-mark 4

2000Questions per year2026

Questions 6–10 of 16

Q6GATE 2015 (Session 2)1 markMCQ−0.33 if wrong
Identify the correct order in which a server process must invoke the function calls accept, bind, listen, and recv according to UNIx socket API.

Q7GATE 20121 markMCQ−0.33 if wrong
A process executes the code
fork();
fork();
fork();
The total number of child processes created is

Q8GATE 20081 markMCQ−0.33 if wrong
Consider the execution of the following commands in a shell on a Linux operating system.

bash$ cat alpha
Mathematics
bash$ ln alpha beta
bash$ rm alpha
bash$ cat >> beta << SAME
Information Technology
SAME
bash$ cat beta

The output of the last command will be:

Q9GATE 20082 marksMCQ−0.67 if wrong
A process executes the following code
for (i = 0; i < n; i++) fork( );
The total number of child processes created is

Q10GATE 20082 marksMCQ−0.67 if wrong
A client process P needs to make a TCP connection to a server process S. Consider the following situation: the server process S executes a socket(), a bind() and a listen() system call in that order, following which it is preempted. Subsequently, the client process P executes a socket() system call followed by connect() system call to connect to the server process S. The server process has not executed any accept() system call. Which one of the following events could take place?

Keep practising

Topics in Operating System

All CS topics ›