Dojo Toolkit Interview Questions & Answers

  1. Question 1. Explain What Is Dojo?

    Answer :

    Dojo is a JavaScript framework, an assembly of utilities written to ease development of client-side web applications. It is a tool for constructing dynamic web user interfaces.

  2. Question 2. What Is The Basic Structure In Dojo?

    Answer :

    The basic directory structure of the application is very simple and it will evolve later:

    • /index.html – The application entry point.
    • /app – The application module.
    • /app/main.js – The main script for app module.
  3. HTML 5 Interview Questions

  4. Question 3. Explain The Function Of Dojo/ready Module?

    Answer :

    The dojo/ready module has a function that records a callback that will run once the three conditions have met:

    • DOM is ready
    • All outstanding or remaining modules of requested code have completed loading
    • Other registered functions with a higher priority have completed.
  5. Question 4. What Are The Advantages Or Benefits Of Dojo?

    Answer :

    • Associative arrays
    • Loosely typed variables
    • Regular expressions
    • Objects and classes
    • Highly evolved date, math, and string libraries
    • W3C DOM support in the Dojo
  6. HTML 5 Tutorial

  7. Question 5. Explain What Are Application Support Libraries In Dojo?

    Answer :

    Application support libraries in Dojo consists of:

    • I/O package provides routines, e.g., for AJAX binding
    • For drag and drop operations DND package provides routines
    • Useful routines are available for login, animation and storage.
  8. AJAX Interview Questions

  9. Question 6. What Is The Point In Dojo?

    Answer :

    • Dojo bases on the HTML and JavaScript
    • Developer has not to use any strange programming language
    • Dojo ups abstraction layer in a higher level
    • Developer has not to reinvent wheel when starting programming project
  10. Question 7. List Out Some Of The Dijit Layout Widgets?

    Answer :

    • ContentPane
    • LinkPane
    • Border Container
    • Tab Container
    • Split Container
    • Stack Container
    • Accordion Container
  11. AJAX Tutorial
    UI Developer Interview Questions

  12. Question 8. Give Some Components That Comes Along With Dojo Framework?

    Answer :

    • DOJO Tree
    • DOJO Button
    • DOJO Calendar control
    • DOJO Grid
    • DOJO List box
  13. Question 9. What Is The History Of Dojo?

    Answer :

    • Development was started by Alex Russell and Dylan Schiemann in 2004
    • The first Dojo code was written in Septemper 2004
    • Nowadays 40 000 downloads and over 40 developers and companies
  14. Java Persistence API Interview Questions

  15. Question 10. List Out Some Of The Components That Come Along With Dojo Framework?

    Answer :

    Components that comes along with Dojo Framework includes:

    • Dojo Tree
    • Dojo List box
    • Dojo Calendar control
    • Dojo Grid
    • Dojo Button, etc.
  16. Ext JS Tutorial

  17. Question 11. What Are The Features Of Dojo?

    Answer :

    • Dojo is based on HTML and JavaScript, so its easy for the developers to learn it fast.
    • There is no requirement of learning new programming language. Just HTML and JavaScript knowledge if sufficient.
    • Dojo provides higher abstraction layer to the programmer. So, it helps the programmers to develop powerful functions very easily.
    • Dojo has already invented the wheels for the programmers and now programmers just have to use the Dojo api into their application
  18. Ext JS Interview Questions

  19. Question 12. Mention What Are The Drawbacks Of Dojo?

    Answer :

    • For Dojo, developer has to depend on the browser support
    • In the case of commercial application there is no way to hide the Dojo code.
  20. HTML 5 Interview Questions

  21. Question 13. What Is Package System In Dojo?

    Answer :

    • Dojo consists of JavaScript files
    • Package system takes care that only needed files are included
    • Each JavaScript file can be named as package dojo.provide(dojo.string)
    • By that name the package can be taken in use dojo.require(dojo.string)
    • One has not to remember any file or directory names
    • Only dojo.js has to be included into HTML document
    • That file takes care of initialization of Dojo
    • There is a couple of pre packaged builds that consist of different kinds of packages e.g. Widget, event or IO builds.
  22. CSS Advanced Tutorial

  23. Question 14. Mention What Are Modules In Dojo?

    Answer :

    In Dojo, Modules are individual codes that can be loaded separately. They are identifying using a string that is similar to the file path where the code is defined.

    Example: my/module/class.

  24. Question 15. What Are The Disadvantages Of Dojo?

    Answer :

    • Even if Dojo is nice, beautiful etc, it is quite heavy
    • The documentation is still quite narrow
    • Needs much network
    • Developer depends on the browser support for the Dojo
    • There is no way to hide the Dojo code in case of commercial application
  25. CSS Advanced Interview Questions

  26. Question 16. What Does All Include In Dojo Architecture?

    Answer :

    Dojo Architecture includes :

    • DojoX
    • Dijit
    • Dojo Core
    • Dojo Base
    • Custom code
    • Util
  27. JqueryUI Tutorial

  28. Question 17. Tell Us About Language Libraries In Dojo?

    Answer :

    • dojo.lang.*
    • Wrappers for common idioms
    • Functional programming APIs

    For Example:

      • dojo.lang.forEach
      • dojo.lang.map
      • dojo.lang.assert
  29. JqueryUI Interview Questions

  30. Question 18. Explain Whether Dojo Is A Part Of Ajax And Distinguishes Their Roles?

    Answer :

    Dojo is not a part of Ajax; it is an open source JavaScript toolkit, designed to ease the quick development of JavaScript or Ajax-based applications and websites. It provides you with lots of custom components like data grid, scroller, calendar, etc. It serves some data-structure mode like collection and array list, and it also provides some advanced API’s like API to make AJAX calls.

    While, AJAX is an Asynchronous JavaScript and XML, together they make it possible to make JavaScript function call to your server and trigger a response. They use XMLHttpRequest and XMLHttp response object.

  31. AJAX Interview Questions

  32. Question 19. What Is Widget Toolkit In Dojo?

    Answer :

    • Widget toolkit is also a very noticeable part of Dojo toolkit
    • Widget is a user interface object that has a layout and some properties
    • In Dojo widgets are HTML+CSS bound by JavaScript
    • Dojo has lots of useful widgets e.g. Tabs, sorting table, dialogs
  33. JBOSS Tutorial

  34. Question 20. Explain What Is Dijit And Dojox?

    Answer :

    • Dijit: It is a widget system and component library layered on top of Dojo it enables the user to re-use or use reprogrammed widget
    • DojoX: It contains widgets, utilities and classes that are not yet ready for inclusion in the main Dojo library. It has experimental elements and widgets.
  35. JBOSS Interview Questions

  36. Question 21. Describe Event System In Dojo?

    Answer :

    • ”Like crack for web developers”
    • Any function can be notified when other function fires
    • Any DOM object can be connected to any function dojo.event.connect(”id”, ”onClick”, listenerObj, ”handleOnClick”);
  37. Question 22. Mention What Are The Limitations Of Dojo?

    Answer :

    Limitation of Dojo are :

    • It needs much network
    • Developer remains dependent on the browser support for the Dojo
    • In the case of commercial application there is no way to hide the Dojo code
    • Documentation is quite narrow
    • In the case of commercial application there is no way to hide the Dojo code.
  38. JSON (JavaScript Object Notation) Tutorial

  39. Question 23. What Is The Relation Between Ajax And Dojo?

    Answer :

    • Dojo is sometimes advertised as AJAX framework
    • It is able to make AJAX requests with Dojo
    • But the technique of binding is under the abstraction layer that Dojo has.
  40. XSLT Interview Questions

  41. Question 24. Explain What Makes A Widget?

    Answer :

    A widget is comprised of two resources:

    • A .js file that consists the logic of the widget
    • An HTML snippet that carries the way the widget is presented
  42. UI Developer Interview Questions

  43. Question 25. Tell Us About Environment-specific Libraries In Dojo?

    Answer :

    • Libraries provides routines for handling the environment
    • Consist of svg, html, style and dom packages
    • Provides some methods for arrange HTML document
    • There is also methods for handling DOM trees and SVG models
    • Those routines extend existing routines
  44. Question 26. Example Of Dojo Script Using Widgets?

    Answer :



     

  45. JSON (JavaScript Object Notation) Interview Questions

  46. Question 27. Explain Event System In Dojo?

    Answer :

    • ”Like crack for web developers”
    • Any function can be notified when other function fires
    • Any DOM object can be connected to any function dojo.event.connect(”id”, ”onClick”, listenerObj, ”handleOnClick”); 
  47. Java Persistence API Interview Questions

  48. Question 28. Are Applications Using Dojo Mobile Accessible?

    Answer :

    Some Dojo Mobile widgets are not accessible. For example, the ScrollableView can only be scrolled by using touch gestures. You must develop alternative ways, ex. buttons for scrolling, to ensure accessibility. Other examples requiring alternatives are SwapView flip and ListItems editing.

  49. Question 29. Do You Know Why Does In Many Of Tests Html Files Have Style=”visibility:hidden;”?

    Answer :

    It is to prevent raw HTML rendering result from being shown before dojo’s rendering finishes. The visibility will be restored by the initialization code in dojox/mobile/common.

  50. Question 30. In Which Language, Dojo Written?

    Answer :

    JavaScript.

  51. Question 31. Do I Have To Use Dojox/mobile/parser For Dojo Mobile Applications?

    Answer :

    No, you don’t have to. dojox/mobile/parser is a subset of dojo.parser. Usage and how it works are basically the same. It has no mobile specific features. dojox/mobile/parser’s ONLY advantage over dojo.parser is its smaller code size. If your application unfortunately does not work with dojox/mobile/parser, you can replace it with dojo.parser. Also if you are embeding your mobile application in an hybrid container such as Cordova, the size might not matter that much and you might prefer to pick the full parser.

  52. Question 32. How Is The Code Size Of Dojox/mobile/parser Compared To Dojo/parser?

    Answer :

    In Dojo 1.9 the size of dojox/mobile/parser is 2KB (built and gzipped), while dojo/parser (plus its dependent modules that are not required by the dojox/mobile base) is 5KB.

  53. Question 33. What Is The Difference Between Dojox/mobile/parser And Dojo.parser?

    Answer :

    Some of the advanced features of dojo.parser, such as