Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Ember.JS Online Skill Assessment Test

Topics Covered

  • EmberJS Configuration
  • Creating Applications with EmberJS
  • Developing actions with EmberJS
  • Working with Routes in EmberJS
  • Working with views and models in EmberJS

Useful for hiring

  • Ember JS Developer
  • JavaScript Developer
  • Full Stack Web Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"We are impressed by the caliber, depth, and breadth of the assessments provided by Interview Mocha. With Interview Mocha's online proctoring & powerful reports, we are able to hire quality candidates overcoming geographical barriers."

Megan Akhras, J'Excelle,Canada,
Co-founder & director
Question

The following code snippet shows an error:

Ember.UserRoleAddNewController = App.ObjectController({
    startEdit: new function() {
        this.transaction = this.fetch('store').transaction();
        this.set('content', this.transaction.createRecord(App.User, []));
    }

Which of the following code snippet fixes the problem?

Answer
    • App.UserRoleAddNewController = Ember.ObjectController.extend({ startEdit: function() { this.transaction = this.get('store').transaction(); this.set('content', this.transaction.createRecord(App.User, {})); }

    • App.UserRoleAddNewController = ObjectController.extend({ startEdit: function() { this.transaction = this.get('store').transaction(); this.set('content', this.transaction.createRecord(App[User], {})); }

    • App[UserRoleAddNewController] = Ember[ObjectController].extend({ startEdit: function() { this.transaction = this.get('store').transaction(); this.set('content', this.transaction.createRecord(App.User, {})); }

    • var UserRoleAddNewController = Ember.ObjectController({ startEdit: function() { this.transaction = this.get('store').transaction(); this.set('content', this.transaction.createRecord(App.User, {})); }

Question

The following code snippet contains an error:

App.REST.Serializer = DS.REST.extend({
    init: function() {
        this._super();

        this.map('App.UserRole', {
            frameworks: {embedded: 'always'}
        });
    }
});

What following code snippet fixes the problem?

Answer
    • App.REST.Serializer = DS.REST.extend({ init: function() { this._super(); this.map('App.User', { frameworks: {embeded: 'always'} }); } });

    • Ember.REST.Serializer = DS.REST({ init: function() { this._super(); this.map('App.User', { frameworks: [embedded: 'always'] }); } });

    • App.RESTSerializer = DS.RESTSerializer.extend({ init: function() { this._super(); this.map('App.User', { frameworks: {embedded: 'always'} }); } });

    • Ember.REST.instance = DS.RESTSerializer.get({ init: function() { this._super(); this.map('App.User', { frameworks: {embedded: 'always'} }); } });

Question

Consider the following REST API:

GET http://mywebserivce.com/user
GET http://mywebserivce.com/user/:id
POST http://mywebserivce.com/user
DELETE http://mywebserivce.com/user/:id

Which following code snippet correctly sets the above URL in the adapter?

Answer
    • Adapter.REST = DS.REST.extend({ path: 'http://mywebservice.com', serializer: App.REST.Serializer.create() });

    • App.REST = DS.Adapter.RESTLoad({ adress: 'http://mywebservice.com', serializer: App.RESTSerializer.instance() });

    • App[REST].Adapter = DS.extend({ location: 'http://mywebservice.com', serializer: App.RESTSerializer.create() });

    • App.RESTAdapter = DS.RESTAdapter.extend({ url: 'http://mywebservice.com', serializer: App.RESTSerializer.create() });

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO