Question
Which of the following language defines the structure,
the legal elements and the attributes of an XML document?Solution
Why this is correct:
A DTD defines the permitted structure of an XML document (what elements are allowed, their nesting, and attributes). It’s one formal mechanism to define the grammar of an XML document. Why the others are wrong:
- 1 (XSL): Extensible Stylesheet Language, used for styling/transformation, not for defining XML grammar.
- 3 (CSS): Cascading Style Sheets — used for styling HTML/XML, not for structure/grammar.
- 4 (XSLT): XSL Transformations — used to transform XML documents (e.g., into HTML), not to declare XML structure.
Average of 20 numbers is 90. Average of first 8 numbers is 114 while average of last nine numbers is 40. If ninth number is 25% less than the tenth numb...
A batsman had an average of 82 runs per match in the first 25 matches. In his next 15 matches, he scored runs with an average of ‘x’ runs per match ...
The ratio of number of girls to number of boys is 3: 2 in a class of 70 students. The average marks scored by the boys in Physics is 72 and the average...
The average of 12, 33, and x is 25. What is the value of x?
Three numbers a, b and c are such that a = 120, (a + b) = 420 and (c – b) = 90. Find their average.
The average weight of a group of five persons, A, B, C, D, and E is 70 kg. If another person K joins the group then the average weight of the group is d...
In a school with 400 students, the average of the age of the boys is 16 years and that of the girls is 12 years. If the average age of the school is 14 ...
Average weight of Shikhar, Rohit and Virat is 72 kg. Hardik joins the group and the average now becomes 65 kg. If Dhoni whose weight is 8 kg more than ...
The average age of a group of 10 students is 30 years. Two persons of age 12 years and 10 years, left the group and 2 persons of age 20 years and 12 yea...
The average of 10 numbers is 102. The average of the first 5 numbers is 78 and the average of the last 4 numbers is 46. What is the 6th number?