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.
Latest posts by Ajitesh Kumar (see all)
- Difference: Binary vs Multiclass vs Multilabel Classification - September 13, 2024
- Sklearn LabelEncoder Example – Single & Multiple Columns - September 13, 2024
- ROC Curve & AUC Explained with Python Examples - September 8, 2024
Leave a Reply