wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz 2, XII PPLG

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What is Laravel?

a)

A front-end framework

b)

A back-end framework

c)

A database management system

d)

A content management system

2.

Which command is used to create a new Laravel project?

a)

`laravel new`

b)

`composer create-project`

c)

`php artisan serve`

d)

`npm init`

3.

What is the purpose of the .env file in a Laravel project?

a)

To store CSS and JavaScript files

b)

To configure environment variables

c)

To define routes for the application

d)

To create database migrations

4.

Which command is used to start the Laravel development server?

a)

php artisan serve

b)

php artisan start:development

c)

composer run

d)

npm run dev

5.

In Laravel, what is a "migration"?

a)

A class used to send emails

b)

A class used to handle HTTP requests

c)

A class used to define the database schema

d)

A class used to create middleware

6.

Which of the following is a feature of Laravel?

a)

Blade Templating Engine

b)

Eloquent ORM

c)

Artisan Console

d)

All of the above

7.

What is Eloquent in Laravel?

a)

A front-end framework

b)

A database query builder

c)

An ORM (Object-Relational Mapper)

d)

A template engine

8.

Which of the following is the default database system for Laravel?

a)

PostgreSQL

b)

SQLite

c)

MySQL

d)

Oracle

9.

Which method is used to define a route that responds to a GET request in Laravel?

a)

Route::post()

b)

Route::get()

c)

Route::put()

d)

Route::delete()

10.

What does MVC stand for in the context of Laravel?

a)

Model-View-Container

b)

Model-View-Component

c)

Model-View-Controller

d)

Model-View-Command