Web developer interview questions 2022
Explain what are the key responsibilities of a Web Developer ?
Program test and debug all web applications
- Design, develop, test and deploy web applications
- Uploading sites onto server and registering it with different search engines
- Coordinate with other designers and programmers to develop web projects
- Fix bugs, troubleshoot and resolve problems
- In case of system failure initiate periodic
- testing and implement contingency plans
- Develop appropriate code structures to solve specific tasks
Explain what is CORS ? How does it work?
(CORS) Cross-Origin Resource Sharing is a mechanism that enables many resources (e.g., JavaScript, fonts etc.) on a web page to be requested from another domain outside the domain from which the resource originated. It is a mechanism supported in HTML5 that manages XMLHttpRequest access to a domain different.
Mention some tips you can use to reduce the load time of a web application that you have written ?
To decrease the load time of a web application you have to follow the following tips :
- Optimize images to no longer than screen resolution and save it as a compressed file
- Eliminate all JavaScript files to reduce the amount of transferable data
- Combine & Mininify all CSS and JS and call them in footer
- Defer or Asynch JS Files
Explain what is the difference between cookies and local storage ?
Cookies:
- Data accessible both at client side and server side. The data is sent to the serverside with every cookie request.
- Storage capacity of cookies is 4095 bytes/cookie.
Local Storage:
- Accessible. Server cannot use local
- Only at the local browser side data is storage until deliberately sent a request to the server via POST or GET.
- Storage capacity of local storage is 5MB per domain.
List out few ways you can reduce page load time ?
You can do following things to reduce the page load time:
- Reduce image size
- Remove unnecessary widgets
- HTTP compression
- Placing CSS at the top and script reference at the bottom or in external files
- Reduce lookups
- Minimize redirects Caching
List out the new APIs provided by HTML 5 standard?
HTML 5 comes with number of new APIs :
- Media API
- Text track API
- Application Cache API
- Data transfer API
- User Interaction
- Command API
- Constraint Validation API
- History API
How XHTML is different from HTML?
- XHTML requires that all tags should be in lowercase
- XHTML requires that all tags should be closed properly
- XHTML requires that all attributes are enclosed in double quotes
- XHTML forbids inline elements from containing block level elements
If you find the mentioned information helpful, share it with your friends, teammates. And, dont forget to add-on your views and tips in the comment box.