Interview Questions

Q:

How would you reverse a doubly-linked list?

Answer

This problem isn't too hard. You just need to start at the head of the list, and iterate to the end. At each node, swap the values of pNext and pPrev. Finally, set pHead to the last node in the list.


Node * pCurrent = pHead, *pTemp;


while (pCurrent)


{


  pTemp = pCurrent->pNext;


  pCurrent->pNext = pCurrent->pPrev;


  pCurrent->pPrev = temp;  


  pHead = pCurrent;


  pCurrent = temp;


}

Report Error

View answer Workspace Report Error Discuss

0 2762
Q:

What is ASP.NET AJAX?

Answer

ASP.NET AJAX, mostly called AJAX, is a set of extensions of ASP.NET. It is developed by Microsoft to implement AJAX functionalities in Web applications. ASP.NET AJAX provides a set of components that enable the developers to develop applications that can update only a specified portion of data without refreshing the entire page. The ASP.NET AJAX works with the AJAX Library that uses object-oriented programming (OOP) to develop rich Web applications that communicate with the server using asynchronous postback.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2760
Q:

What is the functionality of the function strstr and stristr?

Answer

strstr() returns part of a given string from the first occurrence of a given substring to the end of the string.
For example:
strstr("user@example.com","@") will return "@example.com".

stristr() is idential to strstr() except that it is case insensitive.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2757
Q:

An algorithm written once which can be used in many places is called

A) Block B) Function
C) Datatype D) None
 
Answer & Explanation Answer: B) Function

Explanation:

Function is an algorithm which can be used any where in the program when required

Report Error

View Answer Report Error Discuss

Filed Under: Java

0 2752
Q:

Have you had experience of locking up a shop and dealing with stock ordering?

Answer

These are a couple of examples of things that retail staff may be expected to get involved with, and they'll be keen to see how much additional training they might need to provide.

Report Error

View answer Workspace Report Error Discuss

Subject: Retail

5 2751
Q:

What are you looking for in your next job? What is important to you?

Answer

One of the interview questions you may be asked is what you are looking for in your next job. The interview wants to know whether your goals are a match for the companies needs.


You can begin your answer with this question: Tell me, Mr./Ms. Interviewer, what is a typical career path at OPL for someone with my skills and experience?


(Based on the answer you can then respond to the original question using the phrases from the answer to frame your response).


What is important to you? Two things are very important to me. One is my professionalism at work; the second is my family life.

Report Error

View answer Workspace Report Error Discuss

Subject: Work History

12 2748
Q:

Capitalism is characterized by which of the following?

A) Profits B) A market economy
C) Privately owned businesses D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

Capitalism is an economic system followed by a country or a society which is characterized by Privately owned businesses, a market economy and profits.


Capitalism is defined as "production for exchange" driven by the desire for personal accumulation of money receipts in such exchanges, mediated by free markets. The markets themselves are driven by the needs and wants of consumers and those of society as a whole in the form of the bourgeois state.

Report Error

View Answer Report Error Discuss

Filed Under: Finance
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2747
Q:

What is Silk Test and what is the use of it ?

Answer

ilk Test is a Functional testing tool product of Seague software. It uses the language called 4GL(fourth Generation Language).


It has 2 components,
Silk Test Agent - Run on remote machine
Silk Test Host - Creating, Modifying, Viewing the scripts


Uses of Silk Test tool:


1. It’s a tool developed for performing the regression and functionality testing of the application.
2. It benefits when we are testing Window based, Java, the web, and the traditional client/server applications.
3. Silk Test help in preparing the test plan and managing them to provide the direct accessing of the database and validation of the field.

Report Error

View answer Workspace Report Error Discuss

3 2743