Multiple choice technology programming languages

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

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

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

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

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

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

The action requires either a class or type attribute. Option B correctly uses only the type attribute with proper syntax. Option C is also valid as it combines type with beanName (used with type but not class). Option A has malformed scope attribute (missing equals), and option D incorrectly combines class with beanName which are mutually exclusive alternatives.