Interview Questions and Answers - Order By Newest Q2021. What are the building blocks of Angular Apps ? Angular
Ans. modules, components, templates, metadata, data binding, directives, services, and dependency injection Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2022. What are the things that an angular component holds ? Angular
Ans. Data , HTML and Logic Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2023. What is the need of having multiple modules in angular ? Angular
Ans. It makes the application more modular and easy to manage. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2024. How to add a component in Angular ? Angular
Ans. 1. Create a component
2. Register it with a module
3. Add an element in HTML markup Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2025. Is it required to tie a component to a module ? Angular
Ans. Yes, We need to have a component tied to a module for it to work. If we don't want to create a new module , we can just tie it to default "app.module" Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2026. What is the selector and template in a component ? Angular
Ans. Selector specifies the name which is to be used to refer to the component whereas template specifies the html that needs to be rendered.
So selector specifies the reference name whereas template specifies the template or html to be rendered. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2027. What are the different ways we can specify the selector for the component ? Angular
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2028. How dependency injection in angular helps with loose coupling in angular ? Angular
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Dependency injection Q2029. What are the spec.ts files in angular ? Angular
Ans. The spec files are unit tests for your source files. The convention for Angular applications is to have a .spec.ts file for each .ts file. They are run using the Jasmine javascript test framework through the Karma test runner Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2030. What are abservables in angular ? Angular
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2031. Can we apply strict mode to a function ? Angular
Ans. Yes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2032. What is the main difference between unique key and primary key ? Database
Ans. Primary key will not accept NULL values whereas Unique key can accept one NULL value.
A table can have only primary key whereas there can be multiple unique key on a table.
A Clustered index automatically created when a primary key is defined whereas Unique key generates the non-clustered index. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Unique Key  Primary Key Asked in 1 Companies Q2033. Which file holds the dependent package information ? Angular
Ans. package.json Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2034. Have you ever faced any problem due to package version incompatibility in angular ? How did you fix it ? Angular
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2035. Difference between ViewChild and ContentChild. Angular
Ans. Any directive, component, and element which is part of component template is accessed as ViewChild. Whereas, any element or component which is projected inside is accessed as ContentChild. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ViewChild  ContentChild   ViewChild vs ContentChild Q2036. Which change detection strategy do you use in your application and Why ? Angular
Ans. We use ChangeDetectionStrategy.Push
As the application grows bigger , The default change detection strategy could become a performance overhead and hence should be avoided. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ChangeDetectionStrategy Asked in 1 Companies Q2037. What are the different conditions that triggers view update in case of push ChangeDetectionStrategy ? Angular
Ans. 1. Any change in Input
2. Any even originating from the component or it's child components
3. Explicit trigger Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ChangeDetectionStrategy Q2038. What is a component decorator ? Angular
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2039. What is interpolation in Angular ? Angular
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interpolation Q2040. Can we use interpolation with all data types ?
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interpolation Q2041. What are the limitations with using interpolation ? Why do we need property binding ?
Ans. Interpolation can only work with String types and hence we need property binding while working with other data types. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interpolation  property binding Q2042. Have you ever had any problem with asynchronous programming due to race condition ? Angular
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  race condition Q2043. What are the benefits of using UI framework like Angular , View js etc instead of plain vanilla js and html ? Javascript
Ans. These frameworks facilitates easier product development and enhancement and maintainability by having separation of concerns ( using oops ) and helps in development of reusable libraries / components. So in nutshell , they make development and maintenance of large scale application easier. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Javascript Frameworks  Angular  View js This question was recently asked at 'Ksolves'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  overridding  polymorphism Asked in 1 Companies Ans. Console - GUI Interface
gsutil - Command Line Interface
Rest API - Using JSON or XML API Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  GCP Storage This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Google Compute Engine This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Google Compute Engine  Google App Engine This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  GCP Pricing ModelAns. MS active directory concept and in GCP its Cloud Identity Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Google Compute Engine API  GCP Authentication This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve