Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

group C trail 2

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Which folder in Laravel stores your Eloquent models by default?

a)

/routes

b)

/app/Models

c)

/resources

d)

/vendor

2.

Which HTTP status code means “Resource Not Found”?

a)

404

b)

401

c)

201

d)

206

3.

What does php artisan serve do?

a)

Starts Laravel’s development server

b)

Runs database migrations

c)

Clears cache

d)

Installs dependencies

4.

n a REST API, what is the main purpose of the GET method?

a)

Delete data

b)

Update data

c)

Retrieve data

d)

Upload files

5.

What is the purpose of Laravel middleware?

a)

Handle database queries

b)

Process HTTP requests before reaching controllers

c)

Run cron jobs

d)

Manage Blade templates

6.

What is an Eloquent “relationship”?

a)

connection between two models

b)

A type of route

c)

A PHP extension

d)

A database migration

7.

Which command installs a new Laravel project?

a)

laravel serve

b)

php artisan new

c)

composer create-project laravel/laravel

d)

artisan make:project

8.

What is the purpose of the storage/ folder in Laravel?

a)

Save user avatars, logs, cache

b)

Store HTML files

c)

Store Blade templates

d)

Store PHP libraries

9.

What is the default HTTPS port?

a)

22

b)

80

c)

53

d)

neither

10.

What is the purpose of the Accept header in a REST API request?

a)

Defines allowed domains

b)

Specifies the expected response format

c)

Sets maximum request body size

d)

Provides authentication token