GATE Questions

Q:

What is the output of this program ?

class main_arguments {
            public static void main(String [ ] args)
            {
                String [][] argument = new String[2][2];
                int x;
                argument[0] = args;
                x = argument[0].length;
                for (int y = 0; y < x; y++)
                    System.out.print(" " + argument[0][y]);           
            }
        }

A) 1 1 B) 1 0
C) 1 0 3 D) 1 2 3
 
Answer & Explanation Answer: D) 1 2 3

Explanation:

In argument[0] = args;, the reference variable arg[0], which was referring to an array with two elements, is reassigned to an array (args) with three elements.
Output:
$ javac main_arguments.java
$ java main_arguments
1 2 3

Report Error

View Answer Report Error Discuss

Filed Under: Java
Exam Prep: GATE

6 83191
Q:

One rabbit saw 6 elephants while going towards River. Every elephant saw 2 monkeys are going towards river. Every monkey holds one tortoice in their hands.

How many animals are going towards the river?

A) 14 B) 11
C) 8 D) 5
 
Answer & Explanation Answer: D) 5

Explanation:

From the given data,

1 rabbit is going towards river not the six eephants. And these 6 elephants saw 2 monkeys are going towards river. Each monkey is holding 1 tortoice.

                       One_rabbit_saw_6_elephants_while_going_towards_River._Every_elephant_saw_2_monkeys_are_going_towards_river_._Every_monkey_holds_one_tortoice_in_their_hands_._1536581196.jpg image

Hence, number of animals going towards river are 1 rabbit, 2 monkeys and 2 tortoice

= 1 + 2 + 2

= 5.

Report Error

View Answer Report Error Discuss

Filed Under: Logic Puzzles
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

381 82999
Q:

Which river of India is called Vridha Ganga?

A) Krishna B) Godavari
C) Kaveri D) Narmada
 
Answer & Explanation Answer: B) Godavari

Explanation:

Godavari, India's second longest river after the river Ganga and is one among the peninsular rivers.

 

 Which_river_of_India_is_called_Vridha_Ganga1545973278.jpg image

 

The river Godavari is often referred to as Vridha Ganga because of its large size and extent among the peninsular rivers.

Report Error

View Answer Report Error Discuss

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

381 81020
Q:

Find the Odd Number in the given Number Series?

3, 6.5, 14, 29, 64, 136

A) 14 B) 64
C) 29 D) 136
 
Answer & Explanation Answer: C) 29

Explanation:

The Given number series 3, 6.5, 14, 29, 64, 136 follows a pattern that

3

3 x 2 + 0.5 = 6.5

6.5 x 2 + 1 = 14

14 x 2 + 2 = 30 29

30 x 2 + 4 = 64

64 x 2 + 8 = 136

Thus the wrong number in the series is 29

Report Error

View Answer Report Error Discuss

6 80820
Q:

90 D in a R A

Answer

90 D in a R A => 90 degrees in a Right Angle. 


This is similar to 


26 L of the A = 26 Letters of the Alphabet


12 S of the Z.

Report Error

View answer Workspace Report Error Discuss

374 80679
Q:

Complete the missing number in the given series.

5,  20,  76,  (—),  448

A) 185 B) 225
C) 415 D) 232
 
Answer & Explanation Answer: B) 225

Explanation:

The series follows the following pattern

5 X 5 – 5 = 20

20 X 4 – 4 = 76

76 X 3 – 3 = 225

225 X 2 – 2 = 448

Hence, the term 225 denoted by (d) completes the series

Report Error

View Answer Report Error Discuss

Filed Under: Odd Man Out
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

8 80624
Q:

How many weekends in a year?

A) 52 B) 53
C) 103 D) 104
 
Answer & Explanation Answer: A) 52

Explanation:

Weekend means Saturday & Sunday together. In total we have 52 weeks in a year. So there are 52 weekends in a year.

In normal we have 104 Weekend Days.

 We know that a Each normal year has 365 days or 52 weeks plus one day, and each week has two weekend days, which means there are approximately 104 weekend days each year.
Whereas in a leap year we have 366 days it adds one more day to the year. And what makes the change is the starting day of the year.

Report Error

View Answer Report Error Discuss

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

169 80046
Q:

Which of the following reactions are exothermic?

 

1)   C + O2   CO22)  2Mg + O2   2MgO3)  CuSO4 + 5H2O   CuSO4.5H2O4)  All the above

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: D) 4

Explanation:

Here all the given options are Exothermic reactions. Exothermic reactions are those reactions which involves the release of heat.

 

Generally all the combining reactions are exothermic in nature.

Report Error

View Answer Report Error Discuss

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

14 79995