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

3 questions

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

    Answer

    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
    
    
    
    
    
    
    Open full page
  • Why they ask this: Every team project uses migrations; this checks you can work safely with a shared database schema.

    Answer

    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();
    
    
    
    
    Open full page
  • Why they ask this: Checks that your PHP knowledge is current and not stuck in PHP 5-era habits.

    Answer

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

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

  • Typed properties, union types and return types: public function find(int $id): ?User.
  • Constructor property promotion: public function __construct(private UserRepository $users) {}.
  • Named arguments: str_pad(string: $code, length: 6, pad_string: '0', pad_type: STR_PAD_LEFT).
  • match expression: strict comparison and returns a value, unlike switch.
  • Nullsafe operator: $user?->profile?->phone.
  • Enums (8.1): enum Status: string { case Active = 'active'; }.
  • readonly properties (8.1) and readonly classes (8.2) for immutable value objects and DTOs.
  • First-class callable syntax (8.1): array_map($this->format(...), $rows).
  • Property hooks (8.4): get/set logic declared on a property.
php
enum JobType: string
{
    case FullTime = 'full_time';
    case Internship = 'internship';

    public function label(): string
    {
        return match ($this) {
            self::FullTime => 'Full time',
            self::Internship => 'Internship',
        };
    }
}