Search Header Logo
Serial Laravel - Instalasi dan Menampilkan data

Serial Laravel - Instalasi dan Menampilkan data

Assessment

Interactive Video

Computers

University

Practice Problem

Hard

Created by

Sugeng Widodo

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the minimum PHP version and dependency manager required for the Laravel project discussed?

PHP 7.4, Composer

PHP 8.0, NPM

PHP 8.2, Composer

PHP 8.1, Yarn

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to create a new controller named 'DosenController'?

php make:controller DosenController

php artisan create:controller DosenController

php artisan make:controller DosenController

php artisan controller:make DosenController

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is all data from the 'Dosen' model retrieved and assigned to a variable named '$dosen' within the 'tampil()' function?

$dosen = Dosen::get();

$dosen = Dosen::find_all();

$dosen = Dosen::all();

$dosen = Dosen::fetch_all();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct routing configuration to access the 'tampil' function of 'DosenController' when navigating to '/dosen'?

Route::get('/dosen', 'DosenController@tampil');

Route::get('/dosen', [DosenController::class, 'tampil']);

Route::post('/dosen', [DosenController::class, 'tampil']);

Route::view('/dosen', 'dosen.tampil');

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What URL path was used to initially display the 'test' text?

/welcome

/home

/dosen

/test

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What were the four table headers initially defined in the `tampil.blade.php` file?

NIP, Nama, Email, Alamat

NIP, Nama, Email, Aksi

ID, Nama, Email, Aksi

NIP, Nama, Alamat, Telepon

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Blade directive is used to iterate over a collection and display a message if the collection is empty?

@foreach

@for

@while

@forelse

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?