IT Trainer Questions


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

4 7810
Q:

How many balls?

Number of balls in the figure...

balls1523099634.jpg image

Answer

You have to actually count all the balls in the pyramid.
Simple way is to count the balls in each level.


So lower most level lets say 1st level has 4 x 4 balls; i.e. 16 balls
Similarly 2nd level has 3 x 3 balls; i.e. 9 balls.
3rd level has 2 x 2 balls; i.e. 4 balls.
The top most level has just 1 ball.


So the total number of balls is 16+9+4+1 = 30.


 


So the image has 30 Balls in all.

Report Error

View answer Workspace Report Error Discuss

11 7775
Q:

19 persons do 19 programs in 19 hours . If they take 15 mins interval and then how much time they need to do 52 programs.

A) 23 hours B) 47 hrs 15 min
C) 52 hrs 15 min D) 22 hrs 15 min
 
Answer & Explanation Answer: C) 52 hrs 15 min

Explanation:

Since they can do 19 programs in 19 hours, Then 52 programs in 52 hours respectively.
And a 15 min interval
Total time they take to do 52 programs is 52 hours 15 minutes.

Report Error

View Answer Report Error Discuss

11 7719
Q:

Please enter the Missing number: 4 8 14 22 ?

A) 28 B) 32
C) 46 D) 36
 
Answer & Explanation Answer: B) 32

Explanation:

Here the given series follows a pattern that,

2- 0 = 4  

3- 1 = 8  

4- 2 = 14

5- 3 = 22

6- 4 = 32

Hence, the missing number is 32

 

 

Method 2 ::

The difference between 4 and 8 is 4, the difference between 8 and 14 is 6, the difference between 14 and 22 is 8. So the next difference between 22 and the next number will be 10 since it follows (4,6,8,10 - add +2 each time)

Hence, 22 + 10 = 32 is the missing number.

Report Error

View Answer Report Error Discuss

Filed Under: Odd Man Out
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

8 7685
Q:

What is the gram formula mass of Li2SO4?

A) 101.2487 B) 109.9446
C) 111.2687 D) 106.5871
 
Answer & Explanation Answer: B) 109.9446

Explanation:

The term gram formula mass is synonymous with molecular mass. So, to get this, we must add molar mass of all the elements in this compound.

 

Given compound is Lithium Sulphate - Li2SO4

Elemental calculation ::

Li  -  Lithium   -   6.941    -     2   -   13.88200 %
S  -  Sulfur     -    32.065   -    1   -   32.065 %
O  -  Oxygen   -   15.9994  -    4   -   63.9976 %

Now, total = 12.6264 + 29.1647 + 58.2090 = 109.9446 

 

Hence, the gram formula mass of Li2SO4 = 109.9446.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

4 7619
Q:

A train covers 180 km distance in 5 hours. Another train covers the same distance in 1 hour less. What is the difference in the distances covered by these trains in one hour if they are moving in the same direction?

A) 15 kms B) 9 kms
C) 6 kms D) 18 kms
 
Answer & Explanation Answer: B) 9 kms

Explanation:

The first train covers 180 kms in 5 hrs

=> Speed = 180/5 = 36 kmph

Now the second train covers the same distance in 1 hour less than the first train => 4 hrs

=> Speed of the second train = 180/4 = 45 kmph

Now, required difference in distance in 1 hour = 45 - 36 = 9 kms.

Report Error

View Answer Report Error Discuss

Filed Under: Time and Distance
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

11 7587
Q:

If a soldier fires 7 shots from a gun in 12 minutes then find the total number of shots fired by the man in 3/2 hrs.

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

Explanation:

Here given soldier shots 7 shots in 12 min

=> 1 shot doen't take any time in 12 min 

=> Only 6 shots take 12 min 

12 min ------ 6 shots 

90 min ------ ? shots 

=> 90 x (6/12) = 45 

Therefore, total shots fired in 90 minutes = 45 + 1 = 46 shots.

Report Error

View Answer Report Error Discuss

11 7542
Q:

Ajay who is a King, at his eleventh hour, called his three queens and distributed his gold in the following way: He gave 50% of his wealth to his first wife, 50% of the rest to his second wife and again 50% of the rest to his third wife. If their combined share is worth1,30,900 kilograms of gold, find the quantity of gold King Ajay was having initially?

A) 153145 kgs B) 147890 kgs
C) 152400 kgs D) 149600 kgs
 
Answer & Explanation Answer: D) 149600 kgs

Explanation:

Let the total quantity of gold be p kgs.

According to the question,

50% of p + 25% of p + 12.5% of p = 130900

87.5% of p = 130900

p = 130900 x 100/87.5  = 149600 kgs.

 

Therefore, the initial gold quantity that king has = p = 149600 kgs.

Report Error

View Answer Report Error Discuss

7 7513