Cs506 FinalTerm Most Important Repeated Mcqs Online Quiz Cs506 FinalTerm Most Important Repeated Mcqs Online Quiz Cs506 quiz helps us to increase our knowledge 1 / 26 What is the initial contact point for handling a web request in a Page-Centric architecture? JSP page JavaBean servlet HTML page 2 / 26 HTML form data can be processed by JSP TRUE FALSE 3 / 26 Which of the following method allows any other thread of same priority to execute? sleep() wait() notify() yield() 4 / 26 Which of the following range of response code signify error by server? 200-299 300-399 400-499 500-599 5 / 26 Which of the following method is called only once during life cycle of Servlet? service() init() destroy() start() 6 / 26 Which of the following interface needs to implement while creating threads? Serializable Runnable ActionListener WindowListener 7 / 26 Which of the following is NOT a web technology of Java? Servlet JSP ASP JSF 8 / 26 RPC stands for Remote Personal Computer (RPC) Remote Procedure Calls (RPC) Remote Procedure Client (RPC) None of these 9 / 26 From the following; which approach is used in java to create threads, Interface Inheritance Both Interface and Inheritance None of these 10 / 26 From the Following; which we don’t include in simple tag while creating JSP custom tags: Start of tag End of tag Attributes None of these 11 / 26 In which file do we define a servlet mapping? Web.xml index.html Servlet.xml None of the given options 12 / 26 Port is a transport address to which processes can ________ for connections request. read Write Listen None of the given options 13 / 26 Mouse events can be trapped for ________ GUI component. JFrame JPanel JButton All of the given options 14 / 26 Which of the following must be used to compare the values of two strings? = operator == operator equals() method compare() method 15 / 26 A --------in HashMap is associated with each object that is stored. None of the given options Key Value Attribute 16 / 26 Servlet mapping of a servlet is defined in _____________ file JSP HTML web.xml Servlet 17 / 26 Initialization parameters of a servlet are defined in __________ file. html JSP web.xml servlet 18 / 26 Which of the following is not included in simple tag while creating JSP custom tags? Start of tag End of tag Attributes None of the given options 19 / 26 Which of the following is a general purpose container? JFrame JDialog JPanel JWindow 20 / 26 ___ is a standard web based application framework. Java Servlet JSF JSP 21 / 26 Managed Bean is JavaBeans which are defined in ----------- Configuration file Source file Class file None of these 22 / 26 Layers represent the _____________ view of application Physical Logical External None of these 23 / 26 JSP action elements allow us to work with _______ HTML JavaScript JavaBeans ManagedBeans 24 / 26 In packages, we organize files into different directories according to their _______ Functionality Usability Category All of these 25 / 26 One application has _________ servlet context(s) 1 2 3 4 26 / 26 DSN stands for ____ Domain System Name Data Source Name Database System Name Database Simple Name Your score isThe average score is 89% 0% Restart quiz