Interview Questions

Q:

What are the types of Collision Resolution Techniques and the methods used in each of the type?

Answer

Open addressing (closed hashing),


The methods used include: Overflow block,


 Closed addressing (open hashing)


The methods used include: Linked list, Binary tree…

Report Error

View answer Workspace Report Error Discuss

Subject: Java

16 13412
Q:

How can I retrieve values from one database server and store them in other database server using PHP?

Answer

we can always fetch from one database and rewrite to another. Here is a nice solution of it.$db1 = mysql_connect("host","user","pwd")
mysql_select_db("db1", $db1);
$res1 = mysql_query("query",$db1);$db2 = mysql_connect("host","user","pwd")
mysql_select_db("db2", $db2);
$res2 = mysql_query("query",$db2);At this point you can only fetch records from you previous ResultSet, i.e $res1 – But you cannot execute new query in $db1, even if you supply the link as because the link was overwritten by the new db.so at this point the following script will fail
$res3 = mysql_query("query",$db1); //this will failSo how to solve that?

take a look below.
$db1 = mysql_connect("host","user","pwd")
mysql_select_db("db1", $db1);
$res1 = mysql_query("query",$db1);

$db2 = mysql_connect("host","user","pwd", true)
mysql_select_db("db2", $db2);
$res2 = mysql_query("query",$db2);

So mysql_connect has another optional boolean parameter which indicates whether a link will be created or not, as we connect to the
$db2 with this optional parameter set to 'true', so both link will remain live.

Now the following query will execute successfully.
$res3 = mysql_query("query",$db1);

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

18 13366
Q:

Which class provides an interface for invoking JavaScript methods and examining JavaScript properties.

A) ScriptObject B) JSObject
C) JavaObject D) Jobject
 
Answer & Explanation Answer: B) JSObject

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

4 13295
Q:

Have you worked with someone you didn't like? If so, how did you handle it?

Answer

Yes, I've worked with someone whom I found difficult to like as a person. However, when I focused on the skills they brought to the job, their ability to solve problems and the two things I did appreciate, slowly my attitude towards them changed. We were never friends, but we did work well together.

Report Error

View answer Workspace Report Error Discuss

Subject: Work History

23 13103
Q:

What is STPI ? why STPI knowledge required in Accounts Payable?

Answer

Software Technology Parks of India (STPI).Some of the software service providers will get exemption from STPI for their software exports. In accounts payable may be we need to define the vendor STPI location wise.


In India we have different STPI location. If one vendor supplying services or materials to all OR some of the STPI locations we need to maintain the same vendor STPI wise.  

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

22 13065
Q:

Why was PHP developed, what it is used for, and where can you get it?

Answer

PHP developed for less script, time saving, Free Open Source Software and runs on different platforms such as Windows, Linux, Unix, etc. PHP compatible with almost all servers used today such as Apache, IIS, etc.

The PHP scripting language resembles JavaScript, Java, and Perl, These languages all share a common ancestor, the C programming language. PHP has full access to the information that the server has, and very little access to information that the client has. In fact, it only has information that the client tells the server and that the server passes on to PHP. Because it is on the server, however, PHP cannot be modified by the client. While you cannot necessarily trust the information that the client gives to PHP, you can trust that your PHP is doing what you told it to do. Because PHP is on the server end, your PHP scripts can affect your server -- such as by keeping an activity log or updating a database.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

19 12996
Q:

What was the toughest decision you ever had to make?

Answer

“What was the toughest decision you ever had to make?” that means they want to gauge your ability of decision even if there is really hard to choose between any two.


They want to hear on what circumstances what will be your priorities and values you take while taking a decision which can effect a lot and most important to it.


Your decision skills are shown to interviewer that you answer will reflect. You must be accurate in your answer and try to explain the conditions and evidences upon which you taken such decision. Also you can tell how those decisions are beneficial for you in further life.


 


Best Answer for “What was the toughest decision you ever had to make?”


There are 2 toughest decisions that I ever made in my life.


The first one is about to choose my career. I want to be an engineer but my parents planned for me something else because of financial problems. At that time this decision was toughest for me to choose parents planned career path or my own. But I go against to my parents path and tried my best to get the scholarship from college, which I also did giving my best performance.


Second decision that I have taken is to choose between job and higher studies. In this I have chosen to do job only. I have to learn more within the job and get an experience in my field. I also want to emphasize my skills and gain more knowledge in reputed company.

Report Error

View answer Workspace Report Error Discuss

Subject: Human Resources

10 12769
Q:

What is the general syntax for accessing the namespace variable?

A) namespaceid::operator B) namespace,operator
C) namespace#operator D) none of the mentioned
 
Answer & Explanation Answer: A) namespaceid::operator

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

1 12491