Test Series - html

Test Number 10/72

Q: Which tag is used if you want to highlight something that is important to the reader?
A. 
B. 
C. 
D. 
Solution: The  tag is used to make the text bold. The  tag is used to highlight the importance of text. The  tag is emphasis tag and is displayed in italic by browser.  tag is used to write text in italic font.
Q: Which tag is not used if you want to indicate the importance of the phrase?
A. 
B. 

C. 
D. 
Solution: Tags like 

(including all headings from h1 to h6), and can be used to indicate the importance of the phrase. The is none other than a type of font displaced in italic bond by the browsers.

Q: Which of the following statement is not true?
A. XHTML DOCTYPE is mandatory
B. The xmlns attribute in is mandatory
C. , , , and <body> are mandatory</span></div> <div class='b3 panel-body'>D. <span>None of the mentioned</span></div> <div class='desp panel-body' id='d3' style='background-color:#ffffb3;padding-top:20px;'><pre style='background-color:#ffffb3;padding-left: 0px;line-height:22px;'><b>Solution:</b> XHTML is a markup language. There are certain terms and conditions (rules and regulations) for it. There are as: 1) In XHTML, the DOCTYPE is compulsory, 2) Xmlns attribute in <html> in manndatory, 3) The basic building blocks of markup i.e. <html>, <head>, <title>, and <body> are must in one. 4) Last but not least, XHTML is case sensitive where as HTML is case in-sensitive.</pre></div> <input type='hidden' class='r3 panel-body' value='None of the mentioned'> </div><div style='max-width:800px;margin-left:auto;margin-right:auto;margin-top:40px;padding:5px;box-shadow: 0px 6px 8px #888888;background:white;padding:0px;border-radius: 10px;'><div class='p panel-heading' style='background-color:aliceblue;font-size:15;word-wrap:break-word;'><pre style='padding-left: 0px;background-color:aliceblue;line-height:22px;'><b>Q:</b> According to the rules of XML and XHTML, all elements must be closed either with an end tag or by self-closing with space, slash, and a right-pointing angle bracket.</pre></div> <div class='b4 panel-body'>A. <span>True</span></div> <div class='b4 panel-body'>B. <span>False</span></div> <div class='b4 panel-body'>C. <span>1</span></div> <div class='b4 panel-body'>D. <span>0</span></div> <div class='desp panel-body' id='d4' style='background-color:#ffffb3;padding-top:20px;'><pre style='background-color:#ffffb3;padding-left: 0px;line-height:22px;'><b>Solution:</b> XML and XHTML are markup languages used for creating web pages. XHTML is case sensitive, and thus they must be closed either an end tag or by self-closing with a space, slash, and a right pointing angle bracket. Ex) <p></p> is paragraph tag closed with ending tag. <br/> is break tag whose closing is done either by a slash or right pointing angle bracket.</pre></div> <input type='hidden' class='r4 panel-body' value='True'> </div><script async src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2326555401499436' crossorigin='anonymous'></script> <!-- rightleft --> <ins class='adsbygoogle' style='display:block' data-ad-client='ca-pub-2326555401499436' data-ad-slot='2048140033' data-ad-format='auto' data-full-width-responsive='true'></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><div style='max-width:800px;margin-left:auto;margin-right:auto;margin-top:40px;padding:5px;box-shadow: 0px 6px 8px #888888;background:white;padding:0px;border-radius: 10px;'><div class='p panel-heading' style='background-color:aliceblue;font-size:15;word-wrap:break-word;'><pre style='padding-left: 0px;background-color:aliceblue;line-height:22px;'><b>Q:</b> __________ is the XML equivalent to strict HTML 4.01.</pre></div> <div class='b5 panel-body'>A. <span>XHTML 1.0 Strict</span></div> <div class='b5 panel-body'>B. <span>XHTML 1.0 Frameset</span></div> <div class='b5 panel-body'>C. <span>XHTML 1.0 Transitional</span></div> <div class='b5 panel-body'>D. <span>XHTML 1.1 Strict</span></div> <div class='desp panel-body' id='d5' style='background-color:#ffffb3;padding-top:20px;'><pre style='background-color:#ffffb3;padding-left: 0px;line-height:22px;'><b>Solution:</b> XML is a markup language while XHTML is a extensible hypertext markup language. XHTML 1.0 Strict is the XML equivalent to strict HTML 4.01, and includes elements and attributes that have not been marked deprecated in the HTML 4.01 specification.</pre></div> <input type='hidden' class='r5 panel-body' value='XHTML 1.0 Strict'> </div><div style='max-width:800px;margin-left:auto;margin-right:auto;margin-top:40px;padding:5px;box-shadow: 0px 6px 8px #888888;background:white;padding:0px;border-radius: 10px;'><div class='p panel-heading' style='background-color:aliceblue;font-size:15;word-wrap:break-word;'><pre style='padding-left: 0px;background-color:aliceblue;line-height:22px;'><b>Q:</b> Which of the following statement is true?</pre></div> <div class='b6 panel-body'>A. <span>Attribute names must be in uppercase</span></div> <div class='b6 panel-body'>B. <span>Attribute values must be quoted</span></div> <div class='b6 panel-body'>C. <span>Attribute minimization is mandatory</span></div> <div class='b6 panel-body'>D. <span>Attribute values should not be quoted</span></div> <div class='desp panel-body' id='d6' style='background-color:#ffffb3;padding-top:20px;'><pre style='background-color:#ffffb3;padding-left: 0px;line-height:22px;'><b>Solution:</b> HTML is hypertext markup language. There are many rules and regulations in HTML for attribute specification. HTML is case in-sensitive and thus we can write attribute name in either uppercase or lowercase, none of it is going to make difference. There is nothing like that atrribute name should be minimized, we can write attribute name as long as and as short as we want. The only rule for attribute name is that it should be in quoted form.</pre></div> <input type='hidden' class='r6 panel-body' value='Attribute values must be quoted'> </div><div style='max-width:800px;margin-left:auto;margin-right:auto;margin-top:40px;padding:5px;box-shadow: 0px 6px 8px #888888;background:white;padding:0px;border-radius: 10px;'><div class='p panel-heading' style='background-color:aliceblue;font-size:15;word-wrap:break-word;'><pre style='padding-left: 0px;background-color:aliceblue;line-height:22px;'><b>Q:</b> The root element of an XHTML document must be html, and must contain an __________ attribute to associate it with the XHTML namespace.</pre></div> <div class='b7 panel-body'>A. <span>source</span></div> <div class='b7 panel-body'>B. <span>src</span></div> <div class='b7 panel-body'>C. <span>xmlns</span></div> <div class='b7 panel-body'>D. <span>link</span></div> <div class='desp panel-body' id='d7' style='background-color:#ffffb3;padding-top:20px;'><pre style='background-color:#ffffb3;padding-left: 0px;line-height:22px;'><b>Solution:</b> The xmlns attribute specifies the xml namespace for a document. It is manadatory in XHTML while in HTML5 it is optional. The root element of an XHTML document must be html, and must contain an xmlns atrribute to associate it with the XHTML namespace.</pre></div> <input type='hidden' class='r7 panel-body' value='xmlns'> </div><div style='max-width:800px;margin-left:auto;margin-right:auto;margin-top:40px;padding:5px;box-shadow: 0px 6px 8px #888888;background:white;padding:0px;border-radius: 10px;'><div class='p panel-heading' style='background-color:aliceblue;font-size:15;word-wrap:break-word;'><pre style='padding-left: 0px;background-color:aliceblue;line-height:22px;'><b>Q:</b> Which of the following encoding an XML parser assumes?</pre></div> <div class='b8 panel-body'>A. <span>UTF-8</span></div> <div class='b8 panel-body'>B. <span>UTF-16</span></div> <div class='b8 panel-body'>C. <span>UTF-32</span></div> <div class='b8 panel-body'>D. <span>Both UTF-8 and UTF-32</span></div> <div class='desp panel-body' id='d8' style='background-color:#ffffb3;padding-top:20px;'><pre style='background-color:#ffffb3;padding-left: 0px;line-height:22px;'><b>Solution:</b> Basically parsers are used in softwares and they convert user data into machine data in short in memory form to use. In XML, parser is used to read XML. If an XML document lacks encoding specification, an XML parser assumes that the encoding is UTF-8 or UTF-16.</pre></div> <input type='hidden' class='r8 panel-body' value='Both UTF-8 and UTF-32'> </div><script async src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2326555401499436' crossorigin='anonymous'></script> <!-- rightleft --> <ins class='adsbygoogle' style='display:block' data-ad-client='ca-pub-2326555401499436' data-ad-slot='2048140033' data-ad-format='auto' data-full-width-responsive='true'></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><div style='max-width:800px;margin-left:auto;margin-right:auto;margin-top:40px;padding:5px;box-shadow: 0px 6px 8px #888888;background:white;padding:0px;border-radius: 10px;'><div class='p panel-heading' style='background-color:aliceblue;font-size:15;word-wrap:break-word;'><pre style='padding-left: 0px;background-color:aliceblue;line-height:22px;'><b>Q:</b> __________ is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents.</pre></div> <div class='b9 panel-body'>A. <span>XHTML + RDFa</span></div> <div class='b9 panel-body'>B. <span>XHTML+XHTML5</span></div> <div class='b9 panel-body'>C. <span>XHTML1.0+XHTML2.0</span></div> <div class='b9 panel-body'>D. <span>XHTML + RDF</span></div> <div class='desp panel-body' id='d9' style='background-color:#ffffb3;padding-top:20px;'><pre style='background-color:#ffffb3;padding-left: 0px;line-height:22px;'><b>Solution:</b> XHTML+RDFa (Extensible Hypertext Markup Language + Resource Description Framework in attributes) is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents.</pre></div> <input type='hidden' class='r9 panel-body' value='XHTML + RDFa'> </div><div style='max-width:800px;margin-left:auto;margin-right:auto;margin-top:40px;padding:5px;box-shadow: 0px 6px 8px #888888;background:white;padding:0px;border-radius: 10px;'><div class='p panel-heading' style='background-color:aliceblue;font-size:15;word-wrap:break-word;'><pre style='padding-left: 0px;background-color:aliceblue;line-height:22px;'><b>Q:</b> XML is a markup language where documents must be marked up correctly.</pre></div> <div class='b10 panel-body'>A. <span>True</span></div> <div class='b10 panel-body'>B. <span>False</span></div> <div class='b10 panel-body'>C. <span>1</span></div> <div class='b10 panel-body'>D. <span>0</span></div> <div class='desp panel-body' id='d10' style='background-color:#ffffb3;padding-top:20px;'><pre style='background-color:#ffffb3;padding-left: 0px;line-height:22px;'><b>Solution:</b> XML is markup language while XHTML is extensible hypertext version of markup language. XHTML is HTML defined as an XML application. XHTML is stricter than HTML.</pre></div> <input type='hidden' class='r10 panel-body' value='True'> </div> <br> <table style="margin-left:auto;margin-right:auto;color:Black;font-weight:bold "><tr><td>You Have Score    </td><td id="t1"></td><p></p><td>/10</td></td></tr></table> <br> <div style="text-align:center"> <a href='exam4.php?tno=9&type=html'> <button style='float:left;color:Black;font-weight:bold;background-color:#008a9a;color:white;padding:16px;padding-top:10px;padding-bottom:10px;border-radius:10px'>Previous Test</button> </a><a href='exam4.php?tno=11&type=html'> <button style='float:right;color:Black;font-weight:bold;background-color:#008a9a;color:white;padding:16px;padding-top:10px;padding-bottom:10px;border-radius:10px'>Next Test</button> </a><a href='interviewhome.php'> <button style='color:Black;font-weight:bold;background-color:#008a9a;color:white;padding:16px;padding-top:10px;padding-bottom:10px;border-radius:10px'>Back to Home</button> </a> </div> <script> //to disable right click... also added on body tag $(document).ready(function () { $('body').bind('cut copy', function (e) { e.preventDefault(); }); }); </script> </body> </html>