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

4 questions

  • 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

    • 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.

    Open full page
  • Why they ask this: Most backend roles in Nepal build JSON APIs for web and mobile clients.

    Answer

    REST (Representational State Transfer) is an architectural style for APIs built on HTTP. Key ideas:

    • Resources are identified by URLs using nouns: /jobs, /jobs/42, /companies/7/jobs.
    • HTTP methods express the action: GET /jobs lists, POST /jobs creates, PATCH /jobs/42 updates, DELETE /jobs/42 deletes.
    • Stateless: each request carries everything needed (such as the auth token). The server keeps no client session between requests.
    • Representations: usually JSON, with the right Content-Type.
    • Correct status codes and a consistent error format.
    • Cacheable responses where appropriate.

    Good practice: version the API (/api/v1), paginate lists, use plural nouns and avoid verbs in URLs (POST /jobs/42/applications, not /applyJob).

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

    Answer

    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.
    Open full page