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 Native5
Level
AnyEasyMediumHard

19 questions

12
  • Why they ask this: Most users in Nepal browse on mobile phones, so responsive design is a must-have skill.

    Answer

    1. Add the viewport meta tag: <meta name="viewport" content="width=device-width, initial-scale=1">.
    2. Design mobile-first: write base styles for small screens, then add min-width media queries for larger ones.
    3. Use flexible layouts (Flexbox, Grid with fr and minmax()) and relative units (%, rem, vw) instead of fixed pixel widths.
    4. Make media fluid: img { max-width: 100%; height: auto; }, and use srcset for different image sizes.
    5. Test on real devices and in the browser DevTools device mode.
    css
    .grid { display: grid; gap: 1rem; }
    
    @media (min-width: 768px) {
      .grid { 
    
    Open full page
  • Why they ask this: Every developer calls or builds APIs; correct method use is a basic expectation.

    Answer

    MethodUseSafeIdempotent
    GETread a resourceyesyes
    POSTcreate a resource or trigger an actionnono
    PUTreplace a resource completelynoyes
    PATCHupdate part of a resourcenonot guaranteed
    DELETEremove a resourcenoyes
    • Safe means the request does not change server data.
    • Idempotent means sending the same request several times leaves the server in the same state as sending it once. Two identical POST /orders calls can create two orders, while PUT /users/5 with the same body twice gives the same result.

    This matters for retries: clients and proxies can safely retry idempotent requests after a network error. For payments, use an idempotency key to make POST safe to retry.

    Open full page
  • Why they ask this: Correct status codes make APIs predictable for frontend and mobile developers.

    Answer

    Open full page
  • Why they ask this: Choosing where to store tokens and preferences affects both security and user experience.

    Answer

    Open full page
  • Why they ask this: A basic Git question that shows whether you understand remote-tracking branches.

    Answer

    Open full page
  • Why they ask this: Conflicts happen weekly in team projects; interviewers want to see you stay calm and methodical.

    Answer

    Open full page
  • Why they ask this: Your GitHub history is often the first code a Nepali recruiter or tech lead looks at.

    Answer

    Open full page
grid-template-columns
:
repeat
(
2
,
1
fr
); }
}
  • 2xx success: 200 OK, 201 Created (after a POST that creates something), 204 No Content (success with no body).
  • 3xx redirect: 301 Moved Permanently, 302 Found, 304 Not Modified (use the cached copy).
  • 4xx client error:
    • 400 Bad Request: malformed request.
    • 401 Unauthorized: not authenticated (no token or a bad token).
    • 403 Forbidden: authenticated but not allowed.
    • 404 Not Found.
    • 409 Conflict: for example a duplicate email.
    • 422 Unprocessable Content: validation errors (Laravel's default).
    • 429 Too Many Requests: rate limited.
  • 5xx server error: 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable.

A frequent interview trap is the difference between 401 and 403.

CookieslocalStoragesessionStorage
Sizeabout 4 KB eachabout 5 MBabout 5 MB
Sent to the server automaticallyyes, with every matching requestnono
Lifetimeuntil Expires/Max-Age, or the sessionuntil cleareduntil the tab closes
Readable by JavaScriptunless HttpOnlyyesyes

Security notes:

  • Store auth tokens in HttpOnly, Secure, SameSite cookies where possible, so an XSS attack cannot read them.
  • Anything in localStorage can be stolen by any script running on the page.
  • Use localStorage for non-sensitive preferences such as the theme or a saved filter.
  • git fetch downloads new commits and branches from the remote and updates the remote-tracking branches (origin/main). It does not change your working files or your current branch.
  • git pull is git fetch followed by a merge (or a rebase, with git pull --rebase) into your current branch.
bash
git fetch origin
git log --oneline main..origin/main   # see what is new before merging
git pull --rebase origin main         # fetch and replay your commits on top

Fetching first is safer when you want to review incoming changes before integrating them.

A conflict happens when two branches change the same lines of a file (or one deletes a file the other edits), so Git cannot combine them automatically.

  1. Run git status to see the conflicted files.
  2. Open each file and find the markers:
text
<<<<<<< HEAD
const API_URL = '/api/v1';
=======
const API_URL = '/api/v2';
>>>>>>> feature/new-api
  1. Edit the code to the correct final version and delete the markers. Talk to the other developer if you are unsure which change is right.
  2. Run the app and the tests.
  3. git add <file>, then git commit (for a merge) or git rebase --continue (for a rebase).

To give up and start again, use git merge --abort or git rebase --abort. VS Code's merge editor makes the "accept current / incoming / both" choice easier.

Good commits:

  • One logical change per commit: small and focused.
  • A short summary line in the imperative mood (about 50 characters), for example Add password reset email. Add a body explaining why when it is not obvious.
  • Many teams use Conventional Commits: feat: add job filters, fix: handle empty salary, docs: update README.
  • Never commit secrets (.env), node_modules or vendor. Use .gitignore.

A simple branching workflow (GitHub flow):

  1. Keep main always deployable.
  2. Create a branch per task: feature/job-search, fix/login-redirect.
  3. Push and open a pull request, let CI run, and get a review.
  4. Merge (often with a squash), then delete the branch.

Larger teams may add a develop branch or release branches (Git Flow), but GitHub flow is enough for most projects.