
Quiz Konstanta di PHP
Authored by Tugas Penugasanepplg
Computers
10th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Manakah dari berikut ini yang merupakan cara yang benar untuk mendeklarasikan konstanta di PHP?
const PI = 3.14;
define("PI", 3.14);
let PI = 3.14;
constant("PI", 3.14);
const("PI", 3.14);
2.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Apa yang terjadi jika Anda mencoba mengubah nilai dari konstanta setelah dideklarasikan?
Nilai konstanta berubah.
PHP akan menghasilkan error.
Nilai konstanta menjadi NULL.
Konstanta akan diabaikan.
Tidak ada yang terjadi.
3.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Apa output dari kode berikut? php define("GREETING", "Hello, World!"); echo GREETING;
"GREETING"
"Hello"
Error
"World!"
"Hello, World!"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Konstanta di PHP bersifat:
Mutable (dapat diubah).
Immutable (tidak dapat diubah).
Hanya dapat dideklarasikan di luar fungsi.
Dapat dideklarasikan tanpa nama
Dapat memiliki scope lokal.
5.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Manakah dari berikut ini yang merupakan alasan untuk menggunakan konstanta dalam pemrograman?
Untuk menyimpan data sementara.
Untuk menyimpan nilai yang tidak akan berubah.
Untuk mendeklarasikan variabel global.
Untuk menghemat memori.
Untuk menyimpan data dinamis.
6.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Konstanta di PHP dapat dideklarasikan tanpa menggunakan tanda $.
BENAR
SALAH
7.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Nilai konstanta dapat diubah setelah dideklarasikan.
BENAR
SALAH
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
10 questions
on cuoi ki 2 tin 10 cde 5 python
Quiz
•
10th Grade
10 questions
Tool Photoshop
Quiz
•
9th - 12th Grade
10 questions
Latihan Sistem Komputer
Quiz
•
10th Grade
10 questions
Asesmen Diagnostik Informatika XI
Quiz
•
10th Grade
15 questions
SIMDIG KEWARGAAN DIGITAL
Quiz
•
10th Grade
9 questions
PAGINAS WEB
Quiz
•
10th Grade
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
15 questions
Uji Pemahaman Formula Excel
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade