Sail E0 Webinar

MCQs

Total Questions : 21 | Page 1 of 3 pages
Question 1. Which method breaks the collection into multiple, smaller collections of a given size
  1.    split()
  2.    chunk()
  3.    explode()
  4.    break()
 Discuss Question
Answer: Option B. -> chunk()
Question 2. Composer is a tool for ______ in PHP
  1.    Interpolation
  2.    configuration
  3.    dependency management
  4.    None of the above
 Discuss Question
Answer: Option C. -> dependency management
Question 3. For what do the
  1.    For setting environment variables
  2.    For running cron jobs
  3.    For tracking vendors
  4.    None of These
 Discuss Question
Answer: Option A. -> For setting environment variables
Question 4. After running "artisan down", The project will show the maintenance page
  1.    503
  2.    400
  3.    501
  4.    None
 Discuss Question
Answer: Option A. -> 503
Question 5. How to check current laravel version install your system?
  1.    php artisan check --version
  2.    php artisan make --version
  3.    php artisan --version
  4.    None of the above
 Discuss Question
Answer: Option C. -> php artisan --version
Question 6. Which one of the follwing command is used to create middleware in Laravel?
  1.    php artisan make: middleware
  2.    php artisan: middleware
  3.    php arti make: middleware
  4.    None of the above
 Discuss Question
Answer: Option A. -> php artisan make: middleware
Question 7. How to set a session data in Laravel?
  1.    $request->db->session('key', 'value');
  2.    $request->session()->set('key', 'value');
  3.    $request->session()->put('key', 'value');
  4.    None of These
 Discuss Question
Answer: Option C. -> $request->session()->put('key', 'value');
Question 8. What is Laravel?
  1.    Programming language
  2.    PHP framework
  3.    Code generator
  4.    None of the above
 Discuss Question
Answer: Option B. -> PHP framework
Question 9. What type of way does Laravel use to get data from a database ?
  1.    Eloquent ORM
  2.    Query Builder
  3.    Eloquent ORM and Query Builder
  4.    None of the above
 Discuss Question
Answer: Option C. -> Eloquent ORM and Query Builder
Question 10. Why does Laravel use the Blade Template Engine?
  1.    To simplify programming
  2.    As a template
  3.    For fun
  4.    For the view in MVC
 Discuss Question
Answer: Option D. -> For the view in MVC

Latest Videos

Latest Test Papers