Interview Questions – Angular User Input Form Handling

This page represents interview questions in relation to the usage of basic primitives which can be used for handling user input and gestures while working with Angular forms. It covers some of the following topics:

  • Usage of $event object for capturing user inputs
  • Usage of template reference variable for handling user inputs
  • Best practices in relation with using $event object or template reference variables
  • Syntaxes in relation with both $event object and template reference variables



Which of the following is used by Angular to provide the DOM event object as a result of an event occuring (for example, keyup)?

Correct! Wrong!

All standard DOM event objects have which of the following as a property?

Correct! Wrong!

Passing $event object for handling form events is a recommended practice?

Correct! Wrong!

Which of the following is recommended practice to get user input from form?

Correct! Wrong!

Which of the following would bind “enter” key event with the template statement?

Correct! Wrong!

Passing $event object for handling form events violates which of following design pattern?

Correct! Wrong!

Which of the following syntax represents usage of template reference variable such as “name” to bind an event?

Correct! Wrong!

Which of the following is used to bind event in case user, after entering input value, browses else where without pressing “enter” key?

Correct! Wrong!

Template reference variable when used on an input field cann’t be used in sibling or child elements of the input field?

Correct! Wrong!

It is recommended to pass ________ and not ______ when handling form events?

Correct! Wrong!

Angular Form Handling Interview Questions
You did extremely well!!
You did reasonably well!!
Better luck next time!!

Share your Results:

In case you are developing web apps using Spring and Angular, check out my book, Building web apps with Spring 5 and Angular. Grab your ebook today and get started.



Ajitesh Kumar
Follow me

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about 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. For latest updates and blogs, follow us on Twitter. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking. Check out my other blog, Revive-n-Thrive.com
Posted in Career Planning, Freshers, Interview questions, Web. Tagged with , .

Leave a Reply

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