Tag: programming languages

Questions Related to programming languages

The _______ when added to the user session tells us that the session timed out

  1. SessionTimedoutIndicator

  2. SessionTotalTimeOutIndicator

  3. SessionTotalTimedoutIndicator

  4. SessionTimeoutIndicator


Correct Option: A
  1. setContentWriter()

  2. setWriter()

  3. setPrintType()

  4. setContentType()


Correct Option: D

Following method(s) cannot be overridden in the JSP page.

  1. jspDestroy()

  2. jspInit()

  3. _jspService()

  4. getParameter()


Correct Option: C

Following methods can be overridden in the JSP page

  1. jspDestroy()

  2. jspInit()==

  3. _jspService()

  4. getParameter()


Correct Option: A

The tag %@include file=”.........” % > helps in including the ______ file in the JSP page

  1. readOnly==

  2. dynamic

  3. static==

  4. None of the above


Correct Option: C
  1. AirthmaticFormat

  2. CurrencyFormat

  3. NumberFormat ==

  4. StringBuffer


Correct Option: C
Explanation:

To solve this question, the user needs to know what class can be used for formatting money on a JSP page.

The correct answer is:

C. NumberFormat

Option C is correct because the NumberFormat class is used for formatting numbers, including currency values. It provides methods for formatting numbers into strings that can be displayed on a JSP page. The CurrencyFormat class does not exist in Java and AirthmaticFormat and StringBuffer are not used for formatting currency values.

Therefore, the answer is: C. NumberFormat.

Which of the tag contains a code fragment valid in the page scripting language


Correct Option: B
  1. The Local Systems IP Address

  2. Local Systems Port Number

  3. Remote System’s IPAddress

  4. All of the above


Correct Option: D