Select which of the following statements about CDATA sections is correct.
Suggested Answer: C
Get Premium I10-001 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
32 comments · newest first
ED
Edgar
10 months ago
You can use different encodings in CDATA, but it's not common practice.
ZO
Zoila
10 months ago
Nah, D is definitely wrong. CDATA isn't treated as comments.
TE
Tequila
10 months ago
Wait, are you sure about that? I thought CDATA was just for comments.
NO
Nohemi
11 months ago
Totally agree, option C is spot on!
GO
Goldie
11 months ago
CDATA sections let you include special characters like < and & without escaping them.
ME
Melina
11 months ago
I vaguely recall that character encoding should be consistent throughout the XML document, so option B might not be right either.
LO
Louisa
11 months ago
I’m not entirely sure, but I feel like the parser doesn’t treat CDATA as comments, so option D seems wrong to me.
RO
Roosevelt
11 months ago
I remember practicing a question about CDATA, and I’m pretty sure you don’t need a DTD declaration for it, which makes me doubt option A.
PE
Pearline
12 months ago
I think CDATA sections allow special characters without escaping them, so maybe option C is correct?
SA
Sang
12 months ago
I think the correct answer is C. The whole point of a CDATA section is to allow you to include literal text, including characters like '<' and '&', without the XML parser trying to interpret them as markup. I'm pretty confident about that.
VA
Vanna
1 year ago
Wait, I'm confused. Isn't a CDATA section used to include text that shouldn't be parsed as XML? I'm not sure if that means you can just use any characters or if there are still some rules. I'll have to review my notes on this.
HO
Hoa
1 year ago
Okay, I remember learning about CDATA sections in class. I believe the key is that they allow you to include special characters without the XML parser interpreting them. So C seems like the right answer here.
CH
Christoper
1 year ago
Hmm, I'm a bit unsure about this. I think the CDATA section is meant to avoid XML parsing, but I'm not sure if that means the characters can be used without any changes. I'll have to think this through carefully.
EL
Elenore
1 year ago
I'm pretty confident about this one. The correct answer is C - characters like '<' and '&' can be used in CDATA sections without modification.
DE
Denae
1 year ago
Option D is just silly. An XML parser would never treat a CDATA section as a comment. That's like saying a dog can meow - it just doesn't make sense!
AN
Antione
1 year ago
C) Characters such as \'<\' and \'&\' can be used within the CDATA section without any modification.
DO
Dorothea
1 year ago
B) You may use different character encoding within the CDATA section than for the body of the XML document.
TR
Truman
1 year ago
A) When coding a CDATA section in an XML document, you must first make a specific declaration with the DTD .
RU
Rupert
1 year ago
Hmm, I was a bit confused by the wording of option B. Can you really use different encodings within a CDATA section? Seems like it would just be a mess!
LA
Laurel
1 year ago
I agree with Alease. CDATA sections are great for including code snippets or other text that would normally need to be escaped in XML.
AL
Alease
2 years ago
Option C is the correct answer. CDATA sections allow you to use special characters like '<' and '&' without needing to escape them.
VE
Venita
1 year ago
Exactly, it makes it easier to include those characters in XML documents.
JE
Jeff
1 year ago
So we don't need to worry about escaping characters like '<' and '&'.
JU
Junita
1 year ago
Yes, you're right. CDATA sections allow special characters without modification.
LE
Leigha
1 year ago
I think the correct statement is C.
BE
Bernadine
1 year ago
Exactly, it makes it easier to include code snippets or scripts in XML documents.
DY
Dyan
1 year ago
So we don't have to worry about escaping characters like '<' and '&'.
WI
Winifred
1 year ago
Yes, you're right. CDATA sections allow special characters without modification.
LA
Lavonna
1 year ago
I think the correct answer is C.
DY
Dyan
2 years ago
I'm not sure, but I think A) is also correct because DTD declaration is needed for CDATA sections.
CL
Clement
2 years ago
I agree with Latanya, because CDATA sections allow special characters without needing to escape them.
LA
Latanya
2 years ago
I think the correct statement is C) Characters such as '<' and '&' can be used within the CDATA section without any modification.