Search Header Logo

Soal Harian Pertemuan 2 PWPB XII RPL

Authored by sulthan Shihab

Information Technology (IT)

12th Grade

Used 8+ times

Soal Harian Pertemuan 2 PWPB XII RPL
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Dalam alur aplikasi Laravel, komponen yang bertugas mengarahkan setiap permintaan (request) dari browser ke fungsi atau Controller yang tepat di aplikasi adalah...

Middleware

View

Service Provider

Router

Model

2.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

File utama di Laravel yang digunakan untuk mendefinisikan route untuk aplikasi web Anda berada di folder...

config/app.php

app/Http/Controllers

resources/views

database/migrations

routes/web.php

3.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Metode HTTP yang paling umum digunakan untuk mengambil atau menampilkan data dari server, seperti menampilkan halaman homepage atau daftar produk, adalah...

DELETE

GET

PUT

POST

PATCH

4.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Perintah Artisan yang paling tepat untuk membuat Controller baru bernama StudentController adalah...

php artisan create:controller StudentController

composer make:controller StudentController

php artisan make:model StudentController

php artisan make:controller StudentController

php artisan generate:controller StudentController

5.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Jika Anda memiliki route Route::get('/profil', [UserController::class, 'showProfile']);, bagian showProfile merujuk pada...

Nama database yang akan diakses.

Nama file CSS yang akan dimuat.

Nama Model yang akan digunakan.

Nama View yang akan ditampilkan.

Nama method di dalam UserController yang akan dieksekusi.

6.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Apa alasan utama memisahkan logika aplikasi ke dalam Controller, alih-alih menuliskannya langsung di closure route di web.php?

Agar aplikasi menjadi lebih lambat.

Untuk menyembunyikan kode dari developer lain.

Untuk menjaga kode tetap terorganisir, maintainable, dan lebih skalabel.

Karena closure route tidak dapat berinteraksi dengan Model.

Untuk menghilangkan kebutuhan akan View.

7.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Anda ingin membuat halaman "Kontak Kami" yang menampilkan informasi kontak. Setelah membuat Controller ContactController dan method index(), bagaimana Anda akan mendefinisikan route di web.php untuk URL /contact?

Route::contact('/contact', [ContactController::class, 'index']);

Route::view('/contact', 'contact.index');

Route::get('/contact', [App\Http\Controllers\ContactController::class, 'index']);

Route::get('/contact', 'ContactController@index');

Route::page('/contact', ContactController::class);

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?