ExtJs MCQs

ExtJs MCQs

Our team has conducted extensive research to compile a set of ExtJs MCQs. We encourage you to test your ExtJs knowledge by answering these 100+ multiple-choice questions provided below.
Simply scroll down to begin!

1: What is the difference between Ext.get() and Ext.getDom()?

A.   Ext.get() is faster than Ext.getDom().

B.   Ext.get() only allows xpath queries.

C.   Ext.get() makes the CPU spin faster than Ext.getDom().

D.   Ext.get() will convert a DOM object to an Ext.element object, whereas Ext.getDom() will convert an Ext.element object to a DOM object.

2: Extjs 4.x provide us a new concept when we work with MVC pattern, this is a class when we need to control the views in the Controller class and is useful to provide us a searching of components within Ext.ComponentManager.

A.   Ext.create

B.   Ext.draw.Component

C.   Ext.chart.Chart

D.   Ext.ComponentQuery

3: In Ext, what is a proxy?

A.   Proxies are dummy controls that handle the events such as a click event in lieu of the actual control.

B.   Proxies are used by Stores to handle the loading and saving of Model data. Usually developers will not need to create or interact with proxies directly.

C.   Proxies are dummy controls that hold the values for the real controls.

D.   Proxies are members of the Ext support staff will write your code for you.

4: Ext JS is a JavaScript library for developing interactive web applications using technologies such as AJAX, DHTML and DOM. It was developed by Sencha.

A.   True

B.   False

5: What is the difference between Ext.addClass() and Ext.removeClass()?

A.   Ext.addClass() is deprecated.

B.   Ext.addClass() will add the class to a DOM object whereas Ext.removeClass() will remove a class from a DOM object.

C.   Ext.addClass() has better performance.

D.   Ext.removeClass() has better performance.

6: What is the difference between an Ext.element and an Ext.component?

A.   Elements are visible and components are invisible.

B.   Elements are heavier objects in memory and components are more lightweight

C.   Elements are the parent class of Components.

D.   An Ext.element encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences, whereas an Ext.component is the base class for all objects in Ext, such as controls, panels and stores.

7: is Extjs a cross-browser RIA framework?

A.   True

B.   False

8: What is the difference between a GridPanel and an EditorGridPanel?

A.   The EditorGridPanel extends the GridPanel Class to provide cell editing on selected columns.

B.   The EditorGridPanel can have more columns in it.

C.   The EditorGridPanel is slower to start up.

D.   The GridPanel is smaller.

9: Which one of the following is true about the Ext viewport?

A.   The viewport can only have 4 items in it.

B.   The viewport does not allow a different layout type to be specified.

C.   The viewport has a 4px black border by default.

D.   The viewport automatically re-sizes itself to the size of the browser viewport.

10: What data proxy does Ext support?

A.   All of the above

B.   AJAX

C.   JSON-P

D.   REST

11: is it possible to migrate from Extjs 3 to Extjs 4?

A.   False

B.   True

12: Why would a developer use buffered scrolling?

A.   Buffered scrolling enables a developer to load any number of records into a grid without paging.

B.   This allows a developer to submit changes without validation.

C.   Buffered scrolling makes all the UI interactions run at 120 fps.

D.   Buffered scrolling makes the interface much shinier.

13: Extjs 4.x includes a new pattern concept named MVC.

A.   True

B.   False

14: The LocalStorageProxy uses the new HTLM5 localStorage API to load and save data into the client brwoser

A.   False

B.   True

15: What is the name of the method on an Ext.data.store that synchronizes the records in the store with a remote data source?

A.   load

B.   upload

C.   sync

D.   download

16: True or false? Ext Js supports all major web browsers including: IE 6+,Firefox 1.5+(Pc,Mac),Safari 3+,Opera9+(Pc,Mac).

A.   True

B.   False

17: Extjs 4 introduces a new package organization and that is why some classes names are not the same as they were in Extjs 3.

A.   False

B.   True

18: Why would a developer use a Pager?

A.   To make ComboBoxes display faster.

B.   To alert users of problems with their data.

C.   To more quickly display and load large amounts of data in a GridPanel.

D.   To simulate an e-Reader.

19: With Sandbox mode you can run Extjs 4 alongside with previous versions of Extjs on the same page.

A.   False

B.   True

20: What is theme inheritance?

A.   Creating themes that are passed from one developer to another.

B.   Creating themes that have similar colors.

C.   Making your themes object oriented.

D.   Setting up your theme to extend or inherit from a base theme so as to include all the necessary classes to work properly.

21: What is a RESTful store in Ext?

A.   A store that allows the user to slowly browser a website.

B.   A store that allows for cross-site scripting.

C.   A store that slows when the demand is too much on the server's hardware.

D.   A stores that supports a convenient way to interface with a RESTful web service.

A.   Clicks,Selects,Changes,Checks

B.   Controls,Views,UIs,Events

C.   Models,Views,Animations,HTML

D.   Models,Views,Controllers,Stores

23: What is the difference between theming and styling in Ext?

A.   Themes are only one file, styles require many files.

B.   Themes are more visually appealing.

C.   Theming is differentiated from "styling" by the ability to flip a switch and change the theme.

D.   Themes are cheaper than styles.

24: What region type is required for border layout?

A.   Center

B.   North

C.   East

D.   No region type is required

E.   South

25: What is the name of the object a developer would use to create a group of radiobuttons in which only one radio button can be selected at a time?

A.   Ext.form.RadioTeam

B.   Ext.form.Radio

C.   Ext.form.CheckBox

D.   Ext.form.RadioGroup

26: Why would a developer use a JsonPStore instead of a JsonStore?

A.   To create a store that has data with no flaws in it.

B.   To facilitate the creation of a store in Ext that would allow for cross-site requests of JSON data.

C.   JsonPStores work better with server side JSON.

D.   A JsonP store can hold more data than a JsonStore.

27: Why would a developer use Ext.fly() instead of Ext.get()?

A.   In a situation where a developer would be calling a repetitive,atomic function on many different elements and needs to reduce the memory footprint.

B.   To make Ext run in turbo-mode.

C.   To increase the number of controls allowed on a page.

D.   To make a small, airborn insect appear in the DOM.

28: What is the name of the event that fires when all the DOM objects have been loaded but before all images are loaded and before the onLoad event?

A.   onReadyToGo

B.   onDocumentReady

C.   onBeforePageLoaded

D.   onBeforeLoaded

29: The _____ organizes its children horizontally across the container.

A.   Anchor layout

B.   Accordion layout

C.   Absolute layout

D.   HBox layout

30: True or False. There can only be one locked column.

A.   False

B.   TRUE

31: How would a developer set a control to hidden in Ext?

A.   doVisible(false)

B.   becomeHidden(true)

C.   setVisible(false)

D.   makeVisible(false)

32: Extjs 4.x is Sencha's latest JavaScript framework for developing cross-platform web applications

A.   False

B.   True

33: Which of the following parameter type(s) is a valid renderTo config option value?

A.   All of the these

B.   id of element

C.   DOM element

D.   extJS element

34: The utility method "Ext.define" is used for which one of the following?

A.   To create a class in Ext that extends and optionally overrides the methods and properties of a parent class.

B.   To define a global variable.

C.   To create a user-defined control.

D.   To define an enumeration.

35: What is the name of the class that provides the developer with an area autosized to the browser viewport?

A.   Ext.window

B.   Ext.HTMLElement

C.   Ext.fullSizeWindow

D.   Ext.container.Viewport

36: The _______ is a subclass of VBoxLayout. This already tells us that the components will be organized vertically in the container. We can collapse or expand the items.

A.   Anchor layout

B.   Accordion layout

C.   Absolute layout

D.   HBox layout

37: Which one of the following is not a valid layout type in Ext?

A.   BorderLayout

B.   VBoxLayout

C.   ResponsiveLayout

D.   HBoxLayout

38: The ________ is a useful proxy when you need to make request to a different domain, on which your application is not deployed.

A.   JsonP proxy

B.   readers

C.   writers

D.   JsonWriter

E.   stores

39: Which config option is used to bound a component within the dimension of another container?

A.   constrainTo

B.   locked

C.   constrain

D.   lock

40: The _______ is responsible for encapsulating the Model and can also configure a proxy to load or save the data.

A.   JsonWriter

B.   Store

C.   Writers

D.   Readers

E.   XmlWriter

41: What plugin is required for cell editing?

A.   Ext.grid.plugin.CellEditing

B.   Ext.grid.plugin.Editing

C.   Ext.plugin.Editing

D.   Ext.grid.plugin.RowEditing

42: Which of the following is a required config option for grid column?

A.   itemId

B.   data

C.   id

D.   dataIndex

43: How is Ext JS licensed?

A.   Commercial Software

B.   Proprietary Software

C.   Open Source

D.   Commercial Software and Open Source

44: What object render itself to the document body?

A.   Ext.container.Viewport

B.   Ext.panel.Panel

C.   Ext.form.Panel

D.   Ext.container.Container

45: Which of the following is not an Ext layout type?

A.   vBox

B.   float

C.   border

D.   fit

46: What is the name of the Ext utility function to convert a JSON string into an object?

A.   Ext.JSON.string.translate(json)

B.   Ext.JSON.toObject(json)

C.   Ext.JSON.convert(json)

D.   Ext.JSON.decode(json)

47: Which of the following is NOT a valid way to add an event listener to an Ext.Panel?

A.   panelObject.on("eventName",handler)

B.   In the panel's config, define the listeners property.

C.   addListener( eventName, handler, [scope], [options] )

D.   provideListener(eventName,handler,scope, options)

48: What is the name of the control in Ext, that will create a control similar to an html <select>?

A.   combinationBox

B.   comboBox

C.   multiSelectBox

D.   DropDownList

49: What is the shorthand function for addListener()?

A.   add()

B.   on()

C.   live()

D.   trigger()

50: Why would a developer use an ArrayStore?

A.   To create multi-dimensional stores.

B.   To create a store that can't use JSON.

C.   To facilitate the creation of stores from arrays of data.

D.   To create multiple stores chained together into one store.