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

2 questions

  • Why they ask this: The starting point for any Laravel interview; it shows you know where code belongs.

    Answer

    Open full page
  • Why they ask this: Every team project uses migrations; this checks you can work safely with a shared database schema.

    Answer

    Open full page

MVC (Model–View–Controller) separates an application into three parts:

  • Model: data and business rules. In Laravel these are Eloquent models (app/Models), each mapped to a database table.
  • View: what the user sees. In Laravel these are Blade templates (resources/views), or JSON from API Resources in an API.
  • Controller: receives the request, calls models or services, and returns a response (app/Http/Controllers).

The flow: route (routes/web.php or routes/api.php) → middleware → controller → model → view or JSON response.

php
Route::get('/jobs/{job}', [JobController::class, 'show']);

class JobController extends Controller
{
    public function show(Job $job) // route model binding
    {
        return view('jobs.show', ['job' => $job]);
    }
}

In bigger apps, keep controllers thin and move business logic into service or action classes.

Migrations are version control for the database schema. Each migration is a PHP class with an up() method that makes a change and a down() method that reverses it.

php
Schema::create('jobs', function (Blueprint $table) {
    $table->id();
    $table->foreignId('company_id')->constrained()->cascadeOnDelete();
    $table->string('title');
    $table->unsignedInteger('salary_min')->nullable();
    $table->timestamps();
});

Useful commands: php artisan make:migration, migrate, migrate:rollback, migrate:status.

Why they are useful:

  • Every developer and server gets the same schema by running php artisan migrate.
  • Changes are reviewed in Git like any other code.
  • Changes can be rolled back.

Never edit a migration that has already run in production. Create a new one instead.