wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

[Basic] Laravel quiz

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.

Laravel do ai phát triển?

a)

Taylor Otwell

b)

Google

c)

Apple

d)

Microsoft

2.

Chúng ta cần thiết lập kết nối cơ sở dữ liệu trong Laravel ở đâu?

a)

.env

b)

setting.php

c)

config.php

d)

router.php

3.

Sau khi chạy "Artian down", Dự án sẽ hiển thị trang bảo trì. Mã trả về trạng thái HTTP sẽ là gì?

a)

503

b)

303

c)

404

d)

300

4.

Thư mục nào chứa tệp “index.php”?

a)

public

b)

config

c)

app

d)

router

5.

Phiên bản PHP tối thiểu cần thiết để cài đặt Laravel 8 là gì?

a)

7.0

b)

7.1

c)

7.2

d)

7.3

6.

Thư mục nào không nằm trong thư mục app của Laravel?

a)

Broadcasting

b)

resources

c)

Console

d)

Events

7.

Câu lệnh tạo ứng dụng Laravel

a)

php artisan create-project laravel/laravel blog

b)

php artisan laravel/laravel blog

c)

php artisan create-project laravel blog

d)

php artisan create-project blog

8.

Tệp router nằm ở đâu trong Laravel?

a)

routes/

b)

app/Http/

c)

vendor/

d)

databases/

9.

Làm thế nào để xóa bộ nhớ cache trong Laravel?

a)

php artisan cache:clear

b)

php artisan config:clear

c)

php artisan clear

d)

php artisan cache:clearn

10.

Lỗi 404 là lỗi gì

a)

Đường dẫn bị sai

b)

Lỗi dữ liệu không hợp lệ

c)

Lỗi ngắt kết nối đến server

d)

Lỗi cú pháp

11.

Làm cách nào để chạy migration trong Laravel?

a)

php artisan migration

b)

php artisan up

c)

php artisan migrate

d)

php artisan sever

12.

Cơ sở dữ liệu nào không được hỗ trợ bởi laravel?

a)

MySQL

b)

PostgreSQL

c)

SQL Server

d)

Oracle

13.

Khi summit 1 form với method POST gặp mã 419 thì có nghĩa xảy ra vấn đề gì?

a)

Không thêm @csrf trong form

b)

Method bị sai

c)

Lỗi không kết nối được server

d)

Cơ sở dữ liệu bị lỗi

14.

Router làm nhiệm vụ gì?

a)

Định tuyến request

b)

Validation dữ liệu

c)

Làm việc với CSDL

d)

Kiểm tra dữ liệu đầu vào

15.

Câu lệnh để sinh ra APP_KEY là gì?

a)

php artisan make:key

b)

php artisan key:generate

c)

composer app:key

d)

composer key-gen