GATE 2008 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2008

185 questions

MCQ 1851-mark 52 · 2-mark 133

Questions 136–140 of 185

Q136Intermediate Code Generation1 markMCQ−0.33 if wrong
Some code optimizations are carried out on the intermediate code because

Q137System Call1 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:

Q138System Call2 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

Q139System Call2 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?

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