
Latihan soal (2)
Authored by Fakhrul A
Information Technology (IT)
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
20 questions
Tugas Latihan Soal Informatika 9
Quiz
•
9th - 12th Grade
18 questions
Asesmen Harian Informatika Kelas 7
Quiz
•
7th Grade - University
15 questions
SUMATIF FASE E (Berpikir Komputasional)
Quiz
•
10th Grade
20 questions
Analisis Data dengan Python
Quiz
•
10th Grade
20 questions
Asesmen Awal Informatika
Quiz
•
10th Grade
20 questions
PTS INFORMATIKA
Quiz
•
10th Grade
20 questions
Etika Berkomunikasi dengan Media Sosial
Quiz
•
9th - 12th Grade
20 questions
Программирование на Python
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade