Project Manager Questions


Q:

Which class of IP address provides a maximum of only 254 host addresses per network ID?

A) Class A B) Class B
C) Class C D) Class D
 
Answer & Explanation Answer: C) Class C

Explanation:

Class C network address has only 8 bits for defining hosts : 28-2 = 256 - 2 = 254

Report Error

View Answer Workspace Report Error Discuss

8 9460
Q:

Artists are generally whimsical. Some of them are frustrated. Frustrated people are prone to be drug addicts.

Based on these statements which of the following conclusions is true?

A) All frustrated people are drug addicts B) Frustrated people are whimsical
C) All drug addicts are artists D) Some artists may be drug addicts
 
Answer & Explanation Answer: D) Some artists may be drug addicts

Explanation:
Report Error

View Answer Workspace Report Error Discuss

5 3826
Q:

One type of liquid contains 25 % of benzene, the other contains 30% of benzene. A can is filled with 6 parts of the first liquid and 4 parts of the second liquid. Find the percentage of benzene in the new mixture.

A) 27 % B) 26 %
C) 29 % D) 21 %
 
Answer & Explanation Answer: A) 27 %

Explanation:

Let the percentage of benzene = X
(30 - X)/(X- 25) = 6/4 = 3/2
=> 5X = 135  
X = 27

So, required percentage of benzene = 27 %

Report Error

View Answer Workspace Report Error Discuss

10 1947
Q:

There are 209 doctors and nurses in a hospital. If the ratio of the doctors to the nurses is 11 : 8, then how many nurses are there in the hospital?

A) 88 B) 96
C) 108 D) 121
 
Answer & Explanation Answer: A) 88

Explanation:

Given,
The ratio of the doctors to the nurses is 11 : 8
Number of nurses = 8/19 x 209 = 88.

Report Error

View Answer Workspace Report Error Discuss

2 1471
Q:

A watch which gains uniformly is 2 minutes low at noon on Tuesday and is 4 min 48 sec fast at 2 p.m. on the following Tuesday. When was it correct ?

A) 12 p.m. on Wednesday B) 2 p.m. on Thursday
C) 3 p.m. on Thursday D) 2 p.m. on Wednesday
 
Answer & Explanation Answer: B) 2 p.m. on Thursday

Explanation:

Time from 12 p.m. on Tuesday to 2 p.m. on the following Tuesday = 7 days 2 hours.
= 170 hours.
The watch gains = (2 + 4 x 4/5) min
= 34/5 min. in 170 hrs.
Now, 34/5 min are gained in 170 hrs.
Then, 2 min are gained in (170 x 5/34 x 2) hrs.
Watch is correct after 2 days 2 hrs after 12 p.m. on Tuesday, i.e., it will be correct at 2 p.m. on Thursday.

Report Error

View Answer Workspace Report Error Discuss

5 1461
Q:

How many 3-digit numbers can be formed from the digits 2, 3, 5, 6, 7 and 9 which are divisible by 5 and none of the digits is repeated ?

A) 15 B) 20
C) 5 D) 10
 
Answer & Explanation Answer: B) 20

Explanation:

Since each number to be divisible by 5, we must have 5 0r 0 at the units place. But in given digits we have only 5.

 

So, there is one way of doing it.

 

Tens place can be filled by any of the remaining 5 numbers.So, there are 5 ways of filling the tens place.

 

The hundreds place can now be filled by any of the remaining 4 digits. So, there are 4 ways of filling it.

 

Required number of numbers = (1 x 5 x 4) = 20.

Report Error

View Answer Workspace Report Error Discuss

8 1368
Q:

Give an example for the use of volatile keyword in c++ ?

Answer

Most of the times compilers will do optimization to the code to speed up the program. For example in the below code,


int k = 15;
while( k == 15)


{
// Do something
}


compiler may think that value of 'k' is not getting changed in the program and replace it with 'while(true)', which will result in an infinite loop. In actual scenario, the value of 'k' may be getting updated from outside of the program.


Volatile keyword is used to tell compiler that the variable declared using 'volatile' may be used from outside the current scope, so that compiler won't apply any optimization. This matters only in case of multi-threaded applications.


In the above example if variable 'k' was declared using volatile, compiler will not optimize it. In shot, value of the volatile variables will be read from the memory location directly.

Report Error

View answer Workspace Report Error Discuss

2 1232
Q:

Can any object be stored in a View state in .NET ?

Answer

View state is a repository in an ASP.NET page that can store values that need to be retained during postback.

Report Error

View answer Workspace Report Error Discuss

2 1214