Exams


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

29 112844
Q:

Select the antonym of

bland

A) blah B) insipid
C) tame D) lively
 
Answer & Explanation Answer: D) lively

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 112221
Q:

Select the antonym of

extravagance

A) expensive B) thrift
C) cheap D) absurd
 
Answer & Explanation Answer: B) thrift

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 112098
Q:

Select the synonym of

repentance

A) intransigent B) obdurate
C) resolute D) remorse
 
Answer & Explanation Answer: D) remorse

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 111985
Q:

Select the antonym of

 

panacea

 

A) malady B) cure
C) elixir D) nostrum
 
Answer & Explanation Answer: A) malady

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 111689
Q:

Choose the pure substance from the list below.

 

A) Sugar B) Lemonade
C) Air D) Sea water
 
Answer & Explanation Answer: A) Sugar

Explanation:
Report Error

View Answer Report Error Discuss

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

3 111444
Q:

Choose the synonym of

 

to thrash

 

A) to pin B) to grasp
C) to pinch D) to beat up
 
Answer & Explanation Answer: D) to beat up

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 111219
Q:

In the following question, select the related word pair from the given alternatives.

Hospital : Treatment : : ? : ?

 

A) Product : Production B) Government : Country
C) Justice : Court D) School : Education
 
Answer & Explanation Answer: D) School : Education

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Analogy
Exam Prep: Bank Exams

1 111195