
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
PTS KELAS 9
Quiz
•
9th - 12th Grade
20 questions
Review Quiz (Chapter 3&4)
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Quiz on Excel
Quiz
•
12th Grade
20 questions
ASK T3 : 1.1 Pembangunan Aturcara
Quiz
•
1st - 12th Grade
20 questions
Kuis Ms Excel
Quiz
•
12th Grade - University
20 questions
Data structure test1
Quiz
•
12th Grade
20 questions
Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
13 questions
Halloween Movie Trivia
Quiz
•
9th - 12th Grade
7 questions
Halloween - Myths & Legends
Interactive video
•
10th - 12th Grade
