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

50 questions

12345
  • Why they ask this: Checks that you understand scope and hoisting, which explain many real bugs in JavaScript code.

    Answer

    • var is function-scoped, is hoisted and initialised to undefined, and can be re-declared.
    • let is block-scoped ({ ... }), is hoisted but sits in the temporal dead zone until its declaration runs, and cannot be re-declared in the same scope.
    • const behaves like let but the binding cannot be reassigned. The value itself is not frozen: you can still change an object's properties or push to an array.
    js
    for (var i = 0; i < 3; i++) setTimeout(() => console.log(i)); // 3 3 3
    for (
    
    
    
    
    Open full page
  • Why they ask this: The most common warm-up problem; it checks whether you can trade memory for speed with a hash map.

    Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target. Assume exactly one solution exists, and…

    Open full page
  • Why they ask this: Almost always the first question. It sets the tone and shows whether you can communicate clearly and stay relevant.

    How to answer

    Sample answer · STAR

    Open full page
  • Why they ask this: Closures power callbacks, React hooks, module patterns and data privacy, so they show how well you know the language.

    Answer

    Open full page
  • Why they ask this: Software is built in teams; interviewers look for respect, communication and a focus on the outcome.

    How to answer

    Sample answer · STAR

    Open full page
  • Why they ask this: A fundamental algorithm; off-by-one errors in the loop are exactly what interviewers look for.

    Given a sorted (ascending) array of distinct integers nums and a target, return the index of target, or -1 if it is not present. Your solution must run in O(log…

    Open full page
  • Why they ask this: The first concept of every Flutter app; it shows you understand how the UI rebuilds.

    Answer

    Open full page
  • Why they ask this: Loose equality causes subtle bugs; interviewers want to see that you default to strict comparison.

    Answer

    Open full page
  • Why they ask this: A quick check of loops, indexes and the difference between bytes and characters.

    Write a function that returns the reverse of a string. Try it without using a built-in reverse helper first. Example

    Open full page
  • Why they ask this: Tests whether you understand the role and can connect your skills to the company's needs with evidence.

    How to answer

    Sample answer · STAR

    Open full page
  • Why they ask this: Tests the two-pointer technique and careful handling of edge cases like spaces and punctuation.

    A phrase is a palindrome if, after converting all letters to lowercase and removing every non-alphanumeric character, it reads the same forwards and…

    Open full page
  • Why they ask this: The company wants to know whether you fit their budget and whether you have researched the market.

    How to answer

    Sample answer · STAR

    Open full page
let
j
=
0
; j
<
3
; j
++
)
setTimeout
(()
=>
console.
log
(j));
// 0 1 2
const user = { name: 'Sita' };
user.name = 'Ram'; // allowed
// user = {}; // TypeError: Assignment to constant variable

Rule of thumb: use const by default, let when you must reassign, and avoid var in modern code.

Keep it to 60–90 seconds and make it about the job, not your life story. A simple structure is present → past → future:

  1. Present: who you are now (for example a recent BSc CSIT or BE Computer graduate) and your main skills.
  2. Past: one or two achievements that prove those skills: a final-year project, an internship, a hackathon.
  3. Future: why you are excited about this role.

Avoid: reading your CV line by line, family details, your SLC/SEE marks, or generic words like "hard-working" without proof.

"I'm Anisha, a BSc CSIT graduate from Tribhuvan University, and I focus on frontend development with React and TypeScript.

(Situation/Task) For my final-year project, our team of three built a bus-ticket booking web app for a local transport company in Pokhara, and I owned the whole frontend.

(Action) I built the seat-selection screen in React, connected it to our Laravel API, and made it work well on cheap Android phones because most of their customers book on mobile.

(Result) The company used it as a pilot for two routes, and I learnt how much real users care about speed and simple design. After that I did a three-month internship at a Kathmandu startup, where I fixed UI bugs and wrote my first unit tests.

I'm now looking for a junior frontend role where I can keep building products used by real people, and your team's work on [product] is exactly that kind of work."

A closure is a function together with the variables from the scope where it was created. The inner function keeps access to those variables even after the outer function has returned.

js
function makeCounter() {
  let count = 0; // private to the closure
  return {
    increment: () => ++count,
    current: () => count,
  };
}

const counter = makeCounter();
counter.increment();
counter.increment();
console.log(counter.current()); // 2

Practical uses:

  • Data privacy: count cannot be changed from outside.
  • Function factories, for example const add5 = makeAdder(5).
  • Callbacks and event handlers that remember values.
  • React hooks: every render's handlers close over that render's state, which is why stale state bugs happen.

Use STAR and focus on your actions. Show that you listened, kept it about the work (not the person), found a fair solution, and that the project benefited.

Avoid: blaming a teammate, a story where you "won" the argument, or saying you have never had a conflict.

Situation: In our final-year project, two teammates and I were building a college attendance app. One teammate wanted to switch from React to Vue three weeks before our internal demo because he was more comfortable with it.

Task: As the person handling the frontend integration, I needed us to agree quickly without hurting the team.

Action: I asked to talk one to one first and listened to his reasons. He was struggling with React state and felt behind. I suggested we keep React because two of us already had working screens, and I offered to pair-program with him for an hour each evening that week. I also split the tasks so he owned the reports screen, which used simpler components.

Result: We finished the demo on time, he became confident with React hooks, and our supervisor rated the project "excellent". I learnt that many technical disagreements are really about confidence or workload, and that solving the real issue works better than arguing about tools.

  • A StatelessWidget has no mutable state. Its build() output depends only on its constructor arguments (and inherited data such as the theme). Examples: a label or an icon button.
  • A StatefulWidget has a separate State object that lives across rebuilds. Calling setState() marks it dirty so build() runs again. Examples: a form, a counter, a tab view.
text
class Counter extends StatefulWidget {
  const Counter({super.key});

  @override
  State<Counter> createState() => _CounterState();
}

class _CounterState extends State<Counter> {
  int count = 0;

  @override
  Widget build(BuildContext context) {
    return TextButton(
      onPressed: () => setState(() => count++),
      child: Text('Tapped $count times'),
    );
  }
}

Use the State lifecycle methods: initState() for setup and dispose() to release controllers, streams and timers.

  • === (strict equality) compares value and type. No conversion happens.
  • == (loose equality) converts the operands to a common type first, then compares.
js
0 == '0'          // true  (string converted to number)
0 === '0'         // false (number vs string)
null == undefined // true
null === undefined// false
'' == 0           // true

Always use === (and !==) unless you deliberately want conversion. A common, accepted exception is value == null, which checks for both null and undefined.

Match their needs (from the job description) to your proof. Pick the top two or three requirements and give one concrete example for each, then end with your attitude to learning.

Avoid: comparing yourself with other candidates, or vague claims ("I am a fast learner") with no example.

"Your job description asks for three things: Laravel APIs, MySQL, and working with a frontend team.

(Situation/Task) In my internship at a fintech company in Lalitpur, I was asked to build the API for a loan-application form used by their React team.

(Action) I designed the tables, wrote validation with Form Requests, documented every endpoint in Postman, and met the frontend developer daily so the JSON matched what the UI needed.

(Result) The feature went live on schedule, and the team lead asked me to write the API for the next module too.

So you would get someone who has already shipped this exact kind of work, communicates early, and is honest about what I still need to learn, which right now is writing better automated tests."

  • Research first: check salary data for your role and experience level in Nepal (for example TechHire salary insights), ask seniors, and read job posts that show salary bands.
  • Give a realistic monthly range in NPR, with the lower end being an amount you would genuinely accept.
  • Mention that you are flexible depending on the full package: festival bonus (Dashain allowance), provident fund (PF) and citizen investment trust (CIT) contributions, insurance, learning budget, and work-from-home days.
  • Ask whether the figure is gross or net of tax if it is unclear.
  • If asked very early, it is fine to ask about the role's budgeted range first.

Avoid: saying "anything is fine", giving a single number far above the market, or using your personal expenses as the reason.

"Based on my research on salary data and job posts for junior React developers in Kathmandu with internship experience, I'm looking for around NPR 35,000 to 45,000 per month before tax.

That said, I'm flexible. Learning opportunities, mentorship and benefits like PF and festival allowance matter to me too. Could you share the budgeted range for this role?"

(Replace the numbers with your own research: ranges change with the role, city, company size and your skills.)