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

GATE 2005

203 questions

MCQ 2031-mark 203

Questions 146–150 of 203

Q146Parsing1 markMCQ−0.33 if wrong
The grammar A→AA∣(A)∣εA\rightarrow AA|(A)|\varepsilon is not suitable for predictive-parsing because the grammar is:

Q147System Call1 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?

Q148System Call1 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?

Q149System Call1 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?

Q150Process1 markMCQ−0.33 if wrong
What is the swap space in the disk used for?