Searching for "US"

Q:

What are the various elements of OOPS?

Answer

Various elements of OOP are:


• Object


• Class


• Method


• Encapsulation


• Information Hiding


• Inheritance


• Polymorphism

Report Error

View answer Workspace Report Error Discuss

Subject: Java

Q:

Total money with Naresh and Ajay is 28 percent of that with Usman. How much money is Ajay having ? 

I. Usman has got Rs 75000. 

II. The ratio of money of Naresh to money held by Ajay is 1: 3. 

A) If the data in statement I alone are sufficient to answer the question B) If the data in statement II alone are sufficient answer the question
C) If the data either in I or II alone are sufficient to answer the question; D) If the data in both the statements together are needed.
 
Answer & Explanation Answer: D) If the data in both the statements together are needed.

Explanation:

From 1, we find that 

Total money with Naresh and Ajay = Rs {(28/1OO)x 75000} = 21000. 

From II, we find that money with Ajay = Rs {(3/4) x 21000 } = 15750. 

So, both I and II art required 

Report Error

View Answer Report Error Discuss

Filed Under: Data Sufficiency

Q:

Buses are always punctual in city X. How long, at the most, will Mr. Roy have to wait for the bus ?

I. Mr. Roy has come to the bus stand at 9 A.M. 

II. There is a bus at 10 A.M. and possibly another bus even earlier. 

A) If the data in statement I alone are sufficient to answer the question B) If the data in statement II alone are sufficient answer the question
C) If the data either in I or II alone are sufficient to answer the question; D) If the data in both the statements together are needed.
 
Answer & Explanation Answer: D) If the data in both the statements together are needed.

Explanation:

From both the given statements, we find that Mr. Roy reached the bus stand at 9 AM and a bus is sure to arrive at 10 AM. So. Mr. Roy has to wait for at the most one hour. 

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Data Sufficiency

Q:

Who is the newly elected president of Belarus?

A) Ranjith Nagpal B) Alexander Lukashenka
C) APJ Abdhul kalam D) Herculus ivan
 
Answer & Explanation Answer: B) Alexander Lukashenka

Explanation:

 Alexander Lukashenka is the newly elected president of Belarus

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

Q:

try { int x = Integer.parseInt("two"); }

Which could be used to create an appropriate catch block?

A) ClassCastException B) IllegalStateException
C) NumberFormatException D) None
 
Answer & Explanation Answer: C) NumberFormatException

Explanation:

C is correct. 'Integer.parseInt' can throw a NumberFormatException, and IllegalArgumentException is its superclass 

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

A man spends 35% of his income on food, 25% on children's education and 80% of the remaining on house rent. What percent of his income he is left with ?

A) 6 % B) 8 %
C) 10 % D) 12 %
 
Answer & Explanation Answer: B) 8 %

Explanation:

Let the total income be x. 

Then, income left = (100 - 80)% of [100 -  (35 + 25)] % of x = 20% of 40% of x = [(20/100) * (40/100) * 100] % of x = 8 % of x.

Report Error

View Answer Report Error Discuss

Filed Under: Percentage

Q:

The current birth rate per thousand is 32, whereas corresponding death rate is 11 per thousand. The net growth rate in terms of population increase in percent is given by :

A) 1.2 % B) 2.1 %
C) 3.1 % D) 1.3 %
 
Answer & Explanation Answer: B) 2.1 %

Explanation:

 Net growth on 1000 = (32 - 11) = 21. Net growth on 100 =(21/1000 * 100) %= 2.1%.

Report Error

View Answer Report Error Discuss

Filed Under: Percentage

Q:

A housewife saved Rs. 2.50 in buying an item on sale. If she spent Rs. 25 for the item, approximately how much percent she saved in the transaction ?

A) 8 B) 9
C) 10 D) 11
 
Answer & Explanation Answer: B) 9

Explanation:

Actual price = Rs. (25 + 2.50) = Rs. 27.50. 

 

Saving = 2.50

 

Percentage Saving = [(2.50/27.50)*100]

 

= 2500/275

 

9111%

 

9%

Report Error

View Answer Report Error Discuss

Filed Under: Percentage