Searching for "If"

Q:

In some quantity of ghee, 60% is pure ghee and 40% is vanaspati. If 10 kg of pure ghee is added, then the strength of vanaspati ghee becomes 20%. The original quantity was : 

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

Explanation:

Let the original quantity be x kg. Vanaspati ghee in x kg  =  (40x / 100 )kg = (2x / 5) kg. 

Now, (2x/5)/(x + 10) = 20/100

=> 2x / (5x + 50) = 1/5 

=> 5x = 50 

=> x = 10.

Report Error

View Answer Report Error Discuss

Filed Under: Percentage

Q:

A bag contains 600 coins of 25 p denomination and 1200 coins of 50 p denomination. If 12% of 25 p coins and 24% of 50 p coins are removed, the percentage of money removed from the bag is nearly :

A) 21.6 % B) 15.3 %
C) 14.6 % D) 12.5 %
 
Answer & Explanation Answer: A) 21.6 %

Explanation:

Total money = Rs.[600*(25/100)+1200*(50/100)]= Rs. 750.

 

25 paise coins removed = Rs. (600*12/100) = 72.

 

50 paise coins removed = Rs. (1200*24/100)= 288.

 

Money removed =Rs.(72*25/100+288*50/100)  = Rs.162.

 

Required percentage = (162/750*100)% = 21.6 %.

Report Error

View Answer Report Error Discuss

Filed Under: Percentage

Q:

class Hell {

public static void main(String[] args) {

Integer i = 42;

String s = (i<40)?"life":(i>50)?"base":"ball";

System.out.println(s);

}

}

A) null B) ball
C) base D) None
 
Answer & Explanation Answer: B) ball

Explanation:

D is correct. This is a ternary nested in a ternary with a little unboxing thrown in.Both of the ternary expressions are false.

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion(A)   :    An iron ball floats on mercury but gets immersed in water. 

Reason (R)     :   The specific gravity of iron is more than that of mercury. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: C) A is true but R is false.

Explanation:

Iron with specific gravity less than that of mercury but more than that of water, floats in the former but gets immersed in the second 

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Explain the difference between value types and reference types

Answer

Value type :


 



  • Stores the data

  • The value of value types is stored on the managed stack

  • They are lighter objects 

  • One variable can have only one value


Reference Type :



  • Stores the reference to the data

  • A reference type is allocated on the heap

  • They are heavier objects

  • Several variables can reference the same data


 

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion (A)  : In India, females have higher life expectancy than the males. 

Reason (R)    : Females receive a better diet. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) Both A and R are false.
 
Answer & Explanation Answer: D) Both A and R are false.

Explanation:

In India, due to high birth rate and due to neglect, females have a lower life expectancy than the males and although females need a better diet, they do not receive it. 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Which among the following are not access Specifiers in C++?

A) Public B) Protected
C) Default D) Private
 
Answer & Explanation Answer: C) Default

Explanation:

Default is the access specifier in java not in C++

Report Error

View Answer Report Error Discuss

Filed Under: C++

Q:

The substances that are composed of to or more different elements in fixed proportion by mass are called

A) mixture B) compound
C) element D) None of these
 
Answer & Explanation Answer: B) compound

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry