Elance ExtJs Test Answers 2015



What is the difference between Ext.get() and Ext.getDom()?
Ext.get() is faster than Ext.getDom().
Ext.get() only allows xpath queries.
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.
Ext.get() makes the CPU spin faster than Ext.getDom().


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.
Ext.create
Ext.ComponentQuery
Ext.chart.Chart
Ext.draw.Component


In Ext, what is a proxy?
Proxies are dummy controls that hold the values for the real controls.
Proxies are members of the Ext support staff will write your code for you.
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.
Proxies are dummy controls that handle the events such as a click event in lieu of the actual control.


How would a developer set a control to hidden in Ext?
makeVisible(false)
doVisible(false)
setVisible(false)
becomeHidden(true)


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?
Ext.form.RadioGroup
Ext.form.Radio
Ext.form.CheckBox
Ext.form.RadioTeam


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?
onDocumentReady
onReadyToGo
onBeforePageLoaded
onBeforeLoaded


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


Which one of the following is not a valid layout type in Ext?
HBoxLayout
VBoxLayout
ResponsiveLayout
BorderLayout


True or False. There can only be one locked column.
TRUE
False


Which of the following parameter type(s) is a valid renderTo config option value?
All of the these
extJS element
id of element
DOM element


Which config option is used to bound a component within the dimension of another container?
locked
constrainTo
constrain
lock


The ________ is a useful proxy when you need to make request to a different domain, on which your application is not deployed.
writers
stores
readers
JsonP proxy
JsonWriter


Why would a developer use Ext.fly() instead of Ext.get()?
In a situation where a developer would be calling a repetitive,atomic function on many different elements and needs to reduce the memory footprint.
To make a small, airborn insect appear in the DOM.
To increase the number of controls allowed on a page.
To make Ext run in turbo-mode.


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.
Absolute layout
HBox layout
Anchor layout
Accordion layout


The _____ organizes its children horizontally across the container.
HBox layout
Absolute layout
Anchor layout
Accordion layout


What is the name of the class that provides the developer with an area autosized to the browser viewport?
Ext.container.Viewport
Ext.fullSizeWindow
Ext.HTMLElement
Ext.window


The utility method "Ext.define" is used for which one of the following?
To create a user-defined control.
To define an enumeration.
To create a class in Ext that extends and optionally overrides the methods and properties of a parent class.
To define a global variable.


What plugin is required for cell editing?
Ext.plugin.Editing
Ext.grid.plugin.RowEditing
Ext.grid.plugin.Editing
Ext.grid.plugin.CellEditing


The _______ is responsible for encapsulating the Model and can also configure a proxy to load or save the data.
Writers
XmlWriter
Readers
Store
JsonWriter


Which of the following is a required config option for grid column?
itemId
data
id
dataIndex


How is Ext JS licensed?
Open Source
Commercial Software
Proprietary Software
Commercial Software and Open Source


What object render itself to the document body?
Ext.form.Panel
Ext.container.Viewport
Ext.panel.Panel
Ext.container.Container


Why would a developer use a JsonPStore instead of a JsonStore?
JsonPStores work better with server side JSON.
A JsonP store can hold more data than a JsonStore.
To facilitate the creation of a store in Ext that would allow for cross-site requests of JSON data.
To create a store that has data with no flaws in it.


What is the name of the Ext utility function to convert a JSON string into an object?
Ext.JSON.convert(json)
Ext.JSON.string.translate(json)
Ext.JSON.toObject(json)
Ext.JSON.decode(json)


Which of the following is not an Ext layout type?
float
vBox
border
fit


What is the name of the control in Ext, that will create a control similar to an html <select>?
DropDownList
combinationBox
multiSelectBox
comboBox


What is the difference between theming and styling in Ext?
Themes are only one file, styles require many files.
Themes are more visually appealing.
Themes are cheaper than styles.
Theming is differentiated from "styling" by the ability to flip a switch and change the theme.


Which of the following is a required config option for grid panel?
xtype
data
store
id


Which of the following is NOT a valid way to add an event listener to an Ext.Panel?
In the panel's config, define the listeners property.
provideListener(eventName,handler,scope, options)
panelObject.on("eventName",handler)
addListener( eventName, handler, [scope], [options] )


What are the 4 folders that a developer should create to employ the recommended MVC architecture in Ext?
Controls,Views,UIs,Events
Clicks,Selects,Changes,Checks
Models,Views,Animations,HTML
Models,Views,Controllers,Stores


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


Why would a developer use a Pager?
To simulate an e-Reader.
To alert users of problems with their data.
To make ComboBoxes display faster.
To more quickly display and load large amounts of data in a GridPanel.


What region type is required for border layout?
North
Center
No region type is required
South
East


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


What is a RESTful store in Ext?
A store that allows for cross-site scripting.
A store that allows the user to slowly browser a website.
A stores that supports a convenient way to interface with a RESTful web service.
A store that slows when the demand is too much on the server's hardware.


What is theme inheritance?
Making your themes object oriented.
Creating themes that are passed from one developer to another.
Setting up your theme to extend or inherit from a base theme so as to include all the necessary classes to work properly.
Creating themes that have similar colors.


Which of the following is not a valid way to add an event listener?
use on() function
use listeners config option
use events config option
use addListener() function


What of the following is the correct syntax for defining column?
columns: [ {text='Name', dataIndex='name', flex=1 } ]
columns: [ {text=Name, dataIndex=name, flex=1 } ]
columns: [ {text:Name, dataIndex:name, flex:1 } ]
columns: [ {text:'Name', dataIndex:'name', flex:1 } ]


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


What is the shorthand function for addListener()?
add()
trigger()
live()
on()


What is the difference between an Ext.element and an Ext.component?
Elements are visible and components are invisible.
Elements are the parent class of Components.
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.
Elements are heavier objects in memory and components are more lightweight


One of the most common components used for layout in Ext is which one of the following?
ContentArea
Combobox
Grid
Panel


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


In a form layout, what is the name of the property that will automatically create a label above a control if set?
LabelTitle
fieldLabel
showLabel
componentLabel


What is the name of the method on an Ext.data.store that synchronizes the records in the store with a remote data source?
sync
load
download
upload


is it possible to migrate from Extjs 3 to Extjs 4?
True
False


Which function would a developer use to select only certain child elements of an Ext.element?
Ext.select()
Ext.filter()
Ext.scrape()
Ext.trimDown()


Linking Models: There are two types of Associations between Models: belongsTo and hasMany. But one represents a one to many ralationship between two models.
belongsTo
anything
hasMany


Why would a developer use an ArrayStore?
To create multiple stores chained together into one store.
To create a store that can't use JSON.
To create multi-dimensional stores.
To facilitate the creation of stores from arrays of data.


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


The ______ validation verifies if the given value matches the given regular expression.
presence
length
inclusion
exclusion
format


What is the method to instantiate a class in ExtJS 4.*?
Ext.define()
Ext.extend()
Ext.load()
Ext.create()


What data proxy does Ext support?
JSON-P
AJAX
All of the above
REST


What is the name of the property on a grid that controls the number of clicks required to edit a cell on a GridPanel?
numClicksEdit
clicksToEdit
editingClicks
clickingEditCount


Which one of the following is true about the Ext viewport?
The viewport automatically re-sizes itself to the size of the browser viewport.
The viewport can only have 4 items in it.
The viewport has a 4px black border by default.
The viewport does not allow a different layout type to be specified.


Which one of the following is the correct syntax in Ext.js to make an ajax request?
Ext.ajax.Request(options)
ext.ajax.request(options)
Ext.Request.Ajax(options)
Ext.Ajax.request(options)


Why would a developer use buffered scrolling?
Buffered scrolling makes all the UI interactions run at 120 fps.
Buffered scrolling enables a developer to load any number of records into a grid without paging.
This allows a developer to submit changes without validation.
Buffered scrolling makes the interface much shinier.


What is the root class for all Ext classes?
Ext.Base
Ext.Component
Ext.Root
Ext.Class


How do you create a new class?
Ext.define ('MyApp.NewClass',{ // class functionalities here });
Ext.define = new ('MyApp.NewClass',{ // class functionalities here });
MyApp.NewClass=Ext.extend(Object,{// class functionalities here });
MyApp.Class=New Ext.extend(Object,{// class functionalities here });
All these


Extjs 4.x includes a new pattern concept named MVC.
False
True


Which of the following is not a grid panel feature?
GroupingSummary
Count
Summary
Grouping


What is the correct option to completely fill the width of a container?
width: ‘max’
width: 100%
maxWidth: true
flex: 1


Which of the following is not a config option of Ext.util.Sorter?
sorterFn
dataIndex
property
direction


is Extjs a cross-browser RIA framework?
True
False


What is one advantage of using xtype to create objects in Ext?
Increase cpu parallelization
Reduces number of for loops
Utilizes the MVC design pattern
more concise syntax


What does the remove() function return?
true when removal is successful, false when removal fails
the function does not return value
the component that was removed
the calling component


What is that config option for changing CSS class on a column cell?
Style
tdCls
CLS
CSS


The ____ classes are resonsible for decoding the raw data from a server that is to be loaded into a Model instance or Store.
Readers
Jsonp Proxy
Proxy
Writers
Store


What is the correct syntax to enable gridpanel text selection?
viewConfig: { enableTextSelection: true }
textSelection: true
columns: { enableTextSelection: true }
fields: { enableTextSelection: true }


What is the name of the method that allows a developer to remove an event listener from an object or control?
disableEvent
removeEvent
destroyEvent
un


Which types of objects in Ext fire an initComponent event?
panels
components
objects
grids


What is the method to create a class in ExtJS 4.*?
Ext.load()
Ext.define()
Ext.extend()
Ext.create()


What is the difference between Ext.addClass() and Ext.removeClass()?
Ext.addClass() is deprecated.
Ext.addClass() will add the class to a DOM object whereas Ext.removeClass() will remove a class from a DOM object.
Ext.removeClass() has better performance.
Ext.addClass() has better performance.


Which of the following is not a subclass of Ext.grid.column.Column?
Ext.grid.column.String
Ext.grid.column.Boolean
Ext.grid.column.Number
Ext.grid.column.Date


Which of the following xtype(s) defines a grid panel?
grid and gridpanel
grid
gridpanel
panel


To enable grid buffering,
set buffered: true on Ext.grid.Panel
caching: true on Ext.grid.Panel
set caching: true on Ext.data.Store
set buffered: true on Ext.data.Store


What action does the remove() function perform?
removes all components from this container
removes a component from this container
removes itself from a parent container


Which of the following is not an Ext.form.field object?
Hidden
ComboBox
Button
Text


Which one of the following is a valid way to get DOM elements using Ext?
Ext.findElement(id)
Ext.getElementById(id)
Ext.getCmp(id)
Ext.loadElement(id)


The correct syntax to change a theme programmatically is:
application.Themify(theme-name)
app.theme=theme-name
app.switchTheme(theme-name)
app.ChangeTheme(theme-name)


Which of the following technique will not help improve Ext JS performance?
Replace Containers with Panels
Reduce DOM reads and writes
Reduce container nesting
Remove doLayout and doComponentLayout calls


True or False. The constrainTo option is only applicable to 'floating' components.
FALSE
True


Which one of the following events on an Ext.data.store object fires AFTER the store is loaded?
afterLoad
loadComplete
postLoad
load


The ____ validation verifies if the length of the given value is between the min and the max values. The min and the max configuration are optional.
presence
format
length
exclusion
inclusion


The ________ is a helper. Usually, it is used to load some inline data into a store. Its contents are lost in every page refresh, it can be useful to load temporary data.
SessionStorageProxy
MemoryProxy
LocalStorageProxy


What is the default value of the hideMode option for Ext.grid.column.Column?
null
offsets
display
visibility


The ________ validation varifies is the value is present (0(zero) is a valid value,but an empty string is not).
inclusion
length
exclusion
format
presence


What is the difference between a GridPanel and an EditorGridPanel?
The EditorGridPanel extends the GridPanel Class to provide cell editing on selected columns.
The EditorGridPanel can have more columns in it.
The GridPanel is smaller.
The EditorGridPanel is slower to start up.


Ext.util.Sorter can only be applied to which object?
Ext.grid.Panel
Ext.data.Store
none of the above
Ext.grid.column.Column


Which one of the following layout types is used for forms that have controls with labels above them laid out vertically?
vbox
form
column
hbox


What is the proper syntax to set up global theme variables in Ext?
##variableName = value
$global = value
$variable-name: value !default;
&variable = value


What method can be use to retrieve a DOM element?
Ext.getCmp()
Ext.getElementById()
Ext.get()
Ext.getDom()


Which of the following statements about the collapseMode option is incorrect?
true' is one of the supported config value
mini' is one of the supported config value
The collapsible option must be true for this option to take effect
This feature is only effective when the panel is a child item of border layout


Which statement about the emptyCellText is false?
triggers when cell has a value of undefined or null
triggers when cell has a value of undefined, null, or ''
defaults to &#160;
default to &nbsp;


Which of the following statement is false?
a child component cane be added to a parent container
a child container can be added to a parent component
there can only be 1 viewport per page
a child container can be added to a parent container


What is the event name that fires when a user checks a checkbox in Ext 4.0?
change
click
select
check


If the value of the raw data is 123456.789, what pattern for Ext.util.Format.numberRenderer() will return 123,456.78?
0,0.0:2
0,0.00
0
#,###.00


What is the name of the event that fires when the user activates a combobox by clicking on it?
select
load
focus
click


Linking Models: There are two types of Associations between Models: belongsTo and hasMany. But one represents a many to one association with another model.
hasMany
belongsTo


The ____________ validation verifies if the given value does not match with one of the given values of the list
inclusion
format
exclusion
length
presence


What is the base class for grid panel?
Ext.panel.Panel
Ext.grid.Panel
Ext.container.Container
Ext.panel.Table


Which of the follow is not a supported data store?
XmlStore
ArrayStore
MemoryStore
AbstractStore


Which of the following xtype(s) defines a grid column?
column and gridcolumn
gridcolumn
column