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 11–15 of 16

Q11GATE 20081 markMCQ−0.33 if wrong
Which of the following system calls results in the sending of SYN packets?

Q12GATE 20071 markMCQ−0.33 if wrong
The contents of the text file t1.txt containing four lines are as follows :
a1 b1
a2 b2
a3 b2
a4 b1
The contents of the text file t2.txt containing five lines are as follows :
a1 c1
a2 c2
a3 c3
a4 c3
a5 c4
Consider the following Bourne shell script :
awk -F ' ' '{print $1, $2}' t1.txt |
while read a b ; do
            awk -v aV=$a -v bV=$b -F ' ' '
            aV == $1 {print aV, bV, $2}' t2.txt
done 

Which one of the following strings will NOT be present in the output generated when the above script is run? (Note that the given strings may be substrings of a printed line.)

Q13GATE 20051 markMCQ−0.33 if wrong
A user level process in Unix traps the signal sent on a Ctrl-C input, and has a signal handling routine that saves appropriate files before terminating the process. When a Ctrl-C input is given to this process, what is the mode in which the signal handling routine executes?

Q14GATE 20051 markMCQ−0.33 if wrong
The shell command
 find -name passwd -print

is executed in /etc directory of a computer system running Unix. Which of the following shell commands will give the same information as the above command when executed in the same directory?

Q15GATE 20051 markMCQ−0.33 if wrong
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?

Keep practising

Topics in Operating System

All CS topics ›