Multiple choice technology programming languages

Which of the following represents a correct syntax for usebean. Select the two correct answers.

  1. <jsp:usebean id="fruit scope ="page"/>

  2. <jsp:usebean id="fruit type ="String"/>

  3. <jsp:usebean id="fruit type ="String" beanName="Fruit"/>

  4. <jsp:usebean id="fruit class="Fruit" beanName="Fruit"/>

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

Valid syntax requires id attribute and either type or class (or type with beanName). Option A is missing equals signs. Option D incorrectly combines class with beanName. Options B and C show valid attribute combinations.