Searching for "US"

Q:

Suppose 7 students are staying in a hall in a hostel and they are allotted 7 beds. Among them, Parvin does not want a bed next to Anju because Anju snores. Then, in how many ways can you allot the beds?

A) 2400 B) 6400
C) 3600 D) 7200
 
Answer & Explanation Answer: C) 3600

Explanation:

Let the beds be numbered 1 to 7.

 

Case 1 : Suppose Anju is allotted bed number 1. 

Then, Parvin cannot be allotted bed number 2. 

So Parvin can be allotted a bed in 5 ways. 

After alloting a bed to Parvin, the remaining 5 students can be allotted beds in 5! ways.

So, in this case the beds can be allotted in 5´5!ways = 600 ways.

 

Case 2 : Anju is allotted bed number 7. 

Then, Parvin cannot be allotted bed number 6 

As in Case 1, the beds can be allotted in 600 ways.

 

Case 3 : Anju is allotted one of the beds numbered 2,3,4,5 or 6. 

Parvin cannot be allotted the beds on the right hand side and left hand side of Anju’s bed. For example, if Anju is allotted bed number 2, beds numbered 1 or 3 cannot be allotted to Parvin.

Therefore, Parvin can be allotted a bed in 4 ways in all these cases.

After allotting a bed to Parvin, the other 5 can be allotted a bed in 5! ways.

Therefore, in each of these cases, the beds can be allotted in 4´ 5! = 480 ways. 

The beds can be allotted in (2x 600 + 5 x 480)ways = (1200 + 2400)ways = 3600 ways

Report Error

View Answer Report Error Discuss

Q:

Suppose you can travel from a place A to a place B by 3 buses, from place B to place C by 4 buses, from place C to place D by 2 buses and from place D to place E by 3 buses. In how many ways can you travel ?from A to E?

A) 36 B) 64
C) 74 D) 72
 
Answer & Explanation Answer: D) 72

Explanation:

 

The bus fromA to B can be selected in 3 ways.

The bus from B to C can be selected in 4 ways.

The bus from C toD can be selected in 2 ways.

The bus fromD to E can be selected in 3 ways.

So, by the General Counting Principle, one can travel fromA to E in 3 x 4 x 2 x 3 ways = 72

 

Report Error

View Answer Report Error Discuss

Q:

The PS command prints the process status for only some of the running processes.

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

The PS command prints the process status for some or all of the running processes

Report Error

View Answer Workspace Report Error Discuss

Subject: Operating Systems
Exam Prep: GATE

Q:

getppid() system call is used to bias the existing priority of a process 

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

It is used to get parent process identifier

Report Error

View Answer Workspace Report Error Discuss

Subject: Operating Systems
Exam Prep: GATE

Q:

Which among the following is a system call used for process management

A) fork() B) exec()
C) getppid() D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

All the above listed are the System calls for process management

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems
Exam Prep: GATE
Job Role: Software Architect

Q:

onclick="window.open()":This attribute of HTML control is used to open a page in new window

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

To open a page in a new window, you have to use client script using onclick="window.open()" attribute of HTML control.

Report Error

View Answer Workspace Report Error Discuss

Subject: .NET
Job Role: Software Architect

Q:

Which among the following is used to send data from one page to another with the URL but you can send limited size of data with the URL

A) Cookies B) View state
C) Querystring D) None
 
Answer & Explanation Answer: C) Querystring

Explanation:

Querystring is used to send data from one page to another with URL.But it can store only some minimum amount of data.Most browsers allow a limit of 255 characters on URL length

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Job Role: Software Architect

Q:

Which among the following command is used to implement view state

A) _VIEWSTATE B) VIEW_STATE
C) VIEWSTATE_ D) None
 
Answer & Explanation Answer: A) _VIEWSTATE

Explanation:

_VIEWSTATE is the command used to implement view state

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Job Role: Software Architect