Discussion
Which of the following commands is used to comment out multiple lines in an XML file?
Answer: A
The first option is the right way to comment out multiple lines in XML, using <!-- to open the comment and --> to close it, which can span several lines. The second and third options use the comment styles of C and C++ (/* */ and //), which are not XML comments. The fourth lacks the exclamation mark and so is not a valid comment opening. The two dashes after the opening mark and before the closing mark are part of the syntax, and the text between them is ignored by the XML processor.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development