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 has been recently working in the area of AI and machine learning. Currently, his research area includes Safe & Quality AI. In addition, he is also passionate about various different technologies including programming languages such as Java/JEE, Javascript and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, 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.