Searching for "By"

Q:

Just by seeing the signature of the bean how can you specity whether it is a Statefull of Stateless Session Bean?

Answer

The create method in a stateless bean cannot have arguments, and can only have a single method called create(). While create in Stateful bean can have arguments and could be any method starting with create string eg. create(arg1, arg2, ...). Although it is not compiler checked but in stateless bean the ejb Passivate() and ejb Active() methods has to be empty as these functions are never called by EJB container. As conceptually in stateful session bean we might need to store the clients information hence arguments in createare necessary. While in stateless bean we don't hence no arguments are necessary. It's intutive isn't intutive isn't. I my life I haven't seen such a futuristic server programming tool as EJB.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

Q:

The average of runs of a cricket player of 10 innings was 32. How many runs must he make in his next innings so as to increase his average of runs by 4 ?

A) 76 B) 79
C) 85 D) 87
 
Answer & Explanation Answer: A) 76

Explanation:

Average = total runs / no.of innings = 32 

So, total = Average x no.of innings = 32 x 10 = 320.

 

Now increase in avg = 4runs. So, new avg = 32+4 = 36runs 

Total runs = new avg x new no. of innings = 36 x 11 = 396 

Runs made in the 11th inning = 396 - 320 = 76

Report Error

View Answer Report Error Discuss

Filed Under: Average

Q:

The average monthly salary of 20 employees in an organisation is Rs. 1500. If the manager's salary is added, then the average salary increases by Rs. 100. What is the manager's monthly salary ?

A) 3600 B) 3700
C) 3800 D) 3900
 
Answer & Explanation Answer: A) 3600

Explanation:

Manager's monthly salary Rs. (1600 * 21 - 1500 * 20) = Rs. 3600.

Report Error

View Answer Report Error Discuss

Filed Under: Average

Q:

After replacing an old member by a new member, it was found that the average age of five members of a club is the same as it was 3 years ago. What is the difference between the ages of the replaced and the new member ?

A) 12 B) 13
C) 14 D) 15
 
Answer & Explanation Answer: D) 15

Explanation:

i) Let the ages of the five members at present be a, b, c, d & e years. 

And the age of the new member be f years. 

ii) So the new average of five members' age = (a + b + c + d + f)/5 ------- (1) 

iii) Their corresponding ages 3 years ago = (a-3), (b-3), (c-3), (d-3) & (e-3) years 

So their average age 3 years ago = (a + b + c + d + e - 15)/5 = x ----- (2) 

==> a + b + c + d + e = 5x + 15 

==> a + b + c + d = 5x + 15 - e ------ (3) 

iv) Substituting this value of a + b + c + d = 5x + 15 - e in (1) above, 

The new average is: (5x + 15 - e + f)/5 

Equating this to the average age of x years, 3 yrs, ago as in (2) above, 

(5x + 15 - e + f)/5 = x 

==> (5x + 15 - e + f) = 5x 

Solving e - f = 15 years. 

Thus the difference of ages between replaced and new member = 15 years.

Report Error

View Answer Report Error Discuss

Filed Under: Average

Q:

The average weight of a class of 24 students is 35 kg. If the weight of the teacher be included, the average rises by 400 g. The weight of the teacher is : 

A) 45 kg B) 46 kg
C) 47 kg D) 48 kg
 
Answer & Explanation Answer: A) 45 kg

Explanation:

Weight of the teacher = (35.4 x 25 - 35 x 24) kg = 45 kg.

Report Error

View Answer Report Error Discuss

Filed Under: Average

Q:

Out of 9 persons, 8 persons spent Rs. 30 each for their meals. The ninth one spent Rs. 20 more than the average expenditure of all the nine. The total money spent by all of them was : 

A) Rs. 292.50 B) Rs. 297.50
C) Rs. 298 D) Rs. 298.50
 
Answer & Explanation Answer: A) Rs. 292.50

Explanation:

Let the average expenditure be Rs. x Then,

 

9x=[(8*30)+(x+20)]<=>9x =x+260 <=> x =32.50

 

Total money spent = 9x =  Rs. (9 x 32.5O) = Rs 292. 50

Report Error

View Answer Report Error Discuss

Filed Under: Average

Q:

Give a circuit to divide frequency of clock cycle by two?

Answer

You can divide the frequency of a clock by just implementing T Flip flop.


Give clock as clock input and tie the T input to logic 1.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

Q:

16 children are to be divided into two groups A and B of 10 and 6 children. The average percent marks obtained by the children of group A is 75 and the average percent marks of all the 16 children is 76. What is the average percent marks of children of group B ?

A) 233/3 B) 243/4
C) 254/5 D) 345/7
 
Answer & Explanation Answer: A) 233/3

Explanation:

 Required average = [(76 * 16) - (75 * 10)] / 6 = (1216 - 750)/6 = 466/3 = 233 /3.

 

Report Error

View Answer Report Error Discuss

Filed Under: Average