JNCIA-DevOps: Juniper Networks Certified Associate – Automation (2021) — Question 27

Which XML shorthand notation is used when no data exists between tags?

Answer options

Correct answer: A

Explanation

The correct answer is A, <data*>, which is used to denote an empty element in XML shorthand notation. The other options are incorrect because <data+> implies one or more occurrences, </data/> is a closing tag, and <data/> represents a self-closing tag that may not clearly imply the absence of data.