Backbonejs(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. List out configuration options available in Backbone Js?
  1.    InitialCopyDirection
  2.    ModelSetOptions
  3.    Change Triggers
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above





Question 2. What is the architecture of Backbone.js
  1.    Model
  2.    View
  3.    Controller
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 3. What are the most powerful functionalities of Modelbinder?
  1.    It allows the developer to define the scope when binding is created using J-Query
  2.    In some of the cases, we can rely on the default scoping rules which are based on name attribute of HTML
  3.    The scoping rules can be redefined if the views are complex
  4.    All of the above mentioned
Explanation:-
Answer: Option D. -> All of the above mentioned





Question 4. Which are the three js files that are required to setup Backbone.js?
  1.    jQuery
  2.    Backbone
  3.    Underscore
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 5. Describe Backbone events?
  1.    On
  2.    Off
  3.    Trigger
  4.    All
Explanation:-
Answer: Option D. -> All





Question 6. What are the main components of Backbone.js?
  1.    Model
  2.    View
  3.    Collection
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above





Question 7. What is view in Backbone.js?
  1.    Views are not HTML
  2.    It is a description of a model
  3.    The HTML code comes from templates
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 8. What are the key points of Backbone?
  1.    It has hard dependency with underscore.js to make it more functional and supporting a range of useful collection- based operations
  2.    With jQuery it has a soft dependency
  3.    When the model changes it can update the HTML of your application automatically
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 9. What are the configuration options available?
  1.    InitialCopyDirection
  2.    ModelSetOptions
  3.    Change Triggers
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 10. Consider the following nested array:
_.flatten([1, [2], [3, [[4]]]], true); Justify the output of it.
  1.    [1, [2], 3, [[4]]];
  2.    [1, 2, 3, [[4]]];
  3.    [1, 2, [3, [[4]]]];
  4.    [1, [2], 3, [[4]],true];
Explanation:-
Answer: Option B. -> [1, 2, 3, [[4]]];