
Latihan soal (2)

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Fakhrul A
Used 1+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mendeklarasikan variabel global dalam fungsi PHP?
global $var;
$GLOBALS['var'];
use $var;
public $var;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut?
$x = 10;
if ($x > 5) {
echo "Besar";
} else {
echo "Kecil";
}
Besar
Kecil
Eror
Tidak ada output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kapan kita sebaiknya menggunakan switch daripada if?
Jika ada banyak kondisi dengan nilai tetap
Jika kondisi hanya dua
Jika ada perbandingan > atau <
Jika hanya ada satu kondisi
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menulis kondisi else if dalam PHP?
else if
elseif
elsif
else: if
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang akan terjadi jika break dihilangkan dalam switch?
Semua case setelahnya tetap dijalankan
Hanya case yang sesuai yang dijalankan
Akan terjadi error
Program akan berhenti
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut?
$x = 5;
echo ($x == 5) ? "Lima" : "Bukan Lima";
Lima
Bukan Lima
Error
Tidak ada output
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Operator logika manakah yang digunakan untuk "dan" dalam PHP?
&&
||
!
xor
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Fungsi Statistik, if dan Lookup Ms. Excel

Quiz
•
10th Grade
20 questions
Pengenalan Bahasa Pemrograman Python

Quiz
•
9th Grade - University
15 questions
Uji Kompetensi : Penerapan dan Pengujian Jaringan Nirkabel

Quiz
•
9th - 12th Grade
16 questions
TES DIAGNOSTIK X

Quiz
•
10th Grade
20 questions
perangkat input,output, proses

Quiz
•
10th Grade - University
20 questions
DPK Elemen 7 Bacaan

Quiz
•
10th Grade
20 questions
STS GANJIL PJOK X

Quiz
•
10th Grade
20 questions
DPK 2.3

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University