Friday, June 29, 2018

Interview BostonByteLLC

1. Difference between visibility hidden and display none.
Ans : display :none  remove the element from DOM while hidden will not remove it will hide only.

2. Life Cycle hook 
Ans : https://interview-preparation-for-you.blogspot.com/2018/02/lifecycle-hook-of-component.html
3. What happen in ngDoCheck?
Ans :
DoCheck function is used to catch any changes within the angular component that cant be caught in any other way. so basically this “ngDoCheck()” function will run every time there is any kind of changes happen in the Angular Component. it will run when a variable value is changed that basic things also can be captured from this function.

4. How to optimize the preformance of angular application?
5. Where do we add java script library in angular?
Ans: There are three ways 1. Adding in HTML <html lang="en"> <script src="https://nexplayer.nexplayersdk.com/latest/nexplayer.js"> </script> <head> </head> <body> <app-root></app-root> </body> </html> 2. Adding in angular.json or .angular-cli.json "scripts": [ "../node_modules/jsplugin/dist/js/plugin.js", //Other script files ], 3. adding in component import * as Timeline from '../assets/js/timeline.js'; 6. How and when will you do code review in angular?
Ans : https://www.evoketechnologies.com/blog/code-review-checklist-perform-effective-code-reviews/
7. What is cors?
Ans : https://interview-preparation-for-you.blogspot.com/2018/03/easy-ploicy.html
8. How will you implement security in angular?
Ans : https://interview-preparation-for-you.blogspot.com/2018/12/security-in-angular.html
9. What is man in middle attack?
Ans
A man-in-the-middle (MitM) attack is when an attacker intercepts communications between two parties either to secretly eavesdrop or modify traffic traveling between the two. Attackers might use MitM attacks to steal login credentials or personal information, spy on the victim, or sabotage communications or corrupt data.
10. How will you create enum in mysql?
Ans : At the time of table creation we can create eunm CREATE TABLE shirts ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(35), size ENUM('small', CONCAT('med','ium'), 'large', 'x-large') );
https://www.javatpoint.com/mysql-enum
11. What is DOCTYPE in html?
Ans : Doctype stands for Document Type Declaration. It informs the web browser about the type and version of HTML used in building the web document. This helps the browser to handle and load it properly.
https://www.bitdegree.org/learn/doctype-html
12. What is interceptor?
Ans : Interceptors are a unique type of Angular Service that we can implement. Interceptors allow us to intercept incoming or outgoing HTTP requests using the HttpClient. By intercepting the HTTP request, we can modify or change the value of the request.
https://ultimatecourses.com/blog/intro-to-angular-http-interceptors
13. How will you do caching in interceptor?
Ans : https://blog.logrocket.com/caching-with-httpinterceptor-in-angular
14. How component will communicate?
Ans using Input, Output, ViewChild and services
15. How will you get the data from Route?
Ans: using AcivateRoute
16. Lazy loading in angular?
Ans : https://interview-preparation-for-you.blogspot.com/2018/12/lazy-loading-in-angular.html
17. Any challenge you have faced in angular application ?
18. How will you send value form parent to child using Input explain step by step?
19. Have you worked on any Continution Integration tool?
20. Deploying process of app in IOS on app store.
21. What is trigger in SQL Server?
22. What do you know about responsive design?
23. Why do we not use table layout in html?
Ans :

It's better for SEO not to use tables
Why? Can anybody show some evidence that it is? Or a statement from Google that tables are discouraged from an SEO perspective?

Tables are slower.

An extra tbody element has to be inserted. This is peanuts for modern web browsers. Show me some benchmarks where the use of a table significantly slows down a page.

24. Difference between relative and absolute position.
Ans : https://interview-preparation-for-you.blogspot.com/2021/05/what-is-relative-positioningwhen-you.html
25. What is push notification in IOS development?
26. What is new in angular5?
Ans : https://interview-preparation-for-you.blogspot.com/2018/12/difference-between-angular-4-and.html

No comments:

Followers

Link