Interview 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 83264
Q:

Which of the following can't be done with client-side JavaScript?

A) Sending a form's contents by email B) Storing the form's contents to a database file on the server
C) Validating a form D) None of the above
 
Answer & Explanation Answer: B) Storing the form's contents to a database file on the server

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

50 64426
Q:

A phrase expressing the aim of a group or party?

Answer

a_phrase_expressing_the_aim_of_a_group_or_party1538566769.jpg image


 


The aim of a group or party must be


• The mission or purpose of the group - what business they are in.


• The vision or direction they are headed - often expressed as the impact they want to have distinct from their purpose. 


• The strategies for how they will get from where they are today to where they are headed; these are broadly stated, like a 50,000-foot overview, and are typically few in number, usually no more than 3-5 key areas of focus. 


• The goals and objectives for how the strategies will be implemented; these are sometimes referred to as tactics or operational plans; there is usually no specific limit on the number of these, and they are more specific and not so far out in the future, often 1-2 years or less.

Report Error

View answer Workspace Report Error Discuss

36 62849
Q:

The main components of market risk are 

a) Liquidity risk     b) Interest rate risk       c) Currency risk

A) Only a B) both a and b
C) only c D) all a, b and c
 
Answer & Explanation Answer: D) all a, b and c

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

12 51194
Q:

In which year SBI was Nationalised ?

A) 1995 B) 1955
C) 1980 D) 1969
 
Answer & Explanation Answer: B) 1955

Explanation:

The nationalisation of banks in India took place in 1969 by Mrs. Indira Gandhi the then prime minister. It nationalised 14 banks then. These banks were mostly owned by businessmen and even managed by them. Before the steps of nationalisation of Indian banks, only State Bank of India (SBI) was nationalised. It took place in July 1955 under the SBI Act of 1955.

 In_which_year_SBI_was_Nationalised1559024417.jpg image

Nationalisation of Seven State Banks of India (formed subsidiary) took place on 19th July, 1960.

 

1955 : Nationalisation of State Bank of India.
1969 : Nationalisation of 14 major banks.
1980 : Nationalisation of seven banks with deposits over 200 crores.

Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: CAT , Bank Exams
Job Role: Bank PO , Bank Clerk

53 44562
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

8 40355
Q:

try { int x = Integer.parseInt("two"); }

Which could be used to create an appropriate catch block?

A) ClassCastException B) IllegalStateException
C) NumberFormatException D) None
 
Answer & Explanation Answer: C) NumberFormatException

Explanation:

C is correct. 'Integer.parseInt' can throw a NumberFormatException, and IllegalArgumentException is its superclass 

Report Error

View Answer Report Error Discuss

Filed Under: Java

8 38068
Q:

What is the meaning of TDS? How it is charged?

Answer

TDS Meaning :


TDS means TAX DEDUCTABULE AT SOURCE. It is charged on Base Amount. 


TDS is tax charged by the customer who gets the services from Vendor or supplier. Here Customer is responsible to charge it and pay to the government.


Different types of TDS : 


1) TDS on salary has to be deducted on salary paid to employee by employer if it crosses the tax limit. And pay to the government on or before due date.


2) In case of TDS on contractors or profession or others, there is slab that min tax, surcharge,  education cess plus higher education cess, it is different and finance minister may change or keep same or remove in every year budget. Secondly you can deduct the TDS on bill amount while paying or if advance is paid.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

108 37916