HTML, JSP, and Servlets Fundamentals
Test your knowledge of HTML tags, JSP programming, Servlets, session management, cookies, and related web technologies
Questions
URL instance represents the location of a resource
- True
- False
To show money format on the JSP page we use __________ class
- AirthmaticFormat
- CurrencyFormat
- NumberFormat
- StringBuffer
It is possible to call an external application like MSWord by the click on the JSP page or Servlet?
- True
- False
Can the constructor be used instead of init () to initialize a Servlet
- True
- False
The ________________________ when added to the user session tells us that the session timed out.
- SessionTimeoutIndicator
- SessionTotalTimedoutIndicator
- SessionTotalTimeOutIndicator
- SessionTimedoutIndicator
The browsers are only required to accept________ cookies per site, __________ total per user , and they can limit each cookie's size to __________.
- 20, 300, 4096 bytes (4K)
- 300,20, 4096 bytes (4K)
- 30,200, 4096 bytes (4K)
- 200,39, 4096 bytes (4K)
Which of the following is true
- out class refers to the output stream for the http page
- page class refers to the page Servlet interface
- pageContext refers to the pages Servlet interface
- config interface refers to the servlets configuration.
What is the role played by JSP in the MVC architecture
- Model
- View
- Controller
- None of the above
The jsp:plugin tag is used to insert the browser-specific OBJECTS and EMBED elements
- True
- False
The JspPage interface defines the __________ and ____ method which the page writer can use in their pages and are invoked in much the same manner as the ____ and _____ methods of a servlet.
- jspInit(), jspDestroy(), init() , destroy()
- init(),jspDestroy(),jspInit(),destroy()
- destroy(),jspDestroy(),jspInit(),init()
- init(),destroy(),jspInit(), jspDestroy()
Which of the following statements is true regarding the scope of the ‘session’ in JSP?
- Objects with session scope are accessible from pages processing requests that are in the same session as the one in which they were created.
- It is not legal to define an object with session scope from within a page that is not session-aware.
- All references to the object shall be released after the associated session ends.
- References to objects with session scope are stored in the session object associated with the page activation.
ServletContext class gives information about the Request?
- True
- False
There exists a direct API in JSP to verify that the browser accepted the cookie?
- True
- False
Domain name service (DNS) maps one particular IP address to a string of ___________.
- characters
- digits
- special symbols
- binary digits
What does HTML stand for?
- Hyper Text Makeup Language
- Hyper Text Markup Language
- Hyper Text MainframeLanguage
- Hyper Text Machine Language
What tag is used when you want to insert a picture?
- photo
- graphic
- pic
- img
What does the A tag stand for?
- announce
- attribute
- anchor
- assign
What tag is used when you want to create a name for the page you are creating, so it appears in the title bar of the user’s internet browser?
- page
- title
- name
- none
What does the tag “TR” stand for?
- table roll
- table rank
- table row
- table register