Friday, 6 January 2017

35 TOP Dojo Interview Questions and Answers for for both freshers and experienced condidates

Dojo questions
Dojo interview questions and answers
Dojo interview questions, Dojo interview questions and answers for freshers, advance Dojo interview questions , Basic Dojo interview questions, Dojo 1 year, Dojo 3 years experienced, Dojo Interview Questions and Answers for for both freshers and experienced candidates

DOJO Framework Interview Questions and Answers List

1. Explain what is Dojo?
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. What is the basic structure in Dojo?
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. Explain the function of Dojo/ready module?
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.

4. What are the advantages or benefits of Dojo?
Associative arrays
Loosely typed variables
Regular expressions
Objects and classes
Highly evolved date, math, and string libraries
W3C DOM support in the Dojo

5. Explain what are application support libraries in Dojo?
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.

6. What is the point in Dojo?
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

7. List out some of the Dijit Layout widgets?
•  ContentPane
•  LinkPane
•  Border Container
•  Tab Container
•  Split Container
•  Stack Container
•  Accordion Container

8. Give some components that comes along with Dojo framework.
DOJO Tree
DOJO Button
DOJO Calendar control
DOJO Grid
DOJO List box
and many more..

9. Mention what are the advantages or benefits of Dojo?
Advantages or benefits of Dojo includes
Loosely typed variables
Associative arrays
Objects and classes
W3C DOM support in the Dojo
Regular expression
Associative arrays

10. History of Dojo.
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

11. List out some of the components that come along with Dojo Framework?
Components that comes along with Dojo Framework includes
Dojo Tree
Dojo List box
Dojo Calendar control
Dojo Grid
Dojo Button, etc.

12. What are the features of Dojo?
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

13. Mention what are the drawbacks of Dojo?
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.

14. What is Package System in Dojo?
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.

15. Mention what are Modules in Dojo?
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.

16. What are the disadvantages of Dojo?
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

17. What does all include in Dojo Architecture?
Dojo Architecture includes
DojoX
Dijit
Dojo Core
Dojo Base
Custom code
Util

18. Tell us about Language Libraries in Dojo.
dojo.lang.*
Wrappers for common idioms
Functional programming APIs
For Example
dojo.lang.forEach
dojo.lang.map
dojo.lang.assert

19. Explain whether Dojo is a part of Ajax and distinguishes their roles?
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.

20. What is Widget Toolkit in Dojo?
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

21. Explain what is Dijit and DojoX?
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.

22. Describe Event System in Dojo.
”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”);

23. Mention what are the limitations of Dojo?
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.

24. Relation between AJAX and Dojo.
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.

25. Explain what makes a widget?
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

26. Tell us about Environment-Specific Libraries in Dojo.
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

27. What is Widget Toolkit in Dojo?
• 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.

28. Example of Dojo script using widgets?
<script>
dojo.require(”dojo.widget.Editor2”);
</script>
<!-- ... -->
<textarea dojoType=”Editor2”>
...
</textarea>

29. Explain Event System in Dojo?
• ”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”);

30. Give some components that comes along with Dojo framework?
DOJO Tree
DOJO Button
DOJO Calendar control
DOJO Grid
DOJO List box
and many more..

31. Tell us about Environment-Specific Libraries in Dojo.
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

32. Explain what makes a widget?
A widget is comprised of two resources:
i. A.js file that consists the logic of the widget
ii. An HTML snippet that carries the way the widget is presented

33. Relation between AJAX and Dojo.
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.

34. Are applications using Dojo Mobile accessible?
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.

35. Do you know why does in many of tests html files have style="visibility:hidden;"?
It is to prevent raw HTML rendering result from being shown before dojo&rsquo;s rendering finishes. The visibility will be restored by the initialization code in dojox/mobile/common.

No comments:

Post a Comment