Web Development Technical Round Questions & Answers
40 questions for the technical round stage — 6 easy, 24 medium, 10 hard.
About the technical round round
The technical round is the core of a Web Development interview: concept questions with follow-ups, a live hands-on task and a deep dive into one of your projects. Interviewers check depth, not just definitions.
Tips for the technical round round
- Say your approach out loud before you start writing.
- After a correct answer, expect 'why?' and 'what if?' follow-ups; go one level deeper than the question.
- Pick one project you can explain end to end, including what you would do differently.
- If you get stuck, explain what you would try next instead of going silent.
When should you use section, article or div?
Show answer
What is ARIA and when should you use it?
Show answer
Why is the meta viewport tag needed for mobile pages?
Show answer
How is the value of this decided in JavaScript?
Show answer
Database credentials were accidentally pushed to a public GitHub repository. What now?
Show answer
How do you lazy load images and iframes natively?
Show answer
Insert a record into MySQL securely using PDO.
Show answer
Write a PHP login script using password_verify and sessions.
Show answer
What is CSRF and how do you prevent it?
Show answer
Schedule a nightly database backup with cron.
Show answer
Explain the difference between async and defer on a script tag.
Show answer
Use clamp() to create fluid typography.
Show answer
Write a function that groups an array of students by city.
Show answer
Explain transaction isolation levels in MySQL.
Show answer
What are transactions and ACID properties?
Show answer
A cart total shows 0.30000000000000004 instead of 0.3. Why, and how do you fix it?
Show answer
Make a header that sticks to the top while scrolling.
Show answer
How do SSL/TLS certificates work, and what is Let's Encrypt?
Show answer
Write .htaccess rules to force HTTPS and the non-www domain.
Show answer
A third-party widget's CSS keeps overriding your button styles. How do you handle it?
Show answer
Your application logs show frequent deadlock errors. What do you do?
Show answer
Write CSS for a simple responsive navigation that becomes a column on mobile.
Show answer
What are traits in PHP?
Show answer
Open and close an accessible modal using the native dialog element.
Show answer
Use the picture element to serve WebP or AVIF with a JPEG fallback.
Show answer
What is CORS and why does the browser block some API calls?
Show answer
Explain the JavaScript event loop.
Show answer
What does declare(strict_types=1) do?
Show answer
What are custom events and when would you use them?
Show answer
An attacker uploaded a PHP web shell through the profile picture feature. How did it happen and how do you prevent it?
Show answer
What are the differences between Apache and Nginx?
Show answer
Compare shared hosting, VPS and cloud hosting.
Show answer
How is querySelector different from getElementById and getElementsByClassName?
Show answer
What is the difference between an abstract class and an interface in PHP?
Show answer
Implement infinite scroll using IntersectionObserver.
Show answer
A user can view another user's invoice by changing the id in the URL. What is this and how do you fix it?
Show answer
Write an accessible login form with proper labels.
Show answer
How do indexes work and when can they hurt performance?
Show answer
What are data-* attributes and when do you use them?
Show answer
Frequently asked questions
What happens in the Web Development technical round round?
The technical round is the core of a Web Development interview: concept questions with follow-ups, a live hands-on task and a deep dive into one of your projects. Interviewers check depth, not just definitions.
How do I clear the technical round round?
Say your approach out loud before you start writing. After a correct answer, expect 'why?' and 'what if?' follow-ups; go one level deeper than the question. Pick one project you can explain end to end, including what you would do differently.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.