Home > MCQs > Website Designing & Development > Laravel Framework MCQs

Laravel Framework MCQ

Laravel Framework Quick Quiz

Question 1 of 10
  • Which of the following is required before using @section and @endsection in blade file?

    Answer & Explanation

    Correct Answer: @extends

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following are correct redirects? (Choose all that apply)

    Answer & Explanation

    Correct Answer: Route::get('redirect-with-helper-shortcut', function () { return redirect('auth/login'); });

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following is correct to display unescaped data in blade?

    Answer & Explanation

    Correct Answer: Hello, {!! $name !!}.

    Note: This Question is unanswered, help us to find answer for this one

  • _____ directory contains much of the custom code used to power your application, including the models, controllers and middleware.

    Answer & Explanation

    Correct Answer: app

    Note: This Question is unanswered, help us to find answer for this one

  • \Config::set('database.connections.customers.database', 'db_A'); 

    Answer & Explanation

    Correct Answer: All of the above

    Note: This Question is unanswered, help us to find answer for this one

  • List out few different return types of a controller action method?

    Answer & Explanation

    Correct Answer: All of the above

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following are route redirect methods? (Choose all that apply)

    Answer & Explanation

    Correct Answer: secure()

    Note: This Question is unanswered, help us to find answer for this one

  • To execute the following statement without error, which of the following is correct? $flight = App\User::create(['name' => 'John Doe']);

    Answer & Explanation

    Correct Answer: In model, set: protected $fillable = ['name'];

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following controller should be extended by all controllers?

    Answer & Explanation

    Correct Answer: Base Controller

    Note: This Question is unanswered, help us to find answer for this one

  • ___ web applications respond to meaningful HTTP verbs with appropriate data.

    Answer & Explanation

    Correct Answer: RESTful

    Note: This Question is unanswered, help us to find answer for this one

  • Laravel Framework Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.