Admin Admin
Posts : 216 Join date : 2011-06-17 Location : Rawalpindi
| Subject: CS506 Final Term Paper Sat Jun 25, 2011 2:57 pm | |
| CS506 Final Term PaperWeb Designing and Development Question No: 1 ( Marks: 1 ) - Please choose oneFrom the Following; which we don’t include in simple tag while creating JSP custom tags: ► Start of tag► End of tag► Attributes► None of theseQuestion No: 2 ( Marks: 1 ) - Please choose oneFrom the following; which component is/are used in directory Structure of web components: ► index.htm, JSP, Images etc.. ► Web-inf, web.xml► Classes, servlets classes ► lib, jar files► All of theseQuestion No: 3 ( Marks: 1 ) - Please choose oneFrom following; which is the main reason that enters a thread into dead state:► a)It dies a natural death because thread completes its execution.► b)It is killed because someone invoked its stop method.► Both a and b.► None of these.Question No: 4 ( Marks: 1 ) - Please choose oneFrom the following; which approach is used in java to create threads,► Interface ► Inheritance► Both Interface and Inheritance► None of these. Question No: 5 ( Marks: 1 ) - Please choose oneRPC stands for ► Remote Personal Computer (RPC)► Remote Procedure Calls (RPC).► Remote Procedure Client (RPC)► None of these Question No: 6 ( Marks: 1 ) - Please choose oneFrom the following which one is not a built-in validator? ► DoubleRangeValidator► LongRangeValidator► LengthValidator► StringValidatorQuestion No: 7 ( Marks: 1 ) - Please choose one-------------can be used to specify dynamic attribute values for JSTL actions without using full-blown programming language.► EL► RT► Both EL and RT► None of theseQuestion No: 8 ( Marks: 1 ) - Please choose oneThe dot operator in Expression Language typically used for accessing the --------------------of an object.► Properties► Elements► Values► Attributes Question No: 9 ( Marks: 1 ) - Please choose oneTiers represent the _____________ view of application.► Physical► Logical► External► None of theseQuestion No: 10 ( Marks: 1 ) - Please choose oneLayers represent the _____________ view of application.► Physical► Logical► External► None of theseQuestion No: 11 ( Marks: 1 ) - Please choose oneWhich of the following is appropriate for Page-with-Bean approach?► The code becomes a mixture of presentation, business and data access logic.► The maintenance of the application becomes a nightmare.► A lot of code is also get duplicated.► All the business logic goes into one application. Question No: 12 ( Marks: 1 ) - Please choose oneThe ___________ represent the state of component.► View► Model► Controller► ComponentQuestion No: 13 ( Marks: 1 ) - Please choose oneThe following value of JavaBean’s scope attribute has local variable.► Page► Request► Session► ApplicationQuestion No: 14 ( Marks: 1 ) - Please choose oneJSP action elements allow us to work with _____________.► JavaScript► JavaBeans► ManagedBeans► HTMLQuestion No: 15 ( Marks: 1 ) - Please choose oneA bean class ___________ have any public instance variables/attributes (fields).► Can► Can’t► Must► Shouldn’t Question No: 16 ( Marks: 1 ) - Please choose oneExpression is a code fragment which returns ___________.► Integer► String► Depends on the expression► NothingQuestion No: 17 ( Marks: 1 ) - Please choose oneJSP file is compiled ___________.► Whenever there is some modification in the file► Whenever it is accessed► Whenever browser is restarted► Whenever the page is refreshedQuestion No: 18 ( Marks: 1 ) - Please choose oneServlet session and JSP session have ___________ abilities.► Different► Same► Critical► None of theseQuestion No: 19 ( Marks: 1 ) - Please choose oneWhich of the following is not part of http response?► Result Code► URI► Header fields► BodyQuestion No: 20 ( Marks: 1 ) - Please choose oneIn which file do we define a servlet mapping?► Web.xml► Servlet.mappings► Servlet.xml► None of the givenQuestion No: 21 ( Marks: 1 ) - Please choose oneWhich of the following is a type of Java web application technologies?► JSTL► JSF► JSP► All of the given Question No: 22 ( Marks: 1 ) - Please choose oneExtra information can be appended to URL using ____________.► Extra path information► Added parameters► Custom change► All of the givenQuestion No: 23 ( Marks: 1 ) - Please choose oneWeb server is a software which provides services to access _________.► Internet► Intranet► Extranet► All of the givenQuestion No: 24 ( Marks: 1 ) - Please choose oneWhen defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method. ► try block► finally block► catch block► throws-clauseQuestion No: 25 ( Marks: 1 ) - Please choose oneIn an applet class definition, the----------method takes the place of the constructor. ► paint();►main();► init();► run() ;Question No: 26 ( Marks: 1 ) - Please choose oneDSN stands for ___________.► Domain System Name► Data Source Name► Database System Name► Database Simple NameQuestion No: 27 ( Marks: 1 ) - Please choose oneFrom following classes; which one can’t be instantiated?► Super class► Abstract Class► Anonymous Class► Concrete ClassQuestion No: 28 ( Marks: 1 ) - Please choose oneConverting bigger data types into smaller one is called ----------► Up casting► Down casting► In casting► Out castingQuestion No: 29 ( Marks: 1 ) - Please choose oneJava provide ------------------ ► Overloading► Overriding► Pointers► Multiple
InheritanceQuestion No: 31 ( Marks: 1 ) Given the request path below, which part is context path, servlet path and path info?Question No: 32 ( Marks: 1 ) Write the XML tags for the following scripting elements in JSP? Question No: 33 ( Marks: 2 ) What impact a JavaBeans object can produce when it is stored in Servlet Request object? Question No: 34 ( Marks: 2 ) What invokes a thread’s run() method?Question No: 35 ( Marks: 3 ) What is the significance of error page? Question No: 36 ( Marks: 3 ) Which type of information can be appended to URL? Question No: 37 ( Marks: 3 ) Differentiate between Sequential Execution and multithreading.Question No: 38 ( Marks: 5 ) Which technology is used in JAVA to support following layers?1. Presentation Layer 2. Business Layer3. Data Layer Question No: 39 ( Marks: 5 ) How cookies are sent to a client?Question No: 40 ( Marks: 5 ) What are the characteristics of web services?Question No: 41 ( Marks: 5 ) What is the usage of sleep (int time) method? | |
|