Scripts- Server Side-JSP [Computer Associates Placement]: Sample Questions 17 - 18 of 18

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 17

Appeared in Year: 2004

Question

MCQ▾

What exception is thrown when Servlet initialization fails?

Choices

Choice (4)

a.

IOEception

b.

RemoteException

c.

ServletException

d.

Question does not provide sufficient data or is vague

Answer

c.

Explanation

  • Defines a general exception a servlet can throw when it encounters difficulty.
  • If the servlet՚s init () method throws a ServletException, the servlet engine will disable that servlet, making it unavailable to end users. So, if your initialization logic fails, throw a ServletException.

Question 18

Appeared in Year: 2004

Question

MCQ▾

The time between Command Execution and Response is called________

Choices

Choice (4)

a.

Lag time

b.

Latency

c.

Granularity

d.

Question does not provide sufficient data or is vague

Answer

a.

Explanation

  • Granularity:
    • Granularity is a term often used in parallel processing to indicate independent processes that could be distributed to multiple CPUs.
    • Granularity is not only the number of processes but also how much work each process does, relative to the time of synchronization that determines the overhead and reduces speedup figures.
  • Latency:
    • Latency is a measure of the temporal delay.
    • Latency refers to the delay in time between the sending of a unit of data at the originating end of a connection and the reception of that unit at the destination end.
    • The amount of time it takes a packet to travel from source to destination.
    • So, latency and bandwidth define the speed and capacity of a network.
  • Lag Time:
    • Lag Time is the amount of time between making an online request or command and receiving a response.
    • A primary goal of advertising network efficiency is to minimize lag time.

Developed by: