Interview Questions

Q:

Which king class properly represents the relationship "King has a best friend who is a Soldier"?

A) class King extends Soldier { } B) class King implements Soldier { }
C) class King { private BestFriend Soldier; } D) class King { private Soldier bestFriend; }
 
Answer & Explanation Answer: D) class King { private Soldier bestFriend; }

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Java

0 2630
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 2629
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 2628
Q:

Which of the following is not economic investment?

A) the piling up of inventories on a grocer's shelf B) the purchase of a drill press by the Ajax Manufacturing Company
C) construction of a suburban housing project D) the purchase of 100 shares of AT&T by a retired business executive
 
Answer & Explanation Answer: D) the purchase of 100 shares of AT&T by a retired business executive

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2626
Q:

If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b?

Answer 100, it’s a reference to existing variable.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2626
Q:

What is walkthrough and inspection?

Answer

Walkthrogh: Very informal type of review or testing method. Done by peers, so its called peer review.


Inspection: very technical type of review or testing method, done by the highly technically sound people.

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

0 2624
Q:

Name some common VSAM error conditions and codes?

Answer

End of file  (10)


Duplicate key (22)


Record not found (23)


VSAM logic error  (90)


Open problem  (92)


Space problem (93)

Report Error

View answer Workspace Report Error Discuss

0 2622
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 2618