Correct Answer:
$(".same-class").each(function(index,ele){ var v=new MyView(); $(ele).html(v.$el); });
$(".same-class").each(function(index,ele){ var v=new MyView({el:$(ele)}); });
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following events executed when the model validation failed?
Correct Answer:
invalid
Note: This Question is unanswered, help us to find answer for this one
To tell an object to stop listening to events. Either call stopListening with no arguments to have the object remove all of its registered callbacks ... or be more precise by telling it to remove just the events it's listening to on a specific object, or a specific event, or just a specific callback? (choose all that apply)
Correct Answer:
view.stopListening(model);
view.stopListening();
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which code is correct to create a template in Backbone.js?
Correct Answer:
<script type="text/template" id="website-list-template"> <table> <thead> <tr> <th>Name</th> <th>Aboutme</th> <th>Portfolio</th> </tr> </thead> <tbody> <% _.each(pages, function(web) { %> <tr> <td><%= web.get('name') %></td> <td><%= web.get('aboutme') %></td> <td><%= web.get('portfolio') %></td> </tr> <% }); %> </tbody> </table> </script>
Note: This Question is unanswered, help us to find answer for this one
Which of the following are built-in events in Backbone?
Correct Answer:
sort
Note: This Question is unanswered, help us to find answer for this one
Using the following code example how can you use fetch with sending id?
Correct Answer:
var Type = Backbone.Model.extend({ urlRoot : "/api/SomeRoute" });
Note: This Question is unanswered, help us to find answer for this one
Which of the following are Backbone Building Blocks? (choose all that apply)
Correct Answer:
Collection
Router
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which code is used when model or collection is synced successfully with server?
Correct Answer:
"sync"(model_or_collection, resp, options)
Note: This Question is unanswered, help us to find answer for this one
How do you we get only the first 20 items in a backbone collection?
Correct Answer:
collection.first(20)
Note: This Question is unanswered, help us to find answer for this one
Which of the following route parameter's statement is correct of Router? (choose all that apply) router.route(fun, name, [callback])
Correct Answer:
name: Name of the router parameter
callback: Name of the router, if callback argument is omitted
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following code will you use if Defining a root route?
Correct Answer:
App.Router = Backbone.Router.extend({ routes: { '': 'index' }, index: function(){ $(document.body).append("root index route"); } });
Note: This Question is unanswered, help us to find answer for this one
In Backbone, ____ provide a way for you to connect URLs (either hash fragments, or real) to parts of your application. Any piece of your application that you want to be bookmarkable, shareable, and back-button-able needs an URL.
Correct Answer:
routers
Note: This Question is unanswered, help us to find answer for this one
What is Backbone.sync used for?
Correct Answer:
When Backbone wants to save or read a model to the server it calls out a function called as Backbone.sync.
Note: This Question is unanswered, help us to find answer for this one
__ removes all of the view's delegated events. It is useful if you want to disable or remove a view from the DOM temporarily?
Correct Answer:
undelegateEvents
Note: This Question is unanswered, help us to find answer for this one
How can you retrieve a set of model from the server and set them to the collection when they arrive?
Correct Answer:
collection.fetch()
Note: This Question is unanswered, help us to find answer for this one
To create a Collection class of your own, extend Backbone.Collection, providing instance properties, as well as optional classProperties to be attached directly to the collection's constructor function?
Correct Answer:
extend
Note: This Question is unanswered, help us to find answer for this one
In Backbonejs, how can you change templates of a view on the fly?
Correct Answer:
render: function(){ var templateFn = this.options.template || this.template; this.$el.html(templateFn(this.model.attributes)); return this; }
Note: This Question is unanswered, help us to find answer for this one
Which models can be created by extending Backbone?
Correct Answer:
var Todo = Backbone.Model.extend({}); var todo1 = new Todo(); console.log(JSON.stringify(todo1)); var todo2 = new Todo({ title: 'Check the attributes of both model instances in the console.', completed: true }); console.log(JSON.stringify(todo2));
Note: This Question is unanswered, help us to find answer for this one
Which of the following are Backbone Model object functions?
Correct Answer:
omit
Note: This Question is unanswered, help us to find answer for this one
The sync method is called with the following parameters? (choose all that apply)
Correct Answer:
Method
Model
Options
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
You can limit number of models in Collection using the following code?
Correct Answer:
var myCollection = Backbone.Collection.extend({ parse: function(response) { return response.slice(0,20); } });
Note: This Question is unanswered, help us to find answer for this one
How does Backbone decide if it should use POST/GET/ Request to the Server and what are the methods Backbone has Reserved for these Operations?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Which of the following configuration options are available in Backbone.js
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Thorax provides an extended event _____ to simplify binding of common events from models and collections?
Correct Answer:
Hash
Note: This Question is unanswered, help us to find answer for this one
This method is called internally within the router, whenever a route matches and its corresponding callback is about to be executed. Return __ from execute to cancel the current transition. Override it to perform custom parsing or wrapping of your routes.
Correct Answer:
false
Note: This Question is unanswered, help us to find answer for this one
Trigger callbacks for the given event, or space-delimited list of events. Subsequent arguments to ___ will be passed along to the event callbacks?
Correct Answer:
trigger
Note: This Question is unanswered, help us to find answer for this one
Which of the following Collection methods is an equivalent to instantiating a model with a hash of attributes?
Correct Answer:
create
Note: This Question is unanswered, help us to find answer for this one
BackboneJS test with jasmine if parameters are passed to fetch?
Correct Answer:
describe("People collection" function() { var people = Backbone.Collection.extend({ }); function searchPeople(people, data ) { people.fetch(data); } it("must verify the fetch parameters!", function(){ var param = {data : {gender : 'male'}}; spyOn(people, 'fetch').andReturn(); // Warning: this makes the call synchronous, Fetch actually won't go through! searchPeople(people, param); expect(people.fetch).toHaveBeenCalled(); expect(people.fetch).toHaveBeenCalledWith(param); }); });
Note: This Question is unanswered, help us to find answer for this one
Which of the following code is Backbone.Events interface is by default mixed into other Back‐ bone components?
Correct Answer:
_.extend(View.prototype, Events, { ... });.
Note: This Question is unanswered, help us to find answer for this one
Rather than adding or removing models individually, you might want to update an entire collection at once. ___ takes an array of models and performs the necessary add, remove, and change operations required to update the collection?
Correct Answer:
Collection.set()
Note: This Question is unanswered, help us to find answer for this one
Is it possible to subscribe on event when backbonejs view is removed from DOM?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
In Backbone, ____ provide a way for you to connect URLs (either hash fragments, or real) to parts of your application. Any piece of your application that you want to be bookmarkable, shareable, and back-button-able needs a URL?
Correct Answer:
routers
Note: This Question is unanswered, help us to find answer for this one
Views are based on ____ templates that provide layouts for rendering?
Correct Answer:
View
Note: This Question is unanswered, help us to find answer for this one
Which of the following code is True about Template Function Call?
Correct Answer:
template class T> class calc { public: T el; calc(T t); }; template class T> calc T>::calc(T t) { el = t; } double the_sum(calc int> &a, calc double> &b) { return a.el + b.el; }
Note: This Question is unanswered, help us to find answer for this one
Which of the following tags are using to specify templates?
Correct Answer:
<% %>
Note: This Question is unanswered, help us to find answer for this one
How can a set of model retrieved from the server and set them to the collection when they arrive?
Correct Answer:
collection.fetch()
Note: This Question is unanswered, help us to find answer for this one
Which of the following events is activates when the requesting to the server failed?
Correct Answer:
error
Note: This Question is unanswered, help us to find answer for this one
How Backbone Decides if it Should Use POST/GET/ Request to the Server and What are the Methods Backbone has Reserved for these Operations?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
How to limit number of models in Collection using the following code?
Correct Answer:
var myCollection = Backbone.Collection.extend({ parse: function(response) { return response.slice(0,20); } });
Note: This Question is unanswered, help us to find answer for this one
Models expose an __ attribute which represents an internal hash containing the state of that model. This is generally in the form of a JSON object similar to the model data you might find on the server but can take other forms?
Correct Answer:
.attributes
Note: This Question is unanswered, help us to find answer for this one
Which of the following is Backbone Model object functions?
Correct Answer:
omit
pick
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Sync:Manages actual persistence by a function that Backbone calls every time it attempts to read or save a __ to the server?
Correct Answer:
Model
Note: This Question is unanswered, help us to find answer for this one
Models can be created by extending Backbone.Model which of the following?
Correct Answer:
var Todo = Backbone.Model.extend({}); var todo1 = new Todo(); console.log(JSON.stringify(todo1)); var todo2 = new Todo({ title: 'Check the attributes of both model instances in the console.', completed: true }); console.log(JSON.stringify(todo2));
Note: This Question is unanswered, help us to find answer for this one
Which of the following styles of variables is using Backbone in routers?
Correct Answer:
:params
Note: This Question is unanswered, help us to find answer for this one
BackboneJS fetch collection based on parameters using the following code?
Correct Answer:
Genres.Collection = Backbone.Collection.extend({ url: function() { return 'path to my json'; }, initialize: function(opts) { opts = opts || {}; this.genre = opts.genre || 'rock'; }, parse: function(response){ return response.data.genres[this.genre]; } });
Note: This Question is unanswered, help us to find answer for this one
Unbinding function, is used to remove the validation binding on the model and removing all events hooked up on the?
Correct Answer:
Collection
Note: This Question is unanswered, help us to find answer for this one
Which of the following events are exists in Backbone Events System?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Which of the following dependency must be added for Backbone.js setup?
Correct Answer:
script src =".../underscore-min.js" ></script>
Note: This Question is unanswered, help us to find answer for this one
Backbone offers an opt-in for HTML5 pushState support?
Correct Answer:
window.history.push State
Note: This Question is unanswered, help us to find answer for this one
In Backbone.js, modelbinder class is used to make synchronization process of and together?
Correct Answer:
Views, models
Note: This Question is unanswered, help us to find answer for this one
Suppose what are the typical problems you might face with the Backbone view code?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
The default sync handler maps CRUD to REST?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
What are the default Backbone.Sync handlers?
Correct Answer:
create, update, patch, delete, read
Note: This Question is unanswered, help us to find answer for this one
Backbone.sync, transforms the __ and __ operations into HTTP requests?
Correct Answer:
Fetch(), save()
Note: This Question is unanswered, help us to find answer for this one
____ gives a direct reference to the attributes and you should be careful when playing with it. Best practice would suggest that you use .set() to edit attributes of a model to take advantage of backbone listeners?
Correct Answer:
obj.attributes
Note: This Question is unanswered, help us to find answer for this one
Backbone.sync is a _____ to synchronize your collections and models across the systems?
Correct Answer:
Method
Note: This Question is unanswered, help us to find answer for this one
The architecture of Backbone.js contains the following modules?
Correct Answer:
HTTP Request
Router
Events
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following method is enables History API?
Correct Answer:
Backbone.history.start();
Note: This Question is unanswered, help us to find answer for this one
Underscore is primarily used for its utility __ and json2.js?
Correct Answer:
Methods
Note: This Question is unanswered, help us to find answer for this one
You can remove all listeners on a particular object by using?
Correct Answer:
Instance_id.off();
Note: This Question is unanswered, help us to find answer for this one
In Backbone.JS how do you pass two models to view while creating object of a view using the following code?
Correct Answer:
var Passingmodel = new Backbone.Model(); var clientModel = new ClientModel(); var allClientModel = new AllClientModel(); Passingmodel .set({contacts: clientModel , users: allClientModel }); var clientView = new ClientView({model: Passingmodel });
Note: This Question is unanswered, help us to find answer for this one
Which of the following options can be passed directly to the View?
Correct Answer:
el
id
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
In BackboneJS, It's possible to auto-bind BackboneJs view to existing element(s)?
Correct Answer:
$(".same-class").each(function(index,ele){ var v=new MyView(); $(ele).html(v.$el); });
Note: This Question is unanswered, help us to find answer for this one
How can you will use Underscore Templates in Backbone.js Views?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Create a view that will build it's own DOM element using the following code?
Correct Answer:
var myNewView = new LibraryView({model: thisBook, tagName: 'ul', className: 'libraryview', id: 'library', attributes: {'data-date': new Date()} }); console.log(myNewView.el);
Note: This Question is unanswered, help us to find answer for this one
True or false: removes method removes listeners from the removed element.
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
In BackboneJS, Read the following code and can you change templates of a view on the fly?
Correct Answer:
render: function(){ var templateFn = this.options.template || this.template; this.$el.html(templateFn(this.model.attributes)); return this; }
Note: This Question is unanswered, help us to find answer for this one
Which following statement is correct about attach Listeners to Events in a View?
Correct Answer:
Use the “events” attribute of Backbone.View. Remember that event listeners can only be attached to child elements of the “el” property.
Note: This Question is unanswered, help us to find answer for this one
A Backbone view to a different DOM element, use __, which will also create the cached $el reference and move the view's delegated events from the old element to the new one?
Correct Answer:
setElement
Note: This Question is unanswered, help us to find answer for this one
If {parse: __} is passed as an option, the attributes will first be converted by parse before being set on the model.
Correct Answer:
true
Note: This Question is unanswered, help us to find answer for this one
Which method can be used to create a deep copy of the object?
Correct Answer:
replicate
Note: This Question is unanswered, help us to find answer for this one
Which code creates a template in Backbone.js?
Correct Answer:
<script type="text/template" id="website-list-template"> <table> <thead> <tr> <th>Name</th> <th>Aboutme</th> <th>Portfolio</th> </tr> </thead> <tbody> <% _.each(pages, function(web) { %> <tr> <td><%= web.get('name') %></td> <td><%= web.get('aboutme') %></td> <td><%= web.get('portfolio') %></td> </tr> <% }); %> </tbody> </table> </script>
Note: This Question is unanswered, help us to find answer for this one
How can the default sync handler map CRUD to REST?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Which of the following iteration functions exist in Backbone Collections?
Correct Answer:
last
Note: This Question is unanswered, help us to find answer for this one
Which method can be used to create own Model?
Correct Answer:
extend
Note: This Question is unanswered, help us to find answer for this one
How can a Backbone Model be created? Check all that apply.
Correct Answer:
var Todo = Backbone.Model.set({});
var Todo = Backbone.Model.extend({});
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following tags are used to specify templates?
Correct Answer:
<% %>
Note: This Question is unanswered, help us to find answer for this one
Which method can be used to remove Models associations ?
Correct Answer:
clear
Note: This Question is unanswered, help us to find answer for this one
Which code example can you use fetch with sending id?
Correct Answer:
var Type = Backbone.Model.extend({ urlRoot : "/api/SomeRoute" });
Note: This Question is unanswered, help us to find answer for this one
How can a set of models be retrieved from the server and into the collection when they arrive?
Correct Answer:
collection.retrive()
Note: This Question is unanswered, help us to find answer for this one
According to the code below, how can a model be removed from a collection and server? var myCollection = new MyCollection(); ... var myModel = myCollection.get(2); ...
Correct Answer:
myCollection.destroy(myModel)
Note: This Question is unanswered, help us to find answer for this one
Which code is True about Backbone.Collection?
Correct Answer:
var TodoList = Backbone.Collection.extend({ model: TodoItem }); var todoList = new TodoList();
Note: This Question is unanswered, help us to find answer for this one
Which method can be used for updating URL?
Correct Answer:
navigate
Note: This Question is unanswered, help us to find answer for this one
Which styles of variables are using Backbone in routers?
Correct Answer:
:params
*splats
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which code will you use when Defining a root route?
Correct Answer:
App.Router = Backbone.Router.extend({ routes: { '': 'index' }, index: function(){ $(document.body).append("root index route"); } });
App.Router = Backbone.Router.extend({ routes: { '': 'index' }, index: function(){ $(document.body).append("root index route"); } });
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Backbone offers an opt-in for HTML5 pushState support. Which one of the following is correct?
Correct Answer:
window.history.push State
Note: This Question is unanswered, help us to find answer for this one
Which of the following events is executed when the model validation fails?
Correct Answer:
invalid
Note: This Question is unanswered, help us to find answer for this one
How can an event be binded to an object?
Correct Answer:
object.on(event, callback)
Note: This Question is unanswered, help us to find answer for this one
What are the Events of Backbone JS? (choose all that apply)
Correct Answer:
var myModel = Backbone.Model.extend({ defaults : { title : ‘title’, description : ’description, owner : ‘anonymous’, date : ‘no date supplied’ } });
var object = {}; _.extend(object, Backbone.Events); object.on("fire ", function() { alert("Ouch, you just kick me"); }); object.trigger("fire");
var object = {}; _.extend(object, Backbone.Events); object.on("alert", function(msg) { alert("Trigger " + msg); }); object.trigger("alert", "event");
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which option will tell an object to stop listening to events by either calling stopListening with no arguments to have the object remove all of its registered callbacks ... or by telling it to remove just the events it's listening to on a specific object, or a specific event, or just a specific callback? (choose all that apply)
Correct Answer:
view.stopListening(model);
Note: This Question is unanswered, help us to find answer for this one
"This method removes callback functions or all events from an object." What option describes the above.
Correct Answer:
destroy
Note: This Question is unanswered, help us to find answer for this one
Which of the following is a built-in event in Backbone?
Correct Answer:
sort
Note: This Question is unanswered, help us to find answer for this one
Which of the following events is activated when the request to the server fails?
Correct Answer:
error
Note: This Question is unanswered, help us to find answer for this one
Which of the following libraries provide events for Backbone views? (choose all that apply)
Correct Answer:
Jquery
ZeptoJS
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following attaches event listeners into the View?
Correct Answer:
var DocumentRow = Backbone.View....{ ... // events: { ... }, ... });
var DocumentRow = Backbone.View....{ ... // events: { ... }, ... });
var DocumentRow = Backbone.View....{ ... // events: { ... }, ... });
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which code gets index by Backbone.Collection? var Items = Backbone.Collection.extend({ model : Item, url : "/items" }); var items = new Items; items.fetch();
Correct Answer:
items.at(0);
Note: This Question is unanswered, help us to find answer for this one
Which statement is valid for setting initial values to the model attributes?
Correct Answer:
var MyModel = Backbone.Model....({ init : { "atribute1": "atribute2": } });
Note: This Question is unanswered, help us to find answer for this one
Which code can you use for the deleteLists?
Correct Answer:
deleteList: function() { if (confirm(delete a list?')) { bTask.views.activeListMenuItem.model.destroy(); } return false; }
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Both of the above
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
create
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
length
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
items.get(0);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
underscore
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
first
last
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
.save()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
execute
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
el
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ZeptoJS
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
“event css-selector”: “function”
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Change
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
LI 2.-
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
onBeforeltemAdded
onBeforeRender
onRender
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
LayoutViewl)
isPopulated
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Backbone
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
{{I comment }}
{{- comment -]}
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
For keeping track of model changes.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
#each expression
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
For adding or replacing DOM elements to the application.
For showing animation in an application.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
LayoutView
Note: This Question is unanswered, help us to find answer for this one
While working with Backbonejs, which of the following options is the correct syntax of the function which is used for resetting the state of a model object to the same as it is on the server side? (Consider the variable is thisExample, the success message is Fetch is successful., and the error message is Fetch results in error.)
Correct Answer:
thisExample = fetch([
success: function(model, response){
console.log('Fetch is successful.');
].
error: function(model, response)[
console.log('Fetch results in error.');
I
l):
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Underscorejs
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
cid
Note: This Question is unanswered, help us to find answer for this one
Arrange the given steps of Test-Driven Development in the correct order?
i) Write production code
ii) Run test expecting failure
iii) Refactor code
iv) Write test
v) Repeat
vi) Run test suite
Correct Answer:
i), vi), iii). ii). iv). v)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Collection
Note: This Question is unanswered, help us to find answer for this one
After setting the back-end server, which of the following commands is used for setting the urlRoot attribute of the Backbone.js Model object? Consider that the url is http://localhostz8080lexamplesl,and the variable is Example.
Correct Answer:
Example.Backbone.Model.extend([
urlRoot=
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
true
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
4.000 milliseconds
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Backbone.js can be used for creating mobile applications in well-structured manner.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
changedAttributes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Backbone.trackit
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Bower
Note: This Question is unanswered, help us to find answer for this one
In relation to templateSettingS parameter in Backbone.js. which of the following code snippets can be used for specifying the use of [{ ]) instead of <96 96>?
Correct Answer:
vartemplateExample =[
interpolate : V[\[(.+?)\}/]\g
I;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
hasChanged(
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
.setEIement()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
toBe( value)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
<%= %>
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Loading and saving from the server.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Both Options a and b.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
localStorage : new Backbone.LocalStorage("libraryappzMyLibrary").
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Backbone.localStorage
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Dot
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
myViewExampIe = new ExampleView();
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
json2.js
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
*
Note: This Question is unanswered, help us to find answer for this one
With regard to dealing with files in Grunt, which of the following Options is the correct property that is used to remove all path parts from the dest paths?
Note: The given options are the properties that can be used when expand = true.
Correct Answer:
Flatten
Note: This Question is unanswered, help us to find answer for this one
Which of the following modules are the parts of Backbone.js?
i) Events
ii) HTTPS Request
iii) Router
iv) HTTP Request
Correct Answer:
All options i). ii). iii) and iv).
Note: This Question is unanswered, help us to find answer for this one
Select if True or False.
Backbone.trackit cannot be applied to individual model objects, using the startTracking function.
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
delegateEvents(
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Both the statements a and b are incorrect.
Note: This Question is unanswered, help us to find answer for this one
While using Backbonejs, which of the following syntaxes is used for extending any basic objects with the Backbone event capability?
Correct Answer:
var object = {};
_.extend(object, Backbone.Events);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
jOuerySelector
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
collection.unshift(model. [options])
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
onClose
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
deps
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
toHaveBeenTriggered( event, handler)
Note: This Question is unanswered, help us to find answer for this one
Which of the following options is the correct OUnit callback that runs after each assertion and provides the result of the test case (either error or log) along with the message?
Correct Answer:
QUnitJog = function(results, message)[
];
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
subString
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
value
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
npm install -g grunt-cli
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
npm install -g yeoman
Note: This Question is unanswered, help us to find answer for this one
In relation to RequireJS configuration options, which of the following is the correct option that is used for setting the baseUrl to point to the app directory?
Correct Answer:
require.config({
baseUrl:
Note: This Question is unanswered, help us to find answer for this one
In Backbonejs, which of the following Options is the correct syntax of creating 8 Fruit Object having default attributes name with value Mango, and season with value Summer are also added, and the message “Fruits are healthy!" is written to console?
Correct Answer:
Fruit = Backbone.Model.extend({
initialize.function()[
console.log(
Note: This Question is unanswered, help us to find answer for this one
BackBone.js MCQs | Topic-wise