Atomic Physics and Java Servlets

Covers nuclear physics, atomic structure, and Java web development concepts including servlets, web.xml configuration, and security mechanisms

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

which of the following package does the GenericServlet class belongs to?

  1. javax.http
  2. jaxax.http.servlet
  3. javax.servlet.http
  4. javax.servlet
Question 2 Multiple Choice (Single Answer)

Which of the following has to be implemented to make a servlet thread safe?

  1. SinglethreadModel
  2. SingleThreadedModel
  3. SingleThreadModel
  4. SingleThreadmodel
Question 3 Multiple Choice (Multiple Answers)

Which of the following exceptions are thrown by the doGet() method?

  1. NullPointerException
  2. ServletException
  3. FileNotFoundException
  4. IOException
  5. none of the above
Question 4 Multiple Choice (Multiple Answers)

Which of the following sends the request type as GET?

  1. User clicks the hyperlink
  2. user submits a form with method=POST
  3. user types the url in the browsers address field and press enter
  4. user submits a form with method=GET
Question 5 Multiple Choice (Single Answer)

Which of the follwoing returns more than one value associated with parameter?

  1. Getparameter()
  2. getParameterValue()
  3. getParameterValues()
  4. getParamValues()
Question 6 Multiple Choice (Single Answer)

Which of the following allows to access Servlet's initialization parameters?

  1. Servlet
  2. ServletContext
  3. ServletConfig
  4. ServletInit
Question 7 Multiple Choice (Single Answer)

Which of the following tag in web.xml contains the url pattern of the servlet

  1. <servlet>
  2. <servlet-pattern>
  3. <servlet-name>
  4. <servlet-mapping>
Question 8 Multiple Choice (Single Answer)

Which of the following sends an error message to client?

  1. sendErrorMessage()
  2. sendError()
  3. sendMessage()
  4. sendHttpErrorCode()
Question 9 Multiple Choice (Multiple Answers)

In Which of the follqwing security mechanisms,data is not encrypted

  1. Basic
  2. Form-Based
  3. Client
  4. Digest
Question 10 Multiple Choice (Single Answer)

Which of the following tag in web.xml ,indicates a resource to be invoked for a particular error code?

  1. <error-page>
  2. <error-type>
  3. <error>
  4. <error-resource>
Question 11 Multiple Choice (Single Answer)

Which of the following is an example of dynamic inclusion?

  1. getRequestDispatcher("www.google.com").forward(req,resp);
  2. getRequestDispatcher("www.google.com").include(req,resp);
  3. resp.include(req,resp);
  4. resp.forward(req,resp)
Question 12 Multiple Choice (Single Answer)

Which of the following tag in web.xml ,identifies a name-value pair for the ServletContext object

  1. <init-param>
  2. <context>
  3. <context-param>
  4. <context-value>
Question 13 True/False

By default a servlet is multi-threaded

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

Nuclei of atoms that make up a newborn baby were made in:

  1. In the mother's body
  2. Ancient stars
  3. The food the mother eats before giving birth
  4. The earth
Question 15 Multiple Choice (Single Answer)

The chemical properties of matter comes mostly from its

  1. Neutrons
  2. Valence electrons
  3. Protons
  4. Neucleous
Question 16 Multiple Choice (Single Answer)

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:

  1. Violet
  2. White
  3. Blue
  4. Red
Question 17 Multiple Choice (Single Answer)

If one neutron is added to a helium nucleus, the result is:

  1. Lithium
  2. Helium
  3. Hydrogen
  4. Carbon
Question 18 Multiple Choice (Single Answer)

How many electrons are found in the outermost shell of aluminum (Al, atomic number 13)?

  1. 2
  2. 3
  3. 5
  4. 8
Question 19 Multiple Choice (Single Answer)

When radium (atomic number 88) emits an alpha particle, the resulting nucleus has atomic number.

  1. 92
  2. 90
  3. 88
  4. 86