Angular Unit Testing Interview Questions – Set 2



This quiz provides basic questions in relation to Angular unit testing. The following are some of the concepts which are covered in this quiz.

  • Angular unit testing fundamentals
  • Angular testing utilities – TestBed

TestBed.createComponent API returns which of the following?

Correct! Wrong!

Which of the following property of ComponentFixture provides an access to component's DOM element?

Correct! Wrong!

Which of the following are properties of ComponentFixture instance returned by TestBed.createComponent API?

Correct! Wrong!

Which of the following statement is true in relation with accessing value of component's DOM property?

Correct! Wrong!

Which of the following property of debugElement allows to access the value of DOM element?

Correct! Wrong!

Which of the following API of componentFixture is used for finding change detection?

Correct! Wrong!

Which of the following can be used to configure automatic change detection?

Correct! Wrong!

TestBed.createComponent API automatically triggers change detection?

Correct! Wrong!

Which of the following API of componentFixture needs to be explicitly called for property value to be bound to data property?

Correct! Wrong!

Angular Unit Testing Interview Questions - Set 2
You did extremely well!!
You did reasonably well!!
Better luck next time!!

Share your Results:



Ajitesh Kumar
Follow me

Ajitesh Kumar

I have been recently working in the area of Data Science and Machine Learning / Deep Learning. In addition, I am also passionate about various different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia etc and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data etc. I would love to connect with you on Linkedin and Twitter.
Posted in AngularJS, Career Planning, Interview questions, Javascript, Web. Tagged with , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.