Angular Unit Testing Interview Questions – Set 2

0



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.configureTestingModule takes which of the following as an argument?

TestBed.createComponent API returns which of the following?

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

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

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

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

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

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

TestBed.createComponent API automatically triggers change detection?

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



Ajitesh Kumar

Ajitesh Kumar

Ajitesh is passionate about various different technologies including programming languages such as Java/JEE, Javascript, PHP, C/C++, mobile programming languages etc, and, computing fundamentals related with cloud-native technologies, application security, cloud computing platforms, mobile apps, big data etc.

He has also authored the book, Building Web Apps with Spring 5 and Angular.
Ajitesh Kumar

Leave A Reply

Time limit is exhausted. Please reload the CAPTCHA.