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×

AngularJS Online Test

Topics Covered

  • Data Binding
  • Controllers
  • Services
  • Templates
  • Expressions
  • Interpolation
  • Directives
  • Modules

Useful for hiring

  • AngularJS Front – End Developer
  • Angularjs Programmer
  • Full Stack Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"We are impressed with Interview Mocha's comprehensive IT skill test batteries and their ability to provide tailor-made assessments quickly. The results we got from Interview Mocha exceeded our expectations, employees found the tests quick, fun, and a benchmark of their knowledge."

Ajay Garg, Siemens,
Associate Manager
Question

In html, suppose we have define an image tag whose source comes from the binding expression:

<img src="{{image}}">

Which of the following option is correct regarding the above statement?

Note: There can be multiple correct answers to this question.

Answer
    • ng-src sets the src value of the image as soon as the corresponding binding value get evaluated.
       

    • ng-src can be used instead of src for preventing the 404 error.
       

    • Initially, a 404 error will be reported by the image tag.
       

Question

While binding expression in Angularjs, you misspelled the model name as {{perso}} instead of {{person}}. Which of the following option would it result to?

Answer
    • Angular will throw an error pointing to the mistake.
       

    • Angular will break and stop working.
       

    • Only functionality before the error will perform actions.
       

    • No errors will be thrown.
       

Question

Suppose you received a sample code that includes a .ts file with the interfaces below:
 

interface IStreet{
    streetName: string;
}
interface ICity extends IStreet{
    cityName: string;
}
interface IAddress extends ICity{
    postalCode: number;
    countryCode?: string; 
}

You want to create a class that implements the IAddress interface.
Which of the following member variables your class must include for avoiding a compiler error?

Answer
    • streetName and cityName
       

    • postalCode and countryCode
       

    • cityName, postalCode, and countryCode
       

    • streetName, cityName, and postalCode
       

    • streetName, cityName, postalCode, and countryCode
       

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