Ember.js is an open-source JavaScript web framework that utilizes a component-service pattern. It allows developers to create scalable single-page web applications.
EmberJS MCQs: This section contains multiple-choice questions and answers on the various topics of EmberJS. Practice these MCQs to test and enhance your skills on EmberJS.
List of EmberJS MCQs
1. EmberJS is a ____ framework?
- Python
- Java
- JavaScript
- Ruby
Answer: C) JavaScript
Explanation:
EmberJS is a JavaScript framework.
2. EmberJS is a client-side framework or a server-side framework?
- Server-side
- Client-side
Answer: B) Client-side
Explanation:
EmberJS is a client-side JavaScript framework.
3. EmberJS is the framework used for ____?
- Developing a web application
- Testing a web application
- Deploy a web application
- Design a web application
Answer: A) Developing a web application
Explanation:
EmberJS is a framework that is used for developing a web application.
4. Is EmberJS an open-source framework?
- Yes
- No
Answer: A) Yes
Explanation:
EmberJS is an open-source framework.
5. Who developed EmberJS?
- Brendan Eich
- Yehuda Katz
- Miško Hevery
Answer: B) Yehuda Katz
Explanation:
EmberJS was developed by Yehuda Katz.
ADVERTISEMENT
6. Which pattern does EmberJS follows?
- MVVM
- MVC
- MVP
Answer: B) MVC
Explanation:
EmberJS follows the MVC pattern i.e., model-view-controller.
7. A ____ simply reflects the application’s state and correlates to a URL?
- Models
- Components
- Route object
- Controllers
Answer: C) Route object
Explanation:
A Route object simply reflects the application’s state and correlates to a URL.
8. Every route is coupled with a ____ object, which contains data related to the application’s current state.
- Model
- Components
- View
- Controllers
Answer: A) Model
Explanation:
Every route is coupled with a Model object, which contains data related to the application’s current state.
9. ____ are used to provide display logic to models.
- Model
- Components
- View
- Controllers
Answer: D) Controllers
Explanation:
Controllers are used to provide display logic to models.
10. ____ are incorporated into templates to facilitate advanced processing of user events or to offer reusable behavior.
- Model
- Components
- View
- Controllers
- Routes
Answer: C) View
Explanation:
Views are incorporated into templates to facilitate the advanced processing of user events or to offer reusable behavior.
ADVERTISEMENT
11. ____ are indeed a specialized view that allows you to create unique components that can be readily reused in templates.
- Model
- Components
- View
- Controllers
- Routes
Answer: B) Components
Explanation:
Components are indeed a specialized view that allows you to create unique components that can be readily reused in templates.
12. Does EmberJS supports Data binding?
- Yes
- No
Answer: A) Yes
Explanation:
EmberJS does support data binding.
13. What was the original name of EmberJS?
- SproutCore MVC framework
- An MVC framework
- Yehuda MVC
- None
Answer: A) SproutCore MVC framework
Explanation:
Original name of EmberJS is SproutCore MVC framework.
14. ____ is one of the fastest DOM rendering engines?
- Blink
- WebKit
- Trident
- Glimmer
Answer: D) Glimmer
Explanation:
Glimmer is one of the fastest DOM rendering engines.
15. Does EmberJS uses Glimmer?
- Yes
- No
Answer: A) Yes
Explanation:
Ember’s rendering engine is based on Glimmer.
ADVERTISEMENT
16. ____ is a technique for establishing a relationship between the data reflected in the Frontend and the information stored in your model, which is handled by business logic.
- Data binding
- Controller representation
- Handlebars
- Templating
Answer: A) Data binding
Explanation:
Data binding is a technique for establishing a relationship between the data reflected in the Frontend and the information stored in your model, which is handled by business logic.
17. The development approach of Ember.js is based on ____.
- HTML
- CSS
- JavaScript
- All of the above
- Only A and C
- Both A and B
Answer: F) Both A and B
Explanation:
The development approach of Ember.js is based on HTML and CSS.
18. The ____ are Ember.js fundamental capabilities that are used to manage URLs.
- Model
- View
- Controller
- Routes
Answer: D) Routes
Explanation:
The routes are Ember.js fundamental capabilities that are used to manage URLs.
19. To install EmberJS which of the following dependencies you need to have in your system?
- Git
- NodeJS
- Browser
- All of the above
Answer: D) All of the above
Explanation:
To install EmberJS following dependencies you need to have in your system:
- Git
- NodeJS
- Browser
20. Which of the following functions are performed by the route handler in EmberJS?
- It offers the template.
- It specifies the model that the template will have access to.
- If the user does not have the authorization to browse a specific section of the app, the router will divert to a different route.
- All of the above
- Only A and C
Answer: D) All of the above
Explanation:
Following are the function that the route handler performs:
- It offers the template.
- It specifies the model that the template will have access to.
- If the user does not have the authorization to browse a specific section of the app, the router will divert to a different route.
ADVERTISEMENT
21. Model, route, component, template, and style directories and files are specified in which of the following folder?
- Config
- Dist
- Public
- App
- Static
Answer: D) App
Explanation:
Model, route, component, template, and style directories and files are specified in the App folder.
22. Which of the following folder in EmberJS contains the environment.js directory, which is used to configure an application’s settings?
- Config
- Dist
- Public
- App
- Static
Answer: A) Config
Explanation:
The config folder contains the environment.js directory, which is used to configure an application’s settings.
23. Which of the following folder in EmberJS contains materials like photos, fonts, and so on?
- Config
- Dist
- Public
- App
- Static
Answer: C) Public
Explanation:
Public folder contains materials like photos, fonts, and so on.
24. Ember CLI’s ephemeral files are stored in this directory?
- Config
- Dist
- Temp
- App
- Static
Answer: C) Temp
Explanation:
Ember CLI’s ephemeral files are stored in the Temp directory.
25. All objects in Ember.js are derived from the ____?
- Ember.object
- Objects
- Ember.obj
Answer: A) Ember.object
Explanation:
All objects in Ember.js are derived from Ember.Object.
26. The approach of object-oriented analysis and design is known as ____
- Object
- Object models
- Object-oriented models
- Object modeling
Answer: D) Object modeling
Explanation:
The approach of object-oriented analysis and design is known as object modeling.
27. A ____ is a template or blueprint that contains a set of variables and functions.
- Object
- Class
- Instance
- Component
Answer: B) Class
Explanation:
A class is a template or blueprint that contains a set of variables and functions.
28. ____ are associated with the class’s object.
- Object
- Routes
- Instances
- Components
Answer: C) Instances
Explanation:
Instances are associated with the class’s object.
29. Which of the following function could be employed to build new Ember classes?
- Ember.new()
- Ember.class()
- Ember.object()
- Ember.extend()
Answer: D) Ember.extend()
Explanation:
Ember.extend() Object’s function could be employed to build new Ember classes.
30. How many types of specifying route models are there in EmberJS?
- 2
- 3
- 4
- 5
Answer: A) 2
Explanation:
There are two types of specifying routes models:
Dynamic model, multiple models.
ADVERTISEMENT
31. The ____templating toolkit enables the creation of complex user interfaces by combining static HTML with dynamic content?
- Handlebars
- Routes object
- Components
Answer: A) Handlebars
Explanation:
The Handlebars templating toolkit enables the creation of complex user interfaces by combining static HTML with dynamic content.
32. The helpers can be nested by using the ____
- {}
- []
- ()
Answer: C)()
Explanation:
The helpers can be nested by using the parentheses().
33. The conditional statements in EmberJS begin with ____?
- {}
- []
- ()
- #
Answer: D) #
Explanation:
The conditional statements in EmberJS begins with #.
34. How do you end the conditional statement in EmberJS?
- {()}
- {{))
- {{/}}
- {}
Answer: C) {{/}}
Explanation:
Conditional statements begin with the #(Hash) before the helper’s name and end with the closing expression, i.e., {{/}} double curly brace.
35. In which of the following conditional statement only a false block of statements is executed?
- #if
- #unless
Answer: B) #unless
Explanation:
In #unless conditional statement only a false block of statements is executed.
36. The ____ component may be used to build a link to a route?
- {{Link-to}}
- {link-route}
- {application-link}
Answer: A) {{Link-to}}
Explanation:
The link-to component may be used to build a link to a route.
37. The ____ helper may be used to make the HTML element clickable.
- Link
- Input helpers
- Action helper
Answer: C) Action helper
Explanation:
The action helper may be used to make the HTML element clickable.
38. Each component in EmberJS must have a ____in their name.
- () Parenthesis
- {} Curly brackets
- – Dash
- _Underscore
Answer: C) – Dash
Explanation:
Each component in EmberJS must have a dash in its name.
39. How many methods does the component life cycle contains?
- 3
- 4
- 5
- 6
Answer: A) 3
Explanation:
The component life cycle contains three methods in EmberJS:
- On Initial Render
- On Re-Render
- On Component Destroy
40. A ____ should describe the page’s contents when a user refreshes it.
- Controller
- Model
- View
Answer: B) Model
Explanation:
A model should describe the page’s contents when a user refreshes it.
41. The ____ serves as a central repository and cache for all records in an application.
- Store
- Models
- Records
- Adapter
- Caching
Answer: A) Store
Explanation:
The store serves as a central repository and cache for all records in an application.
42. A ____ is an instance of a model that contains information that has been loaded from a server, and it may be identified by its model type and ID.
- Store
- Models
- Records
- Adapter
- Caching
Answer: C) Records
Explanation:
A record is an instance of a model that contains information that has been loaded from a server, and it may be identified by its model type and ID.
43. An ____ is an object that is in charge of converting requests from Ember into suitable calls to a certain server backend.
- Store
- Models
- Records
- Adapter
- Caching
Answer: D) Adapter
Explanation:
An adapter is an object that is in charge of converting requests from Ember into suitable calls to a certain server backend.
44. How many types of relationships does EmberJS supports?
- 3
- 4
- 5
- 2
Answer: A) 3
Explanation:
EmberJS supports three types of relationships:
- One to one
- One to many
- Many to Many
45. ____ refers to information that is utilized for a certain model or type rather than a record.
- Router
- Objects
- Metadata
- Models
Answer: C) Metadata
Explanation:
Metadata refers to information that is utilized for a certain model or type rather than a record.
46. How many types of built-in adapters are there in EmberJS?
- 3
- 4
- 5
- 6
Answer: A) 3
Explanation:
There are three types of built-in adapters in EmberJS:
- DS.Adapter
- DS.JSONAPIAdapter
- DS.RESTAdapter
47. Which of the following is a basic adapter with no extra functionality in EmberJS?
- DS.Adapter
- DS.JSONAPIAdapter
- DS.RESTAdapter
Answer: A) DS.Adapter
Explanation:
DS.Adapter is a basic adapter with no extra functionality in EmberJS.
48. Which of the following is a default adapter?
- DS.Adapter
- DS.JSONAPIAdapter
- DS.RESTAdapter
Answer: B) DS.JSONAPIAdapter
Explanation:
DS.JSONAPIAdapter is a default adapter.
49. Which of the following adapter in EmberJS is used to connect with an HTTP server via your store, which sends JSON using XHR?
- DS.Adapter
- DS.JSONAPIAdapter
- DS.RESTAdapter
Answer: C) DS.RESTAdapter
Explanation:
DS.RESTAdapter in EmberJS is used to connect with an HTTP server via your store, which sends JSON using XHR.
50. Which of the following, Essentially, maintains and monitors all packages, as well as analyses new updates?
- Components
- Packages
- Bower
Answer: C) Bower
Explanation:
Bower Essentially, it maintains and monitors all packages, as well as analyses new updates.
51. Which of the following is a technique that is used by an Ember application to define and instantiate the objects and dependent classes between them?
- Ember routers
- Dependency Injection
- Application dependency
Answer: B) Dependency Injection
Explanation:
Dependency injection is a technique that is used by an Ember application to define and instantiate the objects and dependent classes between them.
52. A ____defines an application portion, such as a route or a template, and is associated with a certain key.
- Factory
- Bower
- Registration
- Dependency Injection
- Application dependency
Answer: A) Factory
Explanation:
A factory defines an application portion, such as a route or a template, and is associated with a certain key.
53. Registration key in EmberJS includes how many parts?
- 5
- 4
- 3
- 2
Answer: D) 2
Explanation:
The registration Key in EmberJS includes 2 parts: One is factory type and the second is the name of the factory.
54. One is factory type and the second is the name of the factory is and both segments split by____?
- – dash
- () Parenthesis
- : colon
Answer: C) : colon
Explanation:
One is factory type and the second is the name of the factory is and both segments split by : colon.
55. A feature in EmberJS has how many flags?
- 2
- 3
- 4
- 5
Answer: B) 3
Explanation:
A feature in EmberJS has three flags:
- True
- Null
- false
56. ____ is a browser add-on for debugging Ember apps?
- Ember router
- Ember dependency
- Ember inspector
Answer: C) Ember inspector
Explanation:
Ember inspector is a browser add-on for debugging Ember apps.
57. Which of the following are the alternatives to EmberJS?
- Angular.
- angularjs.
- Ext JS.
- Knockout.js
- All of the above
Answer: E) All of the above
Explanation:
The alternatives of EmberJS are:
- Angular.
- angularjs.
- Ext JS.
- Knockout.js
58. Which of the following is the recent version of EmberJS?
- 4.9. 1
- 3.9
- 2.1
Answer: A) 4.9. 1
Explanation:
4.9. 1 is the recent version of EmberJS.
59. Which of the following is used to translate JSON data into a record object?
- Store
- Models
- Records
- Adapter
- Serializer
Answer: E) Serializer
Explanation:
Serializer is used to translate JSON data into a record object.
60. Is route and router the same thing in EmberJS?
- Yes
- No
Answer: B) NO
Explanation:
No, Route and Router both are different things in EmberJS.
61. Suppose you are asked to create a new application, which command would you use in EmberJS to create a new application?
- New_application
- Ember new application
- Create_new_app
- All of the above
Answer: B) Ember new application
Explanation:
Ember new application is the command that we will use in EmberJS to create a new application.
62. Which of the following command aid us to start the development server in EmberJS?
- EmberJS start
- EmberJS new
- EmberJS serve
- EmberJS server
Answer: C) EmberJS serve
Explanation:
EmberJS command aid us to start the development server in EmberJS.
63. Which of the following shortcut you would use to stop the development server?
- CTRL+V
- CTRL+Z
- CTRL+SHIFT
- CTRL+C
- CTRL+S
Answer: D) CTRL+C
Explanation:
CTRL +C shortcut we will use to stop the development server.