0

programming languages Online Quiz - 220

Description: programming languages Online Quiz - 220
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Correct validate () method?

  1. public ActionErrors validate(ActionMapping mapping,HttpServletReuest reuest)

  2. public ActionError validate(ActionMapping mapping, HttpServletReuest reuest)

  3. public ActionError validate(HttpServletReuest reuest, HttpServletResponse response)

  4. None of the above


Correct Option: A
  1. BasicServlet

  2. EntryServlet

  3. ActionServlet

  4. StrutsServlet


Correct Option: C

ActionServlet is acts like as?

  1. SessionFacade

  2. Filter

  3. Front controller

  4. Back controller


Correct Option: C
  1. nocache=true

  2. cache=false

  3. nocachereuired=false

  4. None of the above


Correct Option: A

Which file contains java script for client side validation using validation framework in struts?

  1. validation.xml

  2. validator-rules.xml

  3. both files

  4. None


Correct Option: B
  1. Session , request

  2. Page, request, session

  3. Page, request, session, application

  4. request, session, application


Correct Option: A
  1. WorkWeb 2

  2. WebWork 2

  3. Jstruts 2

  4. None of the above


Correct Option: B

In Struts 1.1, you can change how Struts populates a form by

  1. Overriding the populateBean method of the ActionMapping

  2. Overriding the processPopulate method of the Request Processor

  3. Overriding the populate method of the ActionForm

  4. None of the above


Correct Option: B

Consider the following program code: %hash = (small => 8oz, medium => 16oz, large => 32oz); @keys = sort(keys(%hash)); for ($i = 0; $i < 3; $i++) { print($hash{$keys[$i]}\n); } What is the result of executing this program code?

  1. The code will fail at line 1 because a hash cannot contain both numeric and string data.

  2. The code will execute without error but will output nothing.

  3. The code will output the following:32oz 16oz 8oz

  4. The code will output the following:large medium small


Correct Option: C

Assume @list contains (“1”, “2”, “3”, “4”, “5” ). What is the content of @list after the following statement splice (@list, -1, 1, “test1”. “test2”);

  1. (“1”, “2”, “3”, “4”, “test1”, “test2”)

  2. ( “2”, “3”, “4”, “test1”, “test2”)

  3. (“1”, “3”, “4”, “test1”, “test2”)

  4. (“1”, “test1”, test2”, “2”, “3”, “4” )


Correct Option: A
- Hide questions