
Quiz string dalam php
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
FIKA LAILA
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa fungsi dari strlen() dalam PHP?
Mengubah huruf dalam string menjadi huruf besar
Menghitung panjang sebuah string
Menghapus spasi di awal dan akhir string
Mengganti teks dalam string
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fungsi manakah yang digunakan untuk mengubah semua huruf dalam string menjadi huruf kecil?
strtoupper()
strtolower()
str_replace()
substr()
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa hasil dari kode berikut ini? php Salin kode $text = "Hello, World!"; echo strtoupper($text);
hello, world!
HELLO, WORLD!
Hello, World!
HELLO world!
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fungsi manakah yang digunakan untuk menghapus spasi di awal dan akhir string?
trim()
explode()
strlen()
strtolower()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa hasil dari kode berikut ini? php Salin kode $text = "Hello, PHP!"; echo substr($text, 7, 3);
PHP
Hello
, P
Hel
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
<?php
$text = " Mastering PHP is fun! ";
$result = strrev(trim(substr($text, 4, 10)));
echo $result;
?>
Apa output dari kode di atas?
GNIRETSA
GNIRET
GNIRETS
MASTERS
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Di dalam OOP, manakah yang benar tentang public $title; dalam kelas?
title hanya bisa diakses di dalam kelas.
title bisa diakses di dalam dan luar kelas.
title tidak bisa digunakan untuk menyimpan string.
title hanya bisa diubah di dalam metode.
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
15 questions
python basics
Quiz
•
11th Grade - University
10 questions
Word basics
Quiz
•
8th - 12th Grade
12 questions
HTML
Quiz
•
9th - 12th Grade
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
14 questions
Computing figures
Quiz
•
4th - 12th Grade
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
10 questions
NSB AppStudio
Quiz
•
11th Grade
10 questions
Keyboarding Terms
Quiz
•
9th - 12th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
