
latihan PHP tahap 2

Quiz
•
Computers
•
11th Grade
•
Medium
Fajar Nugraha
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Apa fungsi dari echo dalam PHP?
2.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Fungsi dari foreach ($data as $row) dalam kode tersebut adalah…
Melakukan iterasi pada setiap elemen array $data
Menampilkan semua data dalam satu baris
Membuat array baru berdasarkan $data
Memfilter data yang ditampilkan
3.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Apa hasil dari kode berikut?
$nama = "Budi"; echo "Selamat datang, $nama!";
4.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Fungsi date("Y") dalam PHP akan menampilkan…
5.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Apa output dari kode berikut jika hari ini adalah Senin?
echo "Hari ini adalah " . date("l");
6.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Bagaimana cara mengubah kode agar nilai A diberikan untuk skor 85 ke atas?
Mengubah if ($skor >= 90) menjadi if ($skor >= 85)
Mengubah elseif ($skor >= 75) menjadi elseif ($skor >= 85)
Menambah elseif ($skor >= 85) { echo "Nilai Anda A"; }
Menghapus kondisi elseif ($skor >= 75)
7.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Bagaimana menampilkan waktu saat ini dalam format HH:MM:SS?
echo time();
echo date("H:i:s");
echo now();
echo datetime();
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
PTS PHP OOP Dasar Adi W

Quiz
•
9th - 12th Grade
20 questions
Kuis Flutter dan Widget

Quiz
•
11th Grade - University
20 questions
Quizii Microsoft Excel

Quiz
•
12th Grade
20 questions
Quiz Google Sheets Untuk Kelas 6

Quiz
•
6th Grade - University
20 questions
Tes Unit 3.12 PWPB

Quiz
•
11th Grade
20 questions
BAB 4 INFORMATIKA

Quiz
•
7th Grade - University
20 questions
Soal UAS E-Learning

Quiz
•
University
20 questions
Evaluasi materi kelompok

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade