nerdexam
CIW

1D0-510 · Question #28

Which of the following accurately describes a difference between a Java servlet and a PHP script?

The correct answer is B. Servlets must be compiled, whereas PHP scripts are only interpreted. See the full explanation below for the reasoning.

Question

Which of the following accurately describes a difference between a Java servlet and a PHP script?

Options

  • AServlets must be interpreted, whereas PHP scripts are only compiled.
  • BServlets must be compiled, whereas PHP scripts are only interpreted.
  • CPHP scripts can be used only to communicate with databases, whereas servlets can be used to provide additional features.
  • DServlets can be used only to communicate with databases, whereas PHP scripts can be used to provide additional features.

How the community answered

(39 responses)
  • A
    5% (2)
  • B
    79% (31)
  • C
    13% (5)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-510 Practice