E4X Test
Consider the code snippet below. Which of the given options represents the correct output of the code attribute substitution for special characters in E4X? var b = 'Best of luck "Studentname & Rol...
Consider the code snippet below. Which of the given options represents the correct sequence of outputs when this code is executed in E4X? var p1 = <p>Kibology for all.</p>; alert(p1.name().uri);...
Consider the following code snippet. Which of the given options would be used in E4X to change the color of the descendant node chair? var element = <Home> <Room> <Furniture> <ch...
State whether true or false: An arbitrary xml file can be loaded as an E4X ready object.
State whether true or false: The QName.prototype.toString() method throws a TypeError exception if its value is not a QName object.
What is the correct way to add a method to an XML.prototype in E4X?
What is the default value of the property prettyIndent in E4X?
What is the value returned when the input parameter type of the XMLList() function in E4x is Number?
What will be the output of the following code snippet? var customer = <customer> <phone type="mobile">888-555-1212</phone> <phone type="office">888-555-2121</phone> <preferred>mobile</prefe...
What will be the output of the following code snippet? element = <xhtml:p xmlns:xhtml="http://www.example.org">Kibology for all.</xhtml:p>; elementName = element.name(); alert(elementN...
What will be the output of the following code snippet? var xml = <body></body>; xml.appendChild("hello"); Xml.appendChild(" world"); xml.normalize(); alert(xml.children().length());
Which of the following are not global methods and properties in E4X?
Which of the following can be used to create attribute values by placing variables and expressions within them?
Which of the following characters are treated as white space characters?
Which of the following is not a reserved keyword in E4X and JavaScript?
Which of the following is not a valid built-in method for XMLList objects in E4X?
Which of the following is not true of the Namespace constructor in E4X?
Which of the following is the correct syntax for calling the Namespace constructor as a function in E4X?
Which of the following is the correct way to create an XML object in E4X?
Which of the following methods is not one of the global methods and properties in E4X?
Which of the following methods would give the output corresponding to the code snippet? var test = <type name="Joe"> <base name="Bob"></base> example </type>; output: <type name="Joe"> <ba...
Which of the following operators is used for inserting XML objects in the context of their parent in E4X?
Which of the following options can be used for adding direct support for XML to JavaScript?
Which of the following options can be used to delete a child node of an XML object in E4X?
Which of the following options is the correct alternative to the code snippet so as to get the given output? Code: var e= <employee> <name>Smith</name> <designation>S/w Engineer</designation> </e...
Which of the following options is used to access the attributes in E4X?
Which of the following options would be returned by the code shown in the code snippet: var f = <foo> <a> text </a> <a> <b/> </a> </foo>; alert(f.a[...
Which of the following public methods in E4X has the return type XML?
Which of the following settings are there in E4x to influence parsing and serialization? element = <xhtml:p xmlns:xhtml="http://www.example.org">Kibology for all.</xhtml:p>; elementName = ...
Which of the given options represents the correct length when alert(Emp..*.length()); is applied to the following code? var Emp = <Emp> <name>Mark</name> <likes> <os>Linux</os> <browser>...