Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. <jsp:getColor bean="fruit"/>

  2. <jsp:getProperty id="fruit" property="color"/>

  3. <jsp:getProperty bean="fruit" property="color"/>

  4. <jsp:getProperty name="fruit" property="color"/>

  5. <jsp:getProperty class="Fruit" property="color"/>

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology programming languages
  1. <jsp:setColor id="fruit" property="color" value="white"/>

  2. <jsp:setColor name="fruit" property="color" value="white"/>

  3. <jsp:setValue name="fruit" property="color" value="white"/>

  4. <jsp:setProperty name="fruit" property="color" value="white">

  5. <jsp:setProperty name="fruit" property="color" value="white"/>

Reveal answer Fill a bubble to check yourself
E Correct answer
Multiple choice technology programming languages
  1. This is incorrect syntax of <jsp:setProperty/> and will generate a compilation error. Either value or param must be defined.

  2. All the properties of the fruit bean are initialized to a value of null.

  3. All the properties of the fruit bean are assigned the values of input parameters of the JSP page that have the same name.

  4. All the properties of the fruit bean are initialized to a value of *.

Reveal answer Fill a bubble to check yourself
C Correct answer