Tag: web technology

Questions Related to web technology

Multiple choice technology web technology
  1. The before() method will print 1 2

  2. The before() method will print 1 2 3

  3. The before() method will print three numbers, but the order cannot be determined

  4. The before() method will not compile

  5. The before() method will throw an exception at runtime

Reveal answer Fill a bubble to check yourself
E Correct answer
Multiple choice technology web technology
  1. the normal class representation with a dotted arrow pointing at the template parameter classes

  2. the normal class representation but shaded grey.

  3. the normal class representation with a dotted outline and the names of its parameter classes listed on the top right-hand corner.

  4. the normal class representation with a rectangular box in its top left-hand corner.

  5. Its a trick question - parameterized classes can't be specified in the UML notation.

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology web technology
  1. The _jspService() method is called from the generated servlet's service() method.

  2. jspInit() is only ever called on the first request to a JSP instance.

  3. jspDestroy() is only ever called on the last request to a JSP instance.

  4. All servlet methods are accessible from the jspInit() method.

  5. You cannot override or provide a no-parameter init() method in a JSP page.

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Multiple choice technology web technology
  1. A request is sent with the HTTP method HEAD.

  2. A request is sent with the HTTP method POST.

  3. A request is sent with the HTTP method GET.

  4. The parameter fullName is the only parameter passed to the web server in the request URL.

  5. The parameters fullName and sbmButton are passed to the web server in the request URL.

  6. The parameter fullName is the only parameter passed to the web server as part of the request body.

Reveal answer Fill a bubble to check yourself
C,F Correct answer
Multiple choice technology web technology
  1. If the equals() method returns true, the hashCode() comparison == might return false

  2. If the equals() method returns false, the hashCode() comparison == might return true

  3. If the hashCode() comparison == returns true, the equals() method must return true

  4. If the hashCode() comparison == returns true, the equals() method might return true

  5. If the hashCode() comparison != returns true, the equals() method might return true

Reveal answer Fill a bubble to check yourself
B,D Correct answer
Multiple choice technology web technology
  1. As the code stands it will not compile

  2. As the code stands the output will be 2

  3. As the code stands the output will be 3

  4. If the hashCode() method is uncommented the output will be 2

  5. If the hashCode() method is uncommented the output will be 3

  6. If the hashCode() method is uncommented the code will not compile

Reveal answer Fill a bubble to check yourself
C,D Correct answer