# GATE Questions

Q:

What is a shell?

A shell is an interactive user interface to an operating system services that allows an user to enter commands as character strings or through a graphical user interface. The shell converts them to system calls to the OS or forks off a process to execute the command. System call results and other information from the OS are presented to the user through an interactive interface. Commonly used shells are sh,csh,ks etc.

Subject: Operating Systems Exam Prep: GATE

382
Q:

There are three rooms in a Hotel: one single, one double and one for four persons. How many ways are there to house seven persons in these rooms ?

 A) 105 B) 7! x 6! C) 7!/5! D) 420

Explanation:

Choose 1 person for the single room & from the remaining choose 2 for the double room & from the remaining choose 4 people for the four person room,

Then, 7C1 x 6C2 x 4C4
= 7 x $\inline \fn_jvn \small \frac{6x5}{2}$ x 1
= 7 x 15 = 105.

4 375
Q:

K and L start a business jointly. K invests Rs.16000 for 8 months and L remains in the business for 4 months. Out of the total profit L claims 2/7th share. How much money is contributed by L?

 A) Rs. 13,204 B) Rs. 14,521 C) Rs. 12,800 D) Rs. 15,000

Explanation:

Given share of L is 2/7 th of profit. Then, their profits are divided in to 5:2 ratio.
Ratio of K and L is
$\inline \fn_jvn \small \frac{16000\times 8}{x\times 4}=\frac{5}{2}$
x = Rs. 12,800.

3 371
Q:

What was the day of the week on 17th June, 1998 ?

 A) Monday B) Tuesday C) Wednesday D) Friday

Explanation:

17th June, 1998 = (1997 years + Period from 1.1.1998 to 17.6.1998)
Odd days in 1600 years = 0
Odd days in 300 years = 1
97 years has 24 leap years + 73 ordinary years.
Number of odd days in 97 years ( 24 x 2 + 73) = 121 = 2 odd days.
Jan. Feb. March. April. May. June.
(31 + 28 + 31 + 30 + 31 + 17) = 168 days
168 days = 24 weeks = 0 odd day.
Total number of odd days = (0 + 1 + 2 + 0) = 3.
Given day is Wednesday.

6 367
Q:

"Good Samaritan Policy" has been launched by which state / union territory government?

 A) Delhi B) Karnataka C) Telangana D) Gujarath