TechHire NepalConnecting Talent, Building Careers
Find JobsCompaniesCourses
Find Talents
Sign inGet Started →
Find JobsCompaniesCourses
Find Talents
Sign inGet StartedHire Talent
TechHire Nepal

Nepal's #1 tech job platform. Connecting top talent with the best companies.

For Job Seekers

  • Browse Jobs
  • Companies
  • Tech Salaries
  • Interview Prep
  • Courses
  • Career Advice

For Employers

  • Post a Job
  • Talent Search
  • Pricing
  • Employer Dashboard

Company

  • About
  • Blog
  • Careers
  • Contact

Resources

  • Training Institutes
  • Projects
  • Tutorials
  • Roadmaps
  • Notes
  • Open Sources

Community

  • Discussions
  • Tech Events
  • Hackathons
  • Developer Meetups
  • Tech News

More

  • Help & Support
  • Salary Tax Calculator
  • Company Registration Guide
  • Labour Act

Stay in the loop

A weekly digest of the best tech articles and jobs in Nepal.

© 2026 TechHire Nepal. All rights reserved.

Privacy PolicyTerms of ServiceCookie Policy
HomeInterview PrepQuestion bank
Question bank

Interview Questions, Answered Clearly

Filter by the role you are applying for, open a question, and practise explaining the answer out loud. Mark it practised when you can.

Type
TechnicalCodingHR / BehaviouralAll types
Role
All rolesFrontend DeveloperBackend DeveloperFull-Stack DeveloperMobile Developer
Topic
All topicsJavaScript10React7HTML & CSS7PHP & Laravel9SQL & Databases6HTTP & REST APIs6Git4OOP & Design4Flutter5React Native5Arrays & Hashing4Strings3Searching & Stacks2Logic Basics1HR Basics9Behavioural (STAR)3
Level
AnyEasyMediumHard

2 questions

  • Why they ask this: Explains "why is my style not applying?" problems that every frontend developer hits.

    Answer

    Open full page
  • Why they ask this: Accessibility is increasingly expected; it shows care for all users and code quality.

    Answer

    Open full page

When several rules target the same element, the browser picks the one with the highest specificity. If specificity is equal, the rule that appears later wins.

Specificity is compared as (IDs, classes/attributes/pseudo-classes, elements/pseudo-elements):

SelectorSpecificity
p(0, 0, 1)
.card p(0, 1, 1)
#main .card p(1, 1, 1)
inline style=""beats any selector
!importantoverrides normal declarations; avoid it

:where() adds zero specificity, while :is() and :not() take the specificity of their most specific argument.

Keep specificity low and flat (for example single classes with a BEM-style or utility approach) so styles stay easy to override.

  • Use semantic elements (<button>, <nav>, <main>, headings in order) before reaching for ARIA.
  • Give images meaningful alt text (alt="" for decorative images).
  • Connect every form field to a <label> (for/id, or wrap the input).
  • Make everything usable with the keyboard: a logical tab order and a visible :focus-visible style.
  • Keep enough colour contrast: at least 4.5:1 for normal text (WCAG AA).
  • Use ARIA only to fill gaps, for example aria-expanded on a menu toggle or aria-live for status messages.

Check your work with Lighthouse or axe DevTools and by navigating with only the keyboard.