InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is dynamic programming? |
|
Answer» Dynamic programming can be defined as a method of solving a complex CODING problem with the help of breaking it down into a GROUP of less complex parts. The user can then solve these subproblems one by one and store all the solutions using a memory-based data structure. This data structure may INCLUDE array, map or any other. It helps in giving the BEST solutions for the given problem. A dynamic programming algorithm is USED in solving a huge number of problems nowadays. |
|
| 2. |
Explain a real-life example of polymorphism. |
|
Answer» POLYMORPHISM is a very important object-oriented concept. It means having more than one form. It can be understood with the help of a real-life EXAMPLE of a person who has different characteristics such as being a father, a brother and an EMPLOYEE at the same time. Having different characteristics can result in different ROLES and RESPONSIBILITIES and different behavior of the same person at the same time in different situations. Polymorphism works in a similar way in object-oriented programming. |
|
| 3. |
Explain the new features added in .NET framework 4.0. |
|
Answer» FOLLOWING features were ADDED in .NET FRAMEWORK 4.0:
|
|
| 4. |
Explain the advantages of OLE-automation. |
|
Answer» There are following ADVANTAGES of OLE-automation:
Both Createobject() and Getobject() functions are used in visual basics. The basic difference between Createobject() and Getobject() functions is that Createobject() creates an object whereas the Getobject() FUNCTION FETCHES an ALREADY existing instance of an object. |
|
| 5. |
Write a program to reverse a linked list. |
|
Answer» FUNCTION REVERSE(HEAD) { |
|
| 6. |
Explain the meanings of postback and view state. |
|
Answer» The process of submitting an ASP.NET page to the server for the purpose of processing, this process is called Postback. When some credentials of a page are to be checked in REFERENCE to some page, at that time Postback is DONE. The values of a WEB page and the controls between the ROUND trips can be preserved, the method used to preserve it is called View State. |
|
| 7. |
Describe ASP.NET Page Life Cycle. |
|
Answer» When there is a request for a page, the page is loaded in the memory of the server and it is then processed and then sent to the BROWSER. After that, it is unloaded from memory. Methods and EVENTS are present at every step and they can be overridden according to the needs of the application that is being developed. It can also be said that the developer can write CODE to override the default code. Phases of a Page LIFE cycle:
|
|
| 8. |
Differentiate between array list and vector list. |
|
Answer» The first thing that everyone should KNOW about array and vector lists is that both of them are used to implement list interface and an array is used for their internal structures by both of them. Difference Between Array and Vector List:
|
|
| 9. |
What do you know about CGI? |
|
Answer» CGI is an interface that ALLOWS the users to access a web page to SEND or receive information or data over a server. The script of CGI can accept a set of keywords entered by the user as input, then it can process a search according to those keywords and can return FAVORABLE results to the web BROWSER. Most of the time CGI SCRIPTS and its executables are run through the directory of CGI-bin. |
|