Você está na página 1de 4

1. Explain OOPs concept, with all the components of OOPs concept?

A system of programming that permits an abstract, modular typing hierarchy, and features polymorphism, inheritance, and encapsulation. Polymorphism An object oriented programming term. !he ability to ha"e methods with the same name, but different content, for related classes. !he procedure to use is determined at run time by the class of the object. #or example, related objects might both ha"e $raw methods. A procedure, passed such an object as a parameter, can call the $raw method without needing to %now what type of object the parameter is. Inheritance An object oriented programming term. !he ability of a subclass to ta%e on the characteristics of the class it&s based on. 'f the characteristics of the parent class change, the subclass on which it is based inherits those characteristics. #or example, if you add a new property, 's(old, to an editing control, any subclasses based on your control will also ha"e an 's(old property. Encapsulation An object oriented programming term for the ability to contain and hide information about an object, such as internal data structures and code. Encapsulation isolates the internal complexity of an object&s operation from the rest of the application. #or example, when you set the )aption property on a command button, you don&t need to %now how the string is stored Abstraction 'dentifying the distinguishing characteristics of a class or object without ha"ing to process all the information about the class or object. *hen you create a class + for example, a set of table na"igation buttons + you can use it as a single entity instead of %eeping trac% of the indi"idual components and how they interact

,. *hat is the o"erloading, o"erriding and Operator O"erloading? O"erloading, o"erriding, and shadowing are similar concepts that can be easy to confuse. Although all three techni-ues allow you to create members with the same name, there are some important differences. Overloaded members are used to pro"ide different "ersions of a property or method that ha"e the same name, but that accept different number of parameters, or parameters with different data types. Overridden properties and methods are used to replace an inherited property or method that is not appropriate in a deri"ed class. O"erridden members must

accept the same data type and number of arguments. $eri"ed classes inherit o"erridden members. Shadowed members are used to locally replace a member that has broader scope. Any type can shadow any other type. #or example, you can declare a property that shadows an inherited method with the same name. .hadowed members cannot be inherited. /. 's multiple inheritances supported in .0et? 0o. 1. 's multi le"el inheritance supported in .0et?, if yes 2ow many le"els are supported? 3es, 4. *hat is a 0ame .pace? 0amespace is used to logically group related type5class, interface, enums etc.6. !hey also resol"e name collisions between types. 7. About user controls? *hat is difference between 8ser control and custom control? #or 8sercontrol you can ha"e the 8'. *here as in the custom control, you ha"e to create instances in the )reate)hild)ontrols method of the custom control. 9. *hat are name spaces a"ailable for :;<? .ystem.:ml =. *hat :.<, $!$, :Path? >. 2ow do u parse the :;< using $O;? 1?. *hat tool is used for designing? @isio. 11. 'n @isio write a script to do A.? 1,. *hat is the max siBe of the -uery string? 1?,1 char. 1/. 's it depends upon the browser or application? 3es. 11. *hat is default time out for session? ,? minutes 14. *hat is the default time to process the page in ''.? >? seconds

17. *hat are the objects in A.P /.? and A.P ,.?? Ce-uest Cesponse .er"er Application .ession Object)ontext5A.P ,.?6 Error 5A.P /.?6 19. *hat will the Cesponse.buffer do? 't will store the response in the buffer until the response is completed if Cesponse.(uffer is set to true. Otherwise response will be sent to the client immediately. 1=. *hat is flush used for? 'f you want to send the response buffered upto the point, u can use response.flush to do that. 1>. )an ' put Cesponse.End after Cesponse.*rite? 3es. ,?. *hat are the methods of the form tag? Det and Post ,1. *hat is the default method for the form tag? Det ,,. *hat is the difference between get and Post method? 'f you use Det method, the input "alues5i.e textbox,combo6 are posted to the ser"er using -uerystring. Also these "alues will be logged in the hop ser"ers. 'f you use Post method, the input "alues are posted using 2!!P headers.!his is the secured way. ,/. Explain Cesponse.Cedirect and .er"er.!ransfer? 'f you use Cesponse.Cedirect, redirection will be done by the client5i.e browser6 by issuing http 1?, page not found error and desired page will be redirected. 'f u use ser"er.transfer, redirection will be done in ser"er. ,1. *hat is the difference between the ,? #irst pageEs context is carried o"er to next page if u use .er"er.!ransfer. 't is not possible in Cesponse.redirect ,4. *hat type of encoding is done in the -uery string?

8C<Encode ,7. *hat are .er"er.2!;<Encode and .er"er.8C<Encode? .er"er.2!;<Encode will encode the html elements li%e F,G,H,E .er"er.8C<Encode is used to encode the space and other things in the 8C<. ,9. *hat is the difference between the ,? ,=. 2ow do handle errors in the page? .et On Error Cesume 0ext in the top of the page. )hec% for Error.number. 'f it is not ? then u can get the error details using Error.number,Error.$escription etc. based on that, u can redirect to some other page. ,>. 2a"e the scenario as below, how will u handle error message? 2a"e 1 parts in a page #irst part is client side script, an error occurs in $O; object. .econd part the ser"er side script, an error occur. !hird part ser"er side script, uses dll to access database. ' database an error occur, not captured by the dll. 8 ha"e to show all the error at the bottom of the page. 2ow will u do it? /?. *hat are security settings in ''.? Anonymous 5Open, impersonation will be used6 (asic Authentication58ser name, Password will be sent to the ser"er using base71 not safe6 $igest Authentication58ser name, Password will be sent to the ser"er using hash I better than (asic Auth6 'ntegrated *indows Authentication5"ery .afe, can be used for intranet only6 /1. /,. *hat are the joins in the .J< ser"er? 'nner, Outer and cross, 2ash //. Explain them? /1. Example for inner joins. /4. *hat is the difference between <eft outer join and right outer join? /7. About stored procedures? /9. 2ow will u handle error in stored procedures? KKErrors /=. *hat r triggers? />. *hy triggers are used? 1?. *hat are different types of triggers in .J< ser"er? 11. 1,.

Você também pode gostar