#
GATE Questions

The `fork()’ used to create a new process from an existing process. The new process is called the child process, and the existing process is called the parent. We can tell which is which by checking the return value from `fork()’. The parent gets the child’s pid returned to him, but the child gets 0 returned to him.

A) 2012 | B) 2014 |

C) 2016 | D) 2010 |

Explanation:

We already know that the calendar after a leap year repeats again after 28 years.

Here year 1988 is a Leap year, then the same calendar will be in the year = 1988 + 28 = 2016.

A) 14 | B) 16 |

C) 18 | D) 20 |

Explanation:

Let the third proportion to 9 & 12 be 'x'.

=> 9:12 = 12 :p

=> p = 12x12/9 = 16.

A) Rs. 560 | B) Rs. 530 |

C) Rs. 500 | D) Rs. 514 |

Explanation:

110% of S.P. = Rs. 616

S.P. = (616 x 100)/110 = Rs. 560

C.P = (110 x 560)/112 = Rs. 500

A) Friday | B) Saturday |

C) Sunday | D) Can't be determined |

Explanation:

We cannot find out the answer because the number of days of the current month is not given.