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

29 questions

123
  • Why they ask this: There is no single right answer; interviewers want reasoning, not a favourite library.

    Answer

    • setState: local state inside one widget. Simple and perfectly fine for small screens.
    • InheritedWidget / ValueNotifier + ValueListenableBuilder: built into Flutter and lightweight.
    • Provider: wraps InheritedWidget. Good for simple app-wide state, such as the logged-in user or the theme.
    • Riverpod: a compile-safe evolution of Provider that does not depend on BuildContext. Good for async data and testing.
    • Bloc / Cubit: events and states in streams, with a strict separation between UI and logic. Popular in larger teams.
    • GetX: concise, but often criticised for mixing concerns.

    How to choose: keep state as local as possible. Pick a shared solution when several screens need the same data. Consider the team's experience, how testable it is, and how much boilerplate you can accept. Be ready to explain one approach in depth with code from a project you built.

    Open full page
  • Why they ask this: Misusing BuildContext causes common runtime errors, so this tests deeper Flutter knowledge.

    Answer

    A BuildContext is a handle to a widget's location in the widget tree (it is actually the widget's Element). It is used to look up the tree for inherited data and services:

    text
    final theme = Theme.of(context);
    final size = MediaQuery.sizeOf(context);
    Navigator.of(context).push(MaterialPageRoute(builder: (_) => const JobScreen()));
    ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('Saved')));

    Common pitfalls:

    • Scaffold.of(context) fails if context belongs to a widget above the Scaffold. Wrap the child in a Builder to get a context below it.
    • After an await, the widget may have been removed. Check if (!context.mounted) return; before using the context again.
    Open full page
  • Why they ask this: Networking, databases and real-time features in Flutter depend on async Dart.

    Answer

    Open full page
  • Why they ask this: Offline support and secure token storage come up in nearly every mobile project.

    Answer

    Open full page
  • Why they ask this: Shows practical debugging experience beyond building happy-path screens.

    Answer

    Open full page
  • A Future<T> delivers one value (or an error) later, such as an HTTP response. Use it with async/await or FutureBuilder.
  • A Stream<T> delivers many values over time, such as location updates, Firestore snapshots, WebSocket messages or user input. Use it with await for, listen() or StreamBuilder.
text
Future<List<Job>> fetchJobs() async {
  final res = await http.get(Uri.parse('https://api.example.com/jobs'));
  if (res.statusCode != 200) throw Exception('Failed: ${res.statusCode}');
  return (jsonDecode(res.body) as List).map((j) => Job.fromJson(j)).toList();
}

Stream<int> countdown(int from) async* {
  for (var i = from; i >= 0; i--) {
    await Future.delayed(const Duration(seconds: 1));
    yield i;
  }
}

Always cancel stream subscriptions in dispose() to avoid memory leaks.

Choose storage by what you are saving:

  • AsyncStorage (@react-native-async-storage/async-storage): simple, unencrypted key-value storage for small, non-sensitive data such as settings or onboarding flags.
  • MMKV (react-native-mmkv): a much faster key-value store, also synchronous.
  • Secure storage for tokens and secrets: expo-secure-store or react-native-keychain, which use the iOS Keychain and the Android Keystore.
  • A database for larger, structured or offline-first data: SQLite (expo-sqlite), WatermelonDB or Realm.
js
import * as SecureStore from 'expo-secure-store';

await SecureStore.setItemAsync('auth_token', token);
const saved = await SecureStore.getItemAsync('auth_token');

Never put access tokens in AsyncStorage, and never ship API secrets inside the app bundle, because the bundle can be unpacked.

Measure first:

  • Turn on the Perf Monitor in the dev menu to watch JS and UI frame rates.
  • Use React DevTools Profiler to find components that re-render too often.
  • Use Android Studio and Xcode profilers for memory and native issues.
  • Always test a release build on a real, low-end Android phone, which is what many users in Nepal have.

Common fixes:

  • Use FlatList (or FlashList) with stable keys instead of mapping long arrays in a ScrollView.
  • Avoid unnecessary re-renders with React.memo, useCallback and useMemo, and keep state close to where it is used.
  • Resize and cache images, for example with expo-image.
  • Run animations on the UI thread with Reanimated, or useNativeDriver: true.
  • Move heavy work off the JS thread and remove console.log calls from release builds.
  • Make sure the Hermes engine is enabled (the default in current versions).