
latihan PHP tahap 2
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Fajar Nugraha
Used 2+ times
FREE Resource
Enhance your content in a minute
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
City & Guilds Award in Business Processes
Quiz
•
12th Grade
20 questions
ASPEK LEGAL TIK XII
Quiz
•
12th Grade
20 questions
Pengayaan Informatika
Quiz
•
12th Grade
20 questions
Ինֆորմատիկա 10 II կիսամյակի ամփոփիչ աշխատանք
Quiz
•
10th - 12th Grade
20 questions
NACOS Kahoot Session II
Quiz
•
University
20 questions
Quiz Manajemen Aset TI
Quiz
•
University
20 questions
COA_QUIZ_UNIT I
Quiz
•
University
20 questions
Online Platform Block Q
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
