Sie sind auf Seite 1von 9

.

NET
1. Explain the differences between Server-side and Client-side code? ANS: Server side code will execute at server end all the business logic will execute at server end where as client side code will execute at client side at browser end. 2. What type of code (server or client) is found in a Code-Behind class? ANS : Server side. 3. Should validation (did the user enter a real date) occur server-side or client-side? Why? ANS : client side . there is no need to go to validate user input. If it relates to data base validation we need to validate at server side. 4. What does the EnableViewState property do? Why would I want it on or off? ANS: IT keeps the data of the control during post backs. If we turn off the values should not populate during server round trip. 5. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? ANS: Server.Trnasfer will prevent round trip. it will redirect pages which or in the same directory. NO way to pass the query strings . Thru http context we can able to get the previous page control values. Response.Redirect : There is a round trip to process the request. We can redirect to any page external / internal other than aspx. We can pass the query string thru which we can manage sessions. 6. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component ANS : Web services are best suited for Hetrogenious environment. Remoting is best suited for Homogenious environment. The systems that under CLR. 8. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? ANS : DIsconnected architechure . Maintainace relation schemas. MUtilple table grouping. Connected one . 9. Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines? ANS: APplication_start need for global variable which are available over the application. Sesssion_Start : login dependent ( user dependent) 10. If Im developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using roundrobbin load balancing) what would be the best approach to maintain login-in state for the users? ANS : Database Support. or Thru state service.

11. What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)? ANS : ASP . Interprepter.. use the script engine. ASP.Net Compiled. 12. How does VB.NET/C# achieve polymorphism? ANS : Function overloading. Operator overloading. 11. Can you explain what inheritance is and an example of when you might use it? ANS : Heridity. Use the existing functionality along with its own properities. 13. How would you implement inheritance using VB.NET/C#? ANS: Derived Class : Basecalss VB.NEt : Derived Class Inherits Baseclass 14. Whats an assembly ANS : A Basic unit of executable code > Which contains : Manifest Meta data versioning , Calture , IL, Reference IIS. 20. What are the disadvantages of viewstate ANS : IT can be hacked . page is size is heavy. 22. How would you get ASP.NET running in Apache web servers why would you even do this? ANS: - Install Mod_AspDotNet Add at the end of C:Program FilesApache GroupApache2confhttpd.conf the following lines 23. What is MSIL, and why should my developers need an appreciation of it if at all? ANS : Microsoft Intermeidate lanaguage. which is the out put for all the .net supported languages after comiplation will produce. Appreciation for cross language support. 24. In what order do the events of an ASPX page execute? ANS : INIT, PageLoad, Prerender , UNload. 25. Which method do you invoke on the DataAdapter control to load your generated dataset with data? Fill() 26. Can you edit data in the Repeater control? NO 29. What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeatercontrol?

Datasource, DataBind 30. What base class do all Web Forms inherit from? System.Web.UI.Page 31. What method do you use to explicitly kill a user s session? abondon() 32 How do you turn off cookies for one page in your site? disablecookies. 33. Which two properties are on every validation control? control to validate, error message 34. What tags do you need to add within the asp:datagrid tags to bind columns manually? autogenerated columns is set to false 35. How do you create a permanent cookie? Cooke = ne cookee(). cooke.adddate. 36. What tag do you use to add a hyperlink column to the DataGrid? hyper link column 38. Which method do you use to redirect the user to another page without performing a round trip to the client? server.transfer 39. What is the transport protocol you use to call a Web service SOAP http 40. True or False: A Web service can only be written in .NET false 41. What does WSDL stand for? webservice description language. it is used to generate for proxy( server object) 42. What property do you have to set to tell the grid which page to go to when using the Pager object? Page Index. 43. Where on the Internet would you look for Web services? UDDI

44. What tags do you need to add within the asp:datagrid tags to bind columns manually. Auto generate columns 45. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box? datatext datavalue 46. How is a property designated as read-only? get 47. Which control would you use if you needed to make sure the values in two different controls matched? compare filed validator 48. True or False: To test a Web service you must create a windows application or Web application to consume this service? no

C++ and DS
1. What is a class? Ans: Template to create an object is class. It defines data members and member functions that the object will contain. 2. What is an object? Ans: Instance of a class is called object. 3. What is the difference between an object and a class? Ans: All objects possessing similar properties are grouped into class. Example :person is a class, ram, hari are objects of person class. All have similar attributes like name, age, sex and similar operations like speak, walk. Class person { private: char name[20]; int age; char sex; public: speak(); walk(); } ram, hari; Class person { private: char name[20]; int age; char sex; public: speak(); walk(); }; void main() {person ram, hari;}

4. What is the difference between class and structure in C++? Ans: In class the data members by default are private but in structure they are by default public. 5. What is the difference between class in C++ and structure in C? Ans: Class(C++) contain both data members and member functions. Structure(C) contains only data members. 6. Define object oriented language? Ans: Object-oriented language incorporates all the features of object based programming languages along with inheritance and polymorphism. Example: c++, java. 7. Define OOPs? Ans: OOP is a method of implementation in which programs are organized as co-operative collection of objects, each of which represents an instance of some class and whose classes are all member of a hierarchy of classes united through the property of inheritance.

8. What is public, protected, and private? Ans: These are access specifiers or visibility labels .The class member that has been declared as private can be accessed only from within the class. Public members can be accessed from outside the class also. Within the class or from child classes that inherit the class, protected access specifier acts same as private. It plays a prominent role in case of inheritance 9. What is a scope resolution operator? Ans: The scope resolution operator permits a program to refer an identifier in the global scope that has been hidden by another identifier with the same name in the local scope. 10. What do you mean by inheritance? Ans: The mechanism of deriving a new class (derived) from an old class (base class) is called inheritance. It allows the extension and reuse of existing code without having to rewrite the code from scratch. 11. What is difference between C++ and Java? Ans: C++ has pointers Java does not. Java is platform independent C++ is not. Java has garbage collection C++ does not. 12. What do you mean by multiple inheritance in C++ ? Ans: Multiple inheritance is a feature in C++ by which one class can be of different types. Say class teaching Assistant is inherited from two classes say teacher and Student. 13.What is overloading? Ans: Function overloading or method overloading is a feature that allows the creation of several methods with the same name which differ from each other in terms of the type of the input(argument list) and the type of the output(return type) of the function. 14. What do you mean by virtual methods? Ans: virtual methods are used to use the polymorphism feature in C++. Say class A is inherited from class B. If we declare say function f() as virtual in class B and override the same function in class A then at runtime appropriate method of the class will be called depending upon the type of the object. 15. What do you mean by static methods? Ans: By using the static method there is no need creating an object of that class to use that method. We can directly call that method of that class. For example, class A has static function f(), then we can call f() function as A.f(). There is no need of creating an object of class A. 16. What is a constructor? Ans: Constructor is a special member function of a class, which is invoked automatically whenever an instance of the class is created. It has the same name as its class.

17. What is destructor? Ans: Destructor is a special member function of a class, which is invoked automatically whenever an object goes out of the scope. It has the same name as its class with a tilde~ prefixed. 18. Can we apply binary search algorithm to a sorted linked list, why? Ans: No we cannot apply binary search algorithm to a sorted linked list, since there is no way of indexing the middle element in the list. This is the drawback in using linked list as a data structure. 19. Define: (i) Traversing, (ii) Searching, (iii) Sorting. Ans: Discussed in class. 20. What do you mean by garbage collection? Ans: It is a technique in which the operating system periodically collects all the deleted space onto the free storage list. It takes place when there is minimum amount of space left in storage list or when CPU is ideal. The alternate method to this is to immediately reinsert the space into free storage list which is time consuming. 21. What do you mean by overflow and underflow? Ans: When new data is to be inserted into the data structure but there is no available space i.e. free storage list is empty this situation is called overflow. When we want to delete data from a data structure that is empty this situation is called underflow. 22. What are the disadvantages of Linked List? Ans: i) Sequential access takes more time. ii) A node in a linked list (info and next field) occupies more storage than a corresponding element in an array. 23. What is a queue? Ans: A queue is an ordered collection of items from which items may be deleted at one end (front end) and items inserted at the other end (rear end). It obeys FIFO rule there is no limit to the number of elements a queue contains. 24. What are the disadvantages of sequential storage (array)? Ans: i) Fixed amount of storage remains allocated to the data structure even if it contains less element. ii) No more than fixed amount of storage is allocated causing overflow 25. What are the disadvantages of representing a stack or queue by a linked list? Ans: i) A node in a linked list (info and next field) occupies more storage than a corresponding element in an array. ii) Additional time spent in managing the available list.

C (Without Answers)

What does static variable mean? What is a pointer? What are the uses of a pointer? What is a structure? What are the differences between structures and arrays? In header files whether functions are declared or defined? What are the differences between malloc () and calloc ()? Difference between pass by reference and pass by value? What is static identifier? Where is the auto variables stored? Difference between arrays and linked list? What is recursion? Differentiate between a for loop and a while loop? What are it uses? What is storage class. What are the different storage classes in C? What is the difference between Strings and Arrays? What is a NULL Pointer? Whether it is same as an uninitialized pointer? Are pointers integer ? What is static memory allocation? What is dynamic memory allocation? What is pointer to a pointer. What is an array of pointers? Why is it necessary to give the size of an array in an array declaration? What modular programming? What is a function ? What is an argument ? Difference between formal argument and actual argument ? Difference between an array of pointers and a pointer to an array ? Can we use any name in place of argv and argc as command line arguments ? What are the pointer declarations used in C? Differentiate between a constant pointer and pointer to a constant? Is the allocated space within a function automatically deallocated when the function returns? Discuss on pointer arithmetic? What are the invalid pointer arithmetic ? What are the advantages of using array of pointers to string instead of an array of strings? Are the expressions *ptr ++ and ++ *ptr same ? What would be the equivalent pointer expression foe referring the same element as a[p] [q][r][s] ? Can main () be called recursively?

Non Technical
1. Tell me something about yourself 2. What have you done to improve your knowledge in the last year? 3. What kind of salary do you need? 4. How long would you expect to work for us if hired? 5. What is your philosophy towards work? 6. If you had enough money to retire right now, would you? 7. What irritates you about co-workers/ supervisor? 8. What kind of person would you refuse to work with? 9. What motivates you to do your best on the job? 10.What has disappointed you about a job? 11.What would your previous supervisor/ team members say about you? 12.What motivates you to do your best? 13.Are you willing to work overtime? Low salary? Relocate? Another technology? 14.What makes you feel successful? 15.If you were hiring a person for this job, what would you look for? 16.Do your qualities match closest to this job? 17.What qualities do you look for in a boss/ co workers? 18.What has been your biggest disappointment/ achievement? 19.Do you have any questions for me?

Das könnte Ihnen auch gefallen