
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
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 INFORMATIKA SEMESTER GENAP
Quiz
•
8th Grade - University
20 questions
FASE E. TIK. Aplikasi pengolah Kata
Quiz
•
10th Grade
20 questions
Quiz Analisis Data
Quiz
•
7th Grade - University
20 questions
Quiz MikroTik Sebagai Gateway
Quiz
•
10th Grade
15 questions
QUIZ PENGEMBANGAN PERANGKAT LUNAK DAN GIM
Quiz
•
10th Grade - University
20 questions
Quiz Keamanan Data dan Informasi
Quiz
•
9th Grade - University
15 questions
Ulangan Harian 3
Quiz
•
10th Grade
20 questions
Quiz Mengenal Data VII
Quiz
•
7th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area
Quiz
•
9th - 12th Grade
10 questions
SAT Focus: Geometry
Quiz
•
10th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade