Multiple choice technology web technology

The statement is used to

  1. Select the Jim element

  2. Select the Jim attribute

  3. Select the id attribute

  4. Select the id attribute if the value is Jim

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

The expression select="@id" (with value 'Jim' being the predicate filter) selects the id attribute value of elements where id equals 'Jim'. Option C correctly identifies that it selects the id attribute - the @ symbol in XPath denotes an attribute.