Atomic Physics and Java Servlets
Covers nuclear physics, atomic structure, and Java web development concepts including servlets, web.xml configuration, and security mechanisms
Questions
which of the following package does the GenericServlet class belongs to?
- javax.http
- jaxax.http.servlet
- javax.servlet.http
- javax.servlet
Which of the following has to be implemented to make a servlet thread safe?
- SinglethreadModel
- SingleThreadedModel
- SingleThreadModel
- SingleThreadmodel
Which of the following exceptions are thrown by the doGet() method?
- NullPointerException
- ServletException
- FileNotFoundException
- IOException
- none of the above
Which of the following sends the request type as GET?
- User clicks the hyperlink
- user submits a form with method=POST
- user types the url in the browsers address field and press enter
- user submits a form with method=GET
Which of the follwoing returns more than one value associated with parameter?
- Getparameter()
- getParameterValue()
- getParameterValues()
- getParamValues()
Which of the following allows to access Servlet's initialization parameters?
- Servlet
- ServletContext
- ServletConfig
- ServletInit
Which of the following tag in web.xml contains the url pattern of the servlet
- <servlet>
- <servlet-pattern>
- <servlet-name>
- <servlet-mapping>
Which of the following sends an error message to client?
- sendErrorMessage()
- sendError()
- sendMessage()
- sendHttpErrorCode()
In Which of the follqwing security mechanisms,data is not encrypted
- Basic
- Form-Based
- Client
- Digest
Which of the following tag in web.xml ,indicates a resource to be invoked for a particular error code?
- <error-page>
- <error-type>
- <error>
- <error-resource>
Which of the following is an example of dynamic inclusion?
- getRequestDispatcher("www.google.com").forward(req,resp);
- getRequestDispatcher("www.google.com").include(req,resp);
- resp.include(req,resp);
- resp.forward(req,resp)
Which of the following tag in web.xml ,identifies a name-value pair for the ServletContext object
- <init-param>
- <context>
- <context-param>
- <context-value>
By default a servlet is multi-threaded
- True
- False
Nuclei of atoms that make up a newborn baby were made in:
- In the mother's body
- Ancient stars
- The food the mother eats before giving birth
- The earth
The chemical properties of matter comes mostly from its
- Neutrons
- Valence electrons
- Protons
- Neucleous
An excited atom decays to its ground state and emits a photon of green light. If instead, the atoms decays to an intermediate state, then the light emitted could be:
- Violet
- White
- Blue
- Red
If one neutron is added to a helium nucleus, the result is:
- Lithium
- Helium
- Hydrogen
- Carbon
How many electrons are found in the outermost shell of aluminum (Al, atomic number 13)?
- 2
- 3
- 5
- 8
When radium (atomic number 88) emits an alpha particle, the resulting nucleus has atomic number.
- 92
- 90
- 88
- 86