Interview Questions

Q:

How to identify a given positive decimal number as even/odd without using % or / operator ?

Answer

You may be very good at coding,but if you questioning how on earth you could solve this problem.Then here is a solution. If you remember the good old days of our primary school then the solution is easy,"division is a matter of iterative subtraction".


public class TestEvenOdd {
public static void main(String arg[ ]){
int num=6;
int result=num;
while(result>=2){
result=result-2;
}
if(result==1){
System.out.println("The number is odd");
}else{
System.out.print("The number is even");
}
}
}

Report Error

View answer Workspace Report Error Discuss

Subject: Java

3 5688
Q:

Which payment method typically charges the highest interest rates?

A) Credit cards B) Payday loans
C) Cashier's checks D) Pre-paid cards
 
Answer & Explanation Answer: B) Payday loans

Explanation:

Both Credit cards and Payday loans payment methods typically charges the highest interest rates. When compared Payday loans seems to charge a little bit higher interest rates than Credit Cards interest rates.

Report Error

View Answer Report Error Discuss

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

4 5674
Q:

How we get IP address of client,previous reference page etc?

Answer

By using $_SERVER['REMOTE_ADDR'], $_['HTTP_REFERER'] etc.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 5667
Q:

What is dynamic method dispatch?

Answer

Dynamic method dispatch which is also known as runtime polymorphism is a process in which a call to an overridden method is resolved at runtime rather than at compile-time. In this process, an overridden method is called through the reference variable of a superclass. The determination of the method to be called is based on the object being referred to by the reference variable.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 5653
Q:

What is the function of the CICS translator?

Answer

The CICS translator converts the EXEC CICS commands into call statements for a specific programming language. There are CICS translators for Assembler, COBOL, and PL/1.

Report Error

View answer Workspace Report Error Discuss

0 5650
Q:

What is ‘Crossed Cheque’ ?

Answer

A crossed cheque indicates the amount should be deposited into the payees account and cannot be cashed by the bank over the counter. Here in the image, number#2, you can see two cross-lines on the left side corner of the cheque that indicates crossed cheque.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Bank Interview

2 5630
Q:

Difference between ActiveX Exe and Dll ?

Answer

ActiveX DLL:


It is an in process server. It runs within the application time.


ActiveX Exe:


It is an out of process server. MS-Excel is an activex exe.


when u call the excel from the vb application u can in the task manager an excel exe will run, whereas for dll u can't see like that.

Report Error

View answer Workspace Report Error Discuss

7 5616
Q:

How will you call the return code of JCL ?

Answer

Return Code in JCL can b obtained by the use of COND paramater...it is used to know the return codes of previous steps.

Report Error

View answer Workspace Report Error Discuss

2 5600