Interview Questions

Q:

Who is a more senior creditor, a bondholder or stockholder?

Answer

According to the classification, the claim of bond holder should be accounted first. After fulfilling all the claims of bond holder company should look after the stock holder.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

0 3313
Q:

What is an error-first callback ?

Answer

Error-first callbacks are used to pass errors and data as well. You have to pass the error as the first parameter, and it has to be checked to see if something went wrong. Additional arguments are used to pass data.


 


fs.readFile(filePath, function(err, data) {
if (err) {
// handle the error, the return is important here
// so execution stops here
return console.log(err)
}
// use the data object
console.log(data)
})

Report Error

View answer Workspace Report Error Discuss

2 3310
Q:

What is the BEST WAY to write test cases?

Answer

1) List down usecases (taken from business cases) from function specs. For each use case write a test case and categorize them into sanity tests, functionality, GUI, performance etc. Then for each test case, write its workflow. 


2) For a GUI application - make a list of all GUI controls. For each control start writing test cases for testing of the control UI, functionality (impact on the whole application), negative testing (for incorrect inputs), performance etc. 


 

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

0 3304
Q:

What is immutable object? Can you write immutable object ?

Answer

Immutable classes are Java classes whose objects can not be modified once created. Any modification in Immutable object result in new object. For example is String is immutable in Java. Mostly Immutable are also final in Java, in order to prevent sub class from overriding methods in Java which can compromise Immutability. You can achieve same functionality by making member as non final but private and not modifying them except in constructor.

Report Error

View answer Workspace Report Error Discuss

3 3299
Q:

When do you override hashcode and equals() ?

Answer

HashCode method return int value. So the Hash value is the int value returned by the hash function .


If you want to do equality check or want to use your object as key in HashMap, we must override hashcode and equals() method.

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

5 3298
Q:

What is 'Three-Way Match' refers in Acconting ?

Answer

In accounting, the Three-way Match refers to a procedure used when processing an invoice received from a vendor or supplier. The three-way match is an important step in safeguarding an organization's assets. The purpose of the three-way match is to avoid paying incorrect and perhaps fraudulent invoices.


Here Three-way refers to the three documents involved :


* Vendor's invoice which was received and will become part of an organization's accounts        payable if approved.


* Purchase order that was prepared by the organization.


* Receiving report that was prepared by the organization.


And Match refers to the comparison of the quantities, price per unit, terms, etc. appearing on the vendor's invoice to the information on the purchase order and to the quantities actually received.


After the vendor's invoice has been validated by the three-way match, it can be further processed for payment.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable Exam Prep: Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

9 3295
Q:

So if md5( ) generates the most secure hash, why would you ever use the less secure crc32( ) and sha1( )?

Answer Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 3289
Q:

what is the difference between the terms 'credit' and 'debit' from the customer point of view?

Answer

 From the customer point of view, credit is the amount which is deposited into her or his account. And debit refers to that amount which is taken from the account of the customer.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

2 3285