This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Another set of Mock questions!!

 
Jaysakthy Muthuvelu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I took skillometer exam. I would like to know answers for these questions.
Can anyone help me with this?
1. <source><book> Book content 1
<author> author1 </author>
</book>
<book> Book content 2
<author> author2 </author>
</book></source>
In css :
book : {font : BOLD} (Iam not sure abt the CSS coding but altogether CSS is set to bold for BOOK elt)

My answer : Bookcontent1author1Bookcontent2author2 will get o/p as bold.Is that correct?

2. which of the following r META Languages ?
SGML,HTML,XML,Mathml
(Guess ?? XML,SGML,HTML)
3.XML vocabulary used in particular field of knowledge is defined by :
stylesheet,DTD,CSS,Doctype declaration.
4.An XML doc. is a standalone(yes) but it's not wellformed can i say its "valid" or not?
Thanks
shakthy
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jaysakthy Muthuvelu:

2. which of the following r META Languages ?
SGML,HTML,XML,Mathml

SGML

3.XML vocabulary used in particular field of knowledge is defined by :
stylesheet,DTD,CSS,Doctype declaration.

Doctype declaration

4.An XML doc. is a standalone(yes) but it's not wellformed can i say its "valid" or not?

Invalid
 
Jaysakthy Muthuvelu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
2. For meta Language question choose all the correct answer?
How come XML is not a meta language while SGML is.
Thanks,
Shakthy.
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML is a subset of SGML.
 
Jaysakthy Muthuvelu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,
This question is discussed in the previous posts but they were not clear to me
1.Documents with Processing instruction can be handled by SAX or not?
True or false.
I think its "true"
If "false" why?
2.
28. XML rendering is appropriate for:
I. generation of web pages and HTML output.
II. composition for electronic publishing to print media.
III. interchange of information with pervasive computing devices.
A. I and II only
B. I and III only
C. II and III only
D. I, II and III
Answer is "d" But i would say "b"
Different mock exams r telling different statements abt this questions.Plz clarify this.
32. Which of the following should NOT be relied upon to locate information of interest when querying an XML document?
A. The element type of an element
B. An attribute value specified on an element start tag
C. A processing instruction contained by the element of interest
D. Comments on the element declaration for the element of interest
The answer is "d",but my naswer is C & D.
why c : PI r for Application it should contain xml data(By Ajith KALAMBELLA)
Thanks in advance,
shakthy.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don said -
XML is a subset of SGML.

I wouldn't say so.
The book 'Professional Java Server Programming, J2EE Edition' explains well the leap XML made from SGML.
It says -
XML is a successor to SGML, simplified and adapted for the Internet.
There are a number of well-formedness constrains scattered through XML 1.0, but these three are the most important, and probably the only ones you will ever need:
- All attributes values must be quoted
- Elements must form a tree
- The tree structure must be explicitly shown by the document's markup.
The first two constraints also apply to SGML languages, including HTML (although HTML parsers don't choose to enforce them).
The third constraint means that the start and end of every element must be clearly indicated in markup. This requirement is what clearly separates SGML (including HTML) from XML (including XHTML). XML documents can be parsed, quickly and reliably, into a tree, in the absence of a DTD, but SGML documents need a DTD to be parsed. The notion of well-formedness does not apply to SGML documents: there can be perfectly valid SGML documents that are not well-formed in the XML sense.

Cheers,
Dan
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I took the words from Professional XML 2nd Ed. by Wrox.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right about 1.
The following is all bold - Book content 1 author1 Book content 2 author2
That's because a CSS rule applies to an element and all its descendants.
The stylesheet is -

Cheers,
Dan
 
Jaysakthy Muthuvelu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Don & Dan,
So, what's the conclusion for Meta language?
Is Meta language & metamarkup language r one & the same or Different?
Acc to XML Nutshell

XML is a metamarkup language. That means it doesn't have a fixed set of tags and elements that are supposed to work for everybody in all areas of interest for all time. Any attempt to create a finite set of such tags is doomed to failure.

Can anyone explain Meta language?
I have to take the test on saturaday,so plz answer all the questions i have asked b4.
I greatly appreciate all of ur help,
Shakthy.
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaysakthy,
I passed the exam ~10 months ago, I wasn't much aware of Meta language. In fact, there seems no such term in Professional XML 2nd Ed. by Wrox.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About Meta languages -
The quote from 'XML in a nutshell' says it all. The Meta language allows the user to define the vocabulary for the new language.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic