Quiz string dalam php

Quiz string dalam php

11th Grade

10 Qs

quiz-placeholder

Similar activities

C++ dasar

C++ dasar

10th - 12th Grade

9 Qs

TIN 11- KIỂU XÂU

TIN 11- KIỂU XÂU

11th Grade

10 Qs

CompTIA A+February27

CompTIA A+February27

11th Grade

11 Qs

Recursion Practice, Recursion Practice, Recursion Practice...

Recursion Practice, Recursion Practice, Recursion Practice...

10th Grade - University

10 Qs

INTERNET AND INTRANET

INTERNET AND INTRANET

9th - 11th Grade

10 Qs

Cryptography

Cryptography

6th Grade - University

15 Qs

Kuis Webinar Cerdas Bertelekomunikasi OTP Fraud

Kuis Webinar Cerdas Bertelekomunikasi OTP Fraud

6th Grade - Professional Development

10 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Quiz string dalam php

Quiz string dalam php

Assessment

Quiz

Computers

11th Grade

Practice Problem

Easy

Created by

FIKA LAILA

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?