Interview Questions

Q:

Explain how to create random passwords.

Answer

Generating random passwords in PHP can be done in multiple ways depending on how much security the application demands:-


Md5 function can be passed one parameter as uniqid() function which in turn generates a random number. Passing the parameter as TRUE in uniqid() adds additional uniqueness.


<?php
   $passwd = md5(uniqid(rand(), true));
   Echo $passwd;
?>

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2598
Q:

What is Test Harness?

Answer

“In software testing, a test harness or automated test framework is a collection of software and test data configured to test a program unit by running it under varying conditions and monitor its behavior and outputs. It has two main parts: the test execution engine and the test script repository.”


 

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

0 2597
Q:

A Website address is a unique name that identifies a specific

A) Link B) PDA
C) Web browser D) Website
 
Answer & Explanation Answer: D) Website

Explanation:
Report Error

View Answer Report Error Discuss

0 2595
Q:

How to open a file?

Answer

<?php
$file = fopen("file.txt","r");
?>

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2595
Q:

How do you define a traceability matrix?

Answer

Traceability matrix is a cross matrix for recording the requirements through each stage of the requirements gathering process. This matrix should also take into account any changes in the scope during the life of the project. 


     At the end of the project this matrix should show each function built into a system, its source and the reason that any stated requirements may not have been delivered. 

Report Error

View answer Workspace Report Error Discuss

3 2592
Q:

Promotions and promotion mix :

What about the budget? We want our promotional campaigns to be cost effective enough. I don’t think we can afford celebrity endorsements as of now!

Answer

No problem. We can use network marketing as an alternative. The company already has its strong network of customers who can spread the word about its products. They can encourage referral rewards for say every three customers who will buy our product or avail our service.


We can also announce a contest for the customers to buy the product and win a chance to get himself broadcasted for the product advertisement. We can ask them to send in their photo along with the contest application form which they get alongwith the product they buy. So we don’t have to pay them as we would otherwise have to pay to a celebrity.

Report Error

View answer Workspace Report Error Discuss

0 2592
Q:

How do you insert a record with a nullable column?

Answer

To insert a NULL, move -1 to the null indicator


To insert a valid value, move 0 to the null indicator


 

Report Error

View answer Workspace Report Error Discuss

0 2590
Q:

If a customer is agitated, how would you handle that?

Answer

Answer this with confidence. Look straight into the eyes of the interviewer and tell them that the path we chose prohibits us from expressing our anger. Anger to anger isn’t a healthy response. Instead, calmness and composure is a must.

Report Error

View answer Workspace Report Error Discuss

2 2590