...
Question 6918 – UGC NET CS 2015 Dec – paper-3
December 16, 2023
GATE 2003
December 16, 2023
Question 6918 – UGC NET CS 2015 Dec – paper-3
December 16, 2023
GATE 2003
December 16, 2023

NVS PGT CS 2017 Part-B

Question 4
Pick out the invalid element naming rule for an XML element from the following rules :
A
Names can start with a number or punctuation character.
B
Names can contain letters, numbers, hyphens, underscores and periods.
C
Names cannot contain spaces
D
Names must not start with the letters.
Question 4 Explanation: 
XML elements must follow these naming rules:
Element names are case-sensitive
Element names must start with a letter or underscore
Element names cannot start with the letters xml (or XML, or Xml, etc)
Element names can contain letters, digits, hyphens, underscores, and periods
Element names cannot contain spaces
Correct Answer: D
Question 4 Explanation: 
XML elements must follow these naming rules:
Element names are case-sensitive
Element names must start with a letter or underscore
Element names cannot start with the letters xml (or XML, or Xml, etc)
Element names can contain letters, digits, hyphens, underscores, and periods
Element names cannot contain spaces

Leave a Reply

Your email address will not be published. Required fields are marked *