Dojo Toolkit Freshers Interview Questions And Answers

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.

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.

Dojo Toolkit Freshers Interview Questions And Answers
List Out Some Of The Dijit Layout Widgets?

ContentPane
LinkPane
Border Container
Tab Container
Split Container
Stack Container
Accordion Container

Give Some Components That Comes Along With Dojo Framework?

DOJO Tree
DOJO Button
DOJO Calendar control
DOJO Grid
DOJO List box.

How Do I Develop Applications Which Support Ios Voiceover?

Make sure to set the alt, title and role attributes. VoiceOver will read widgets with these attributes set. See tests/test_a11y.html for examples. However, the value of a SpinWheel can not be read by VoiceOver in 1.8.

Can You Change The Widget Text Size By Changing The Browser Text Size?

No, we suggest that you use the page zoom function available on some browsers for this purpose.

Is There A Way To Set An Alternative Text To Images And Dom Buttons?

Yes, you can set the alt attribute for images and the title attribute for DOM buttons. See tests/test_a11y.html for examples.

Can You Set The Tab Focus Sequence For Destop Browsers?

Yes, use the tabindex attribute for this purpose. IconItem, IconMenuItem, ListItem, TabBarButton and ToolBarButton all have the tabindex attribute initially set to 0 by default.

Are Applications Keyboard Accessible On Desktop Browsers?

Yes, except for ScrollableView and SwapView. These widgets require alternative ways to scroll and flip, ex. buttons.

What Is The 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

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.

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.
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.

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.

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.

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.

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.

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

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.

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

What Does All Include In Dojo Architecture?

Dojo Architecture includes :

DojoX
Dijit
Dojo Core
Dojo Base
Custom code
Util

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

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.

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

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.

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”);

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.

What Is The 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.

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

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

Example Of Dojo Script Using Widgets?

<script>
dojo.require(”dojo.widget.Editor2”);
</script>
<!-- ... -->
<textarea dojoType=”Editor2”>
...
</textarea>

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”);

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.

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.

In Which Language, Dojo Written?

JavaScript.

Do I Have To Use Dojox/mobile/parser For Dojo Mobile Applications?

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.

How Is The Code Size Of Dojox/mobile/parser Compared To Dojo/parser?

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.

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

Some of the advanced features of dojo.parser, such as <script type=”dojo/method”> and <script type=”dojo/connect”>, are missing. Basic features are compatible with dojo.parser.


Post a Comment

Previous Post Next Post