GATE Questions

Q:

Explain fork() system call?

Answer

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.

Report Error

View answer Workspace Report Error Discuss

Subject: Operating Systems Exam Prep: GATE

1 1746
Q:

The calendar for the year 1988 is same as which upcoming year ?

A) 2012 B) 2014
C) 2016 D) 2010
 
Answer & Explanation Answer: C) 2016

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.

Report Error

View Answer Workspace Report Error Discuss

21 1743
Q:

The third proportional to 9 and 12 is ?

A) 14 B) 16
C) 18 D) 20
 
Answer & Explanation Answer: B) 16

Explanation:

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

=> 9:12 = 12 :p

=> p = 12x12/9 = 16.

Report Error

View Answer Workspace Report Error Discuss

5 1740
Q:

The sale price of an article including the sales tax is Rs. 616. The rate of sales tax is 10%. If the shopkeeper has made a profit of 12%, then the cost price of the article is :

A) Rs. 560 B) Rs. 530
C) Rs. 500 D) Rs. 514
 
Answer & Explanation Answer: C) Rs. 500

Explanation:

110% of S.P. = Rs. 616

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

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

Report Error

View Answer Workspace Report Error Discuss

3 1708
Q:

The second day of a month is Sunday, What will be the last day of the next month which has 31 days  ?

A) Friday B) Saturday
C) Sunday D) Can't be determined
 
Answer & Explanation Answer: D) Can't be determined

Explanation:

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

Report Error

View Answer Workspace Report Error Discuss

11 1670