Searching for "st"

Q:

what will be the output of the following code?

class Value
{
    public int i = 15;
}
public class Test
{
    public static void main(String argv[])
    {
        Test t = new Test();
        t.first();
    }
    public void first()
    {
        int i = 5;
        Value v = new Value();
        v.i = 25;
        second(v, i);
        System.out.println(v.i);
    }
    public void second(Value v, int i)
    {
        i = 0;
        v.i = 20;
        Value val = new Value();
        v =  val;
        System.out.println(v.i + " " + i);
    }
}

A) 15 0 2 B) 15 0 0
C) 15 20 0 D) 15 0 20
 
Answer & Explanation Answer: D) 15 0 20

Explanation:
Report Error

View Answer Report Error Discuss

Q:

A university library budget committee must reduce exactly five of eight areas of expenditure—I, J, K, L, M, N, O and P—in accordance with the following conditions:

If both I and O are reduced, P is also reduced.
If L is reduced, neither N nor O is reduced.
If M is reduced, J is not reduced.
Of the three areas J, K, and N exactly two are reduced.

 

Question :

If both K and N are reduced, which one of the following is a pair of areas neither of which could be reduced?

A) I, L B) J, L
C) J, M D) I, J
 
Answer & Explanation Answer: B) J, L

Explanation:

This question concerns a committee’s decision about which five of eight areas of expenditure to reduce. The question requires you to suppose that K and N are among the areas that are to be reduced, and then to determine which pair of areas could not also be among the five areas that are reduced.

The fourth condition given in the passage on which this question is based requires that exactly two of K, N, and J are reduced. Since the question asks us to suppose that both K and N are reduced, we know that J must not be reduced:

Reduced         ::      K, N
Not reduced   ::      J

The second condition requires that if L is reduced, neither N nor O is reduced. So L and N cannot both be reduced. Here, since N is reduced, we know that L cannot be. Thus, adding this to what we’ve determined so far, we know that J and L are a pair of areas that cannot both be reduced if both K and N are reduced:

Reduced        ::      K, N
Not reduced  ::      J, L

Answer choice (B) is therefore the correct answer.

Report Error

View Answer Report Error Discuss

Q:

Who gave the title Father of The Nation to Mahatma Gandhi? 

A) Rabindra Nath Tagore B) Subhas Chandra Bose
C) G.K. Gokel D) None of above
 
Answer & Explanation Answer: B) Subhas Chandra Bose

Explanation:

The title of Father of the Nation was given to Mohan Das Karamchand Gandhi known as Mahathma Gandhi by Netaji Subhas Chandra Bose.

He was the first who addressed Mahatma Gandhi as Father of the Nation on Singapore Radio on July 6, 1944.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

Q:

Difference between Arraylist and Linked list?

Answer

ArrayList and LinkedList both implements List interface and maintains insertion order. Both are non synchronized classes.


 


But there are many differences between ArrayList and LinkedList classes that are given below.


 

ArrayList    V/s     LinkedList ::


 

1) ArrayList internally uses dynamic array to store the elements.


                   Whereas


LinkedList internally uses doubly linked list to store the elements.


 

2) Manipulation with ArrayList is slow because it internally uses array. If any element is removed from the array, all the bits are shifted in memory.


                   Whereas


Manipulation with LinkedList is faster than ArrayList because it uses doubly linked list so no bit shifting is required in memory.


 

3) ArrayList class can act as a list only because it implements List only.


                   Whereas


LinkedList class can act as a list and queue both because it implements List and Deque interfaces.


 

4) ArrayList is better for storing and accessing data.


                   Whereas


LinkedList is better for manipulating data.

Report Error

View answer Workspace Report Error Discuss

Q:

Find the Value of ?

5.112.2+5.553.3+6.31.4+7.22.001 = ? x 3.34

A) 81 B) 77
C) 73 D) 89
 
Answer & Explanation Answer: D) 89

Explanation:

This can be done in a method called Approximation.

Now, 

52 + 63 + 6 + 72 = ? x 3.3425 + 216 + 6 + 49 = ? x 3.34296 = ? x 3.34? = 2963.34 = 88.622  89 

Report Error

View Answer Report Error Discuss

Filed Under: Mathematical Operations
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

Q:

The Largest Component of National Income is

A) Proprietors Income B) Compensation of Employees
C) Corporate Profits D) Rental Income
 
Answer & Explanation Answer: B) Compensation of Employees

Explanation:

National Income is the total income value of the goods and services produced by the residents of a country, usually during the period of one year.

National Income is categorized into 6 components. They are :

1. Compensation of Employees (Wages and Benefits)
2. Corporate Profits
3. Rental Income
4. Proprietors Income (Income of unincorporated business)
5. Net Interest

The Largest Component of National Income is Compensation of Employees.

 

The Largest component of National Income in India is Service Sector.

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

Q:

What do you understand by - 'If K is there L has to be there'

A) K & L will always be together B) K is not there, then L will not be there
C) k is there, then L will also be there D) K & L will always be not together
 
Answer & Explanation Answer: C) k is there, then L will also be there

Explanation:

This would not mean that K and L will always be together. It just implies that, if K is there, then L will also be there.

At the same time, it can happen that L is there but K isn't.

Remember, the condition is on K, not on L.

Report Error

View Answer Report Error Discuss

Filed Under: Analytical Reasoning
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

Q:

The capacity of a tank is 2400 m3.  A pump can be used both for filling and emptying the tank.  The emptying capacity of the pump is 10 m3/minute higher than its filling capacity. And also, the pump needs 8 minutes less to empty the tank than to fill it. Find the filling capacity of the pump. 

A) 46 cub.m/min B) 44 cub.m/min
C) 48 cub.m/min D) 50 cub.m/min
 
Answer & Explanation Answer: D) 50 cub.m/min

Explanation:

Let filling capacity of the pump be 'F' m3/min

Then, the filling capacity of the pump will be (F + 10) m3/min

From the given data,

2400F - 2400F+10= 8 2400 F+10-FF(F+10) =8 F2 + 10F - 3000 = 0 F = 50 m3/min

Report Error

View Answer Report Error Discuss