E4X Interview Questions & Answers

  1. Question 1. What Is The Value Returned When The Input Parameter Type Of The Xmllist() Function In E4x Is Number?

    Answer :

    The value is first converted to a string and then converted to an XMLList object.

  2. Question 2. Which Of The Following Options Can Be Used To Delete A Child Node Of An Xml Object In E4x?

    Answer :

    delete xmlobject.@attribute;

  3. XML Interview Questions

  4. Question 3. Which Of The Following Is The Correct Way To Create An Xml Object In E4x?

    Answer :

    var languages XML = new XML(‘JavaScriptPython’);

  5. Question 4. State Whether True Or False: An Arbitrary Xml File Can Be Loaded As An E4x Ready Object?

    Answer :


  6. XML Tutorial

  7. Question 5. Which Of The Following Characters Are Treated As White Space Characters?

    Answer :

    Line feed, Tab.

  8. Microsoft Silverlight Interview Questions

  9. Question 6. Which Of The Following Methods Is Not One Of The Global Methods And Properties In E4x?

    Answer :

    isScopeNamespaces(), removeNamespaces().

  10. Question 7. Which Of The Following Options Can Be Used For Adding Direct Support For Xml To Javascript?

    Answer :


  11. Microsoft Silverlight Tutorial
    Java Abstraction Interview Questions

  12. Question 8. Which Of The Following Is The Correct Syntax For Calling The Namespace Constructor As A Function In E4x?

    Answer :

    Namespace(), Namespace(uriValue).

  13. Question 9. Which Of The Following Operators Is Used For Inserting Xml Objects In The Context Of Their Parent In E4x?

    Answer :


  14. Javascript Advanced Interview Questions

  15. Question 10. Which Of The Given Options Represents The Correct Length When Alert(emp..*.length()); Is Applied To The Following Code?
    Var Emp = mark linux firefox javascript python

    Answer :


  16. Javascript Advanced Tutorial

  17. Question 11. What Will Be The Output Of The Following Code Snippet?
    Element = kibology For All.; Elementname = Element.name(); Alert(elementname.localname); //1 Alert(elementname.uri); // 2

    Answer :


  18. Adobe Flex Interview Questions

  19. Question 12. 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 =

    Answer :

    element.chair.color=”light brown”

  20. XML Interview Questions

  21. Question 13. Which Of The Following Is Not True Of The Namespace Constructor In E4x?

    Answer :

    If the value is a valid XML name, the prefix property is set to a string.

  22. Adobe Flex Tutorial

  23. Question 14. Which Of The Following Public Methods In E4x Has The Return Type Xml?

    Answer :


  24. Question 15. State Whether True Or False: The Qname.prototype.tostring() Method Throws A Typeerror Exception If Its Value Is Not A Qname Object?

    Answer :


  25. Windows Presentation Foundation(WPF) Interview Questions

  26. Question 16. Which Of The Following Are Not Global Methods And Properties In E4x?

    Answer :


  27. Windows Presentation Foundation(WPF) Tutorial

  28. Question 17. Which Of The Following Methods Would Give The Output Corresponding To The Code Snippet?
    Var Test = Example ; Output: Example

    Answer :

    alert(test.toXMLString()); , alert(test.elements());

  29. XPath Interview Questions

  30. Question 18. What Is The Correct Way To Add A Method To An Xml.prototype In E4x?

    Answer :


  31. Microsoft Silverlight Interview Questions

  32. Question 19. Which Of The Following Is Not A Valid Built-in Method For Xmllist Objects In E4x?

    Answer :


  33. XPath Tutorial

  34. Question 20. Which Of The Following Is Not A Reserved Keyword In E4x And Javascript?

    Answer :


  35. XQuery Interview Questions

  36. Question 21. What Will Be The Output Of The Following Code Snippet?
    Var Customer = 888-555-1212 888-555-2121 mobile ; Alert(customer.childindex());

    Answer :


  37. Question 22. Which Of The Following Options Would Be Returned By The Code Shown In The Code Snippet: Var F = Text ; Alert(f.a[0].hascomplexcontent());// P Alert(f.a[1].hascomplexcontent());//q Alert(f.a[0].hassimplecontent());//r Alert(f.a[1].hassimplecontent());//s

    Answer :


  38. XQuery Tutorial

  39. Question 23. Tell Me How Can We Use E4x In Mozilla And Mozilla Based Browers?

    Answer :

    To make use E4X with Mozilla and Mozilla based browsers (like: Netscape) we used Spidermonkey JavaScript engine. It has been extended to implement E4X but presently we can only use it in nightly trunk builds. The present releases Mozilla 1.7 suite, Firefox 1.0, Netscape 7.2 does not supported E4X.

  40. XML DOM Interview Questions

  41. Question 24. How To Use Of E4x With Xml?

    Answer :

    Using E4X we can easily use JAvAScript with an XML.

    Example:I have written an XML document.



    We can stroe this XML document as an string in variable order.

    var order = new XML(txt)   or Assign the XML text to the XML object variable directly.

    var order = new XML()



    We can also calculate the price like that,

    var total=order.item.qty * order.item.priceCan 

    we display the customers full name like that,

    Can add new items like that,
    We can display the order id like that,

    We can calculate the total price, when the order has many items like that,

    var price=0for each (i in order.item) 
       price+= i.qty*i.price 

  42. Java Abstraction Interview Questions

  43. Question 25. Tell About Browser Compatibility With E4x?

    Answer :

    E4X support limited browsers.No,mainstream browser has supported by E4X.Mozilla engine(1.8)(beta version) is limited support to E4X.We can say that Firebox 1.1 is an first version that support E4X.E4X is also expected to the future version of Internet Explorer.Firefox 1.1: Firefox1.1 can support best for E4X as compare to other browsers.

  44. XML DOM Tutorial

  45. Question 26. Using E4x How Can We Make Xml Easier To Use?

    Answer :

    E4X makes easier to use JavaScript to parse and manipulate XML.This is also use to enable XML library or component to act with XML.On different browsers libraries and components perform with different syntax and work differently. I have given you example where I show how to load an existance XML document(“message.xml”)into XML parser and to show note from message.

    Example: Without use of E4X.

    var xmlDoc//This code is made only for Internet Explorer.
    if (window.ActiveXObject)
    xmlDoc = new ActiveXObject(“Microsoft.XMLDOM”);
    }// This code is made for Mozilla, Firefox etc.else (document.implementation

  46. Xml Publisher Interview Questions

  47. Question 27. Using E4x How Can We Define Xml Document As A Javascript Object?

    Answer :

    I have given you example to show XML document as JavaScript object.Example:I have you simple XML document.

    Don’t forget
    Happy Birthday!

    We can store this XML document in a string calles as message into an XML object variable vusing JavaScript.var v = new XML(message) or Assign the XML text to the XML object variable directly.var v = new XML()v=
    Don’t forget
    Happy Birthday!

    We can use JavaScript like that,document.write(v.from)


  48. Javascript Advanced Interview Questions

  49. Question 28. What You Understand About Ecma?

    Answer :

    ECMA(The European Computer Manufacturers Association)international was founded in 1961.

    ECMA is an organization made to standardization of information and Communication Technology(ICT) and Consumer Electronics(CE).

    We use ECMA standard with

    1. JavaScript
    2. C# Language
    3. International Character Sets
    4. Optical Disks
    5. Magnetic Tapes
    6. Data Compression
    7. Data Communication etc.
    8. ECMA-262(JavaScript1.3)was standardize in Dec1999.
    9. ECMA-357 (E4X) was standardized in June2004.

    We use E4X to make JavaScript supported with XML.

  50. Question 29. How We Say Javascript As Same As Ecmascript?

    Answer :

    Because of some reasons we can say that JavaScript is same as ECMAScript.

    1. ECMAScript is called as an official name for JavaScript.
    2. ECMAScript is exactly same as JavaScript.
    3. JavaScript is standardize by ECMA (The European Computer Manufacturers Association) organization.
  51. Question 30. How You Define E4x?

    Answer :

    E4X stands for ECMAScript(European Computer Manufactures Association) for XML(Extensible Markup Language). We can called as E4X is an programing language extension used to adds the ECMAScript(like: ActionScript,DMDScript,E4X, JavaScript,JScript) to XML.

    1. Real life meaning of E4X is “JavaScript for XML”.
    2. E4X is an official JavaScript standard used to add direct support for XML.
    3. Using E4X we can easily make scripting for XML with JavaScript.
    4. Using E4X we can declare an XML object variable as same as declare Date and Array variable.


    var p = new XML()
    var q = new Date()
    var r = new Array()