Interview Questions and Answers for 'L' - 2078 question(s) found - Order By Rating Q1. What would you use the span element for ? HTML
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   Q2. Can we have a directive that get's applied based on an attribute on a field ? Angular
Ans. Yes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q3. How can we add a particular styling to a field based on a condition ? Angular
Ans. We can create a directive to do that. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q4. What is the use of ElementRef 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   Q5. What is the use of Renderer class 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   Q6. What is the use of NgControl ? 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   Q7. Can we have multiple selectors for a directive in Angular ? Angular
Ans. Yes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q8. How can we add a text in front of all input fields in an application ? Angular
Ans. We can create a directive with selector as 'input' and then onInit of the directive , we can append the text to the input control html. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q9. Can we get the validators for a control in angular ? How ? Angular
Ans. No - https://github.com/angular/angular/issues/13461 Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q10. How can you trim all strings in an array ?
Ans. array.map(s => s.trim()) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   angular   typescript   javascript Q11. What does this warning message for the unit test means
WARN: 'Spec has no expectations.' 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  Junit   Jasmine   Karma Q12. Do you ever merge changes from one feature branch to another ? Why ? SCM
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  SCM  Source Code Management  Configuration Control  Git  Svn 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  memory management  heap memory   heap allocation expert Q14. How can we sort an observable of a user array on user name ( name being one of the field of user ) ? RxJs
Ans. userArrayObservable.pipe(
map(userArray => {
return userArray.sort(comparator);
});
) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Angular Q15. Can we specify multiple maps within pipe ? RxJs
Ans. Yes, it's same as passing multiple methods within pipe. Output of one map is passed to second and so on. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Angular Q16. Can we specify multiple functions in the pipe ? What happens if we do it ? RxJs
Ans. Yes, We can specify multiple functions within pipe method. In that case first function get's called with the observable , the response if then passed to the second method and so on. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Angular Q17. Why do we do transformation on the observable itself rather than doing it in the subscriber ? RxJs
Ans. Because that way we just need to do that transformation at one place and not within each subscriber. Single source of truth. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Angular   Observable  Suscriber Q18. What do we specify within the pipe method ? RxJs
Ans. Operator function to which an observable is passed for transformation. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Angular Q19. What does pipe does on an observable ? RxJs
Ans. With pipe we specify the operator function to which this observable is passed for transforming the observable. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Angular   Observable Q20. What is the difference between Subject and Observable ? 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  subject vs observable Q21. What is the difference between subscribe and unsubscribe ? 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  RxJs   subscribe vs unsubscribe Q22. What is the difference between subscribe and emit ? 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  subscribe vs emit Q23. Have you ever faced problem because of some listener / observers / subscriber performing action on the subscription which you don't want ? How did you fix the problem ? 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   Q24. What is the difference between closing and completing the observer / listener ? 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  observer   listenerAns. AWS Lambda Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda basic Q26. How can print the whole object state in the console in javascript ? Javascript
Ans. We can JSON.stringify Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  javascript  angular Q27. Can you please share best practices while designing an angular application ? 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   Q28. How do you version your projects ? General
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   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  Amazon Web Services (AWS)   Google Cloud Platform (GCP) 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