When defining a method you must include a ___________ to declare any exception that be thrown but is not caught in the method. ► try ► finally block ► catch block ► throws-clause Ref: - When defining a method you must include a throws-clause to declare any exception that might be thrown but is not caught in the method. Question No: 25 ( M a r k s: 1 ) In an applet class definition, the----------method takes the place of the constructor. ► paint(); ► main(); ► init(); Ref: - the init() method. This method is called just after the applet object has been created and before it appears on the screen. ► run() ; Question No: 26 ( M a r k s: 1 ) DSN stands for ___________. ► Domain System Name ► Data Source Name (Page 150) Ref: - After creating database, you have to setup a system Data Source Name (DSN). ► Database System Name ► Database Simple Name Question No: 27 ( M a r k s: 1 ) From following classes; one can’t be instantiated? ► Super class ► Abstract Class
Ref: - The implicit objects available in a JSP page are: • request, response • page, session, application • pageContext • config • out • exception Question No: 5 ( Marks: 1 ) - Please choose one JavaBeans are? ► A special Java class file (Page 356) Ref: - A java that can be easily reused and composed together in an application. ► Servlets ► Applets ► A Special form of JSP Question No: 6 ( Marks: 1 ) - Please choose one An expression tag contains a scripting language expression that is evaluated. ► True Ref: - An expression tag contains a scripting language expression that is evaluated, ► False converted to a String, and inserted where the expression appears in the JSP file. Question No: 7 ( 1 ) - Please choose one A class can't be extended. ► True Ref: -. A class can't be extended i.e., final class may not be subclassed ► False Question No: 8 ( Marks: 1 ) - Please choose one Servlet Config defines a set of methods that a servlet uses to communicate with its servlet container. ► True Ref: - ServletContext: Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file
►Average waiting time ►Process Question # 3 of 10 ( Marks: 1 ) - Please choose one of the following folder contains configuration file? Select correct option: ►classes lib ►bin ►WEB-INF l Ref: - WEB-INF folder contains Configuration files Question # 4 of 10 ( Marks: 1 ) - Please choose one Which of the following is NOT true about HTTP? Select correct option: ►HTTP is a stateless protocol ►HTTP is a request response communication model ►HTTP maintains user session between successive requests. ►HTTP has no built-in state management between successive requests. (Page 242) rep Ref: - HTTP is as request-response oriented protocol. It is a stateless protocol since there is no built-in state management between successive requests. Question # 5 of 10 ( Marks: 1 ) - Please choose one Which of the following approch is used to create threads in java? Select correct option: ►inheritance interface ►Both inheritance and interface (Page 228)
Q#4 Cookies provide privacy? Answer: False Q#5 A type of tag having start and end, attributes but no body enclosed within tag is called………… Answer: Attribute tag Lec#38 p#380 Q#6 JSP stands for ……………… Answer: Java Server Pages Lec#34 p#332 Q#7 in MVC (Model View Controller) represents……………… Answer: State of the component Lec#39 p#409 Q#8 Tires represent the …………….. View of application Answer: Physical Lec#41 p#435 Q#9 Correct format of writing an EL expression is ………….. Answer: ${Valid Expressions} Lec#42 p#452 Q#10 …………… operator is used to retrieve elements of arrays and collections Answer: Bracket [ ] operator Lec#42 p# 458