InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is it called when you "compile the application in the browser before launching the app"? |
|
Answer» What is it CALLED when you "compile the application in the browser before launching the APP"? |
|
| 2. |
Which of the following helps you define Metadata for a class? |
|
Answer» Which of the following helps you define METADATA for a class? |
|
| 3. |
The following are true about Services, except ________ |
|
Answer» The following are true about Services, except ________ |
|
| 4. |
The following are all metadata, except ________ |
|
Answer» The following are all METADATA, except ________ |
|
| 5. |
The following are all Directives, except __________ |
|
Answer» The FOLLOWING are all DIRECTIVES, EXCEPT __________ |
|
| 6. |
In order to bind data from view to component class, you can use _____. |
|
Answer» In ORDER to bind data from view to component class, you can use _____. |
|
| 7. |
The following are all Angular metadata Decorators, except ________ |
|
Answer» The following are all Angular metadata DECORATORS, except ________ |
|
| 8. |
Which of the following is an Attribute Directive? |
|
Answer» Which of the following is an Attribute Directive? |
|
| 9. |
Which directive lets you change the rendered view by adding and removing elements from the Document Object Model? |
|
Answer» Which directive lets you CHANGE the RENDERED view by ADDING and removing elements from the Document Object Model? |
|
| 10. |
Components can be used with ____________. |
|
Answer» Components can be used with ____________. |
|
| 11. |
Which of the following are valid metadata properties? |
|
Answer» Which of the following are valid metadata properties? |
|
| 12. |
______ are mandatory parameter in components. |
|
Answer» ______ are mandatory PARAMETER in components. |
|
| 13. |
An app can have one or no modules present. |
|
Answer» An APP can have one or no modules present. |
|
| 14. |
The Component decorator defines how an application should be compiled and launched. |
|
Answer» The COMPONENT decorator defines how an application should be COMPILED and launched. |
|
| 15. |
NgFor and NgIf are examples of _________ |
|
Answer» NgFor and NgIf are examples of _________ |
|
| 16. |
Which directive lets you modify the behavior of another Directive? |
|
Answer» Which directive LETS you modify the behavior of another Directive? |
|
| 17. |
What are the types of Angular View Classes that can be associated to a Module? |
|
Answer» What are the TYPES of Angular View CLASSES that can be associated to a Module? |
|
| 18. |
Templates can also be added using URLs of the file containing code. |
|
Answer» TEMPLATES can also be added using URLs of the FILE containing code. Choose the correct option from below LIST (1)False (2)TRUE Answer:-(2)True |
|
| 19. |
Which scripting language can be used to write Angular 2 apps? |
|
Answer» Which scripting LANGUAGE can be USED to WRITE Angular 2 apps? |
|
| 20. |
Interpolation uses ________. |
|
Answer» Interpolation USES ________. |
|
| 21. |
______ element property is used to tell angular to insert the instance of component in the HTML file. |
|
Answer» ______ element property is used to tell ANGULAR to INSERT the INSTANCE of COMPONENT in the HTML file. |
|
| 22. |
Angular 2 uses ______ Dependency Injection. |
|
Answer» ANGULAR 2 uses ______ Dependency Injection. Choose the correct option from below LIST (1)Component (2)HORIZONTAL (3)Hierarchical (4)Service Answer:-(3)Hierarchical |
|
| 23. |
Which of the following is one of the blocks of Angular 2 architecture? |
|
Answer» Which of the following is one of the BLOCKS of Angular 2 architecture? |
|
| 24. |
What happens when the following code is encountered by Angular? |
|
Answer» What happens when the following code is ENCOUNTERED by Angular? |
|
| 25. |
There can be only one component per DOM element. |
|
Answer» There can be only ONE component PER DOM element. |
|
| 26. |
How will you make sure that a single instance of any Service is available throughout the app? |
|
Answer» How will you make sure that a single instance of any Service is available THROUGHOUT the app? |
|
| 27. |
Root module class by convention is named as _______. |
|
Answer» ROOT module class by CONVENTION is named as _______. Choose the correct option from below LIST (1)MainModule (2)RootModule (3)AppModule Answer:-(3)AppModule |
|
| 28. |
Which of the following is an advantage of lazy loading? |
|
Answer» Which of the following is an advantage of lazy LOADING? |
|
| 29. |
Property binding is defined using _________. |
|
Answer» PROPERTY binding is DEFINED using _________. CHOOSE the correct OPTION from below list (1){{}} (2)[] (3)[()] Answer:-(2)[] |
|
| 30. |
There can be only one service in a component. |
|
Answer» There can be only one service in a component. |
|
| 31. |
Angular 2 is written on top of Angular 1.5.x. |
|
Answer» Angular 2 is written on top of Angular 1.5.x. |
|
| 32. |
Services are included in components using ______. |
|
Answer» SERVICES are included in COMPONENTS USING ______. Choose the correct option from below list (1)Directives (2)Template (3)Provider Answer:-(3)Provider |
|
| 33. |
Services are identified using the decorator ______. |
|
Answer» Services are identified USING the decorator ______. |
|
| 34. |
How many lifecycle methods does Angular offer apart from a Component's constructor()? |
|
Answer» How MANY lifecycle methods does Angular offer apart from a COMPONENT's constructor()? |
|
| 35. |
A _______ acts as a mediator between application/business logic and the application presentation layer. |
|
Answer» A _______ acts as a mediator between APPLICATION BUSINESS logic and the application presentation layer. |
|