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
  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 initialize parameter is used to specify Struts configuration?

  1. initialize

  2. config

  3. setup

  4. param


Correct Option: B

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
  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 lines of code: @array1 = ("apples", "oranges", "pears", "plums"); foreach (@array1) {print "$_\n"}; What is the result of these lines of code?

  1. applesorangespearsplums

  2. apples oranges pears plums

  3. apples

  4. apples oranges pears plums


Correct Option: D
  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