Filter by the role you are applying for, open a question, and practise explaining the answer out loud. Mark it practised when you can.
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:
/jobs, /jobs/42, /companies/7/jobs.GET /jobs lists, POST /jobs creates, PATCH /jobs/42 updates, DELETE /jobs/42 deletes.Content-Type.Good practice: version the API (/api/v1), paginate lists, use plural nouns and avoid verbs in URLs (POST /jobs/42/applications, not /applyJob).
Why they ask this: Choosing where to store tokens and preferences affects both security and user experience.
Answer
| Cookies | localStorage | sessionStorage | |
|---|---|---|---|
| Size | about 4 KB each | about 5 MB | about 5 MB |
| Sent to the server automatically | yes, with every matching request | no | no |
| Lifetime | until Expires/Max-Age, or the session | until cleared | until the tab closes |
| Readable by JavaScript | unless HttpOnly | yes | yes |
Security notes:
HttpOnly, Secure, SameSite cookies where possible, so an XSS attack cannot read them.localStorage can be stolen by any script running on the page.localStorage for non-sensitive preferences such as the theme or a saved filter.Why they ask this: A basic Git question that shows whether you understand remote-tracking branches.
Answer
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.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 topFetching first is safer when you want to review incoming changes before integrating them.
Why they ask this: Conflicts happen weekly in team projects; interviewers want to see you stay calm and methodical.
Answer
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.
git status to see the conflicted files.<<<<<<< HEAD
const API_URL = '/api/v1';
=======
const API_URL = '/api/v2';
>>>>>>> feature/new-apigit 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.
Why they ask this: Your GitHub history is often the first code a Nepali recruiter or tech lead looks at.
Answer
Good commits:
Add password reset email. Add a body explaining why when it is not obvious.feat: add job filters, fix: handle empty salary, docs: update README..env), node_modules or vendor. Use .gitignore.A simple branching workflow (GitHub flow):
main always deployable.feature/job-search, fix/login-redirect.Larger teams may add a develop branch or release branches (Git Flow), but GitHub flow is enough for most projects.
Why they ask this: Asked in almost every fresher interview in Nepal; a clear answer with examples stands out.
Answer
private properties, public methods).PaymentGateway interface with a charge() method.class Admin extends User).interface PaymentGateway
{
public function charge(int $amountInPaisa): bool;
}
final class EsewaGateway implements PaymentGateway
{
public function charge(int $amountInPaisa): bool { /* call eSewa */ return true; }
}
final class KhaltiGateway implements PaymentGateway
{
public function charge(int $amountInPaisa): bool { /* call Khalti */ return true; }
}
function checkout(PaymentGateway $gateway): void
{
$gateway->charge(150000); // polymorphism: works with either gateway
}Why they ask this: A practical question that shows real hands-on Flutter experience.
Answer
main(), so all state is lost. It is still faster than a full rebuild.AndroidManifest.xml or Info.plist edits, and some asset changes.Hot reload will not pick up changes to main(), initState() logic that already ran, global or static variable initialisers, or enum and generic type changes. Use hot restart for those.
Why they ask this: Checks that you understand the trade-offs of the stack you are applying to work on.
Answer
<View> becomes an Android View or an iOS UIView). The New Architecture (JSI, Fabric and TurboModules) lets JavaScript call native code directly instead of through the old asynchronous bridge.How to choose: React Native suits teams that already know React and want to share logic with the web. Flutter offers very consistent UI and strong performance. Native is best for heavy platform-specific features. Both cross-platform options can call native modules when needed.
Why they ask this: Long lists are the most common performance problem in React Native apps.
Answer
ScrollView renders all of its children at once. That is fine for short, fixed content such as a settings screen.FlatList is virtualised: it renders only the items near the screen and recycles the rest. Use it for long or unknown-length lists such as feeds, job lists and chat.<FlatList
data={jobs}
keyExtractor={(job) => String(job.id)}
renderItem={({ item }) => <JobCard job={item} />}
onEndReached={loadMore} // infinite scroll
onEndReachedThreshold={0.5}
refreshing={refreshing}
onRefresh={refresh} // pull to refresh
/>Use SectionList for grouped data. For extra speed, memoise the item component, give a stable keyExtractor, and use getItemLayout when every row has the same height. FlashList (from Shopify) is a popular faster alternative.
Why they ask this: Android and iOS differ in many details, and real apps must handle both.
Answer
Platform module for small differences:import { Platform, StyleSheet } from 'react-native';
const styles = StyleSheet.create({
header: {
paddingTop: Platform.OS === 'ios' ? 44 : 0,
...Platform.select({
ios: { shadowOpacity: 0.2, shadowRadius: 4 },
android: { elevation: 4 },
}),
},
});DatePicker.ios.tsx and DatePicker.android.tsx. Importing ./DatePicker picks the right file automatically.Prefer safe-area handling (react-native-safe-area-context) over hard-coded paddings for notches.