WEB UNIT12

WEB UNIT12

University

16 Qs

quiz-placeholder

Similar activities

Course_ 3

Course_ 3

University

20 Qs

Techwiz - ICL2.0 Quiz

Techwiz - ICL2.0 Quiz

University

20 Qs

Array_php

Array_php

University

20 Qs

Pemrograman Web 03

Pemrograman Web 03

University

13 Qs

SKEE1103 CT#11c: Pointers and Functions

SKEE1103 CT#11c: Pointers and Functions

University

11 Qs

WEB UNIT 12 NEW

WEB UNIT 12 NEW

University

16 Qs

Arrays

Arrays

University

20 Qs

PHP cơ bản

PHP cơ bản

University

20 Qs

WEB UNIT12

WEB UNIT12

Assessment

Quiz

Other

University

Hard

Created by

Sini Saneesh

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In PHP the _______ function returns the total number of characters in a string.
len()
str_length()
length()
strlen()
D

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In PHP the __________ functionis used to find out whether some text occurs within a string.
strstr()
find()
count()
str_find()
A

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In PHP the __________ functionfinds the last match in the string, rather than the first
strpos()
str_last()
strrpos()
strpos_last()
C

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The __________ is used to format text strings in PHP.
getc()
sprintf()
gets()
get()
B

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Arrays with named keys in PHP are called ________
Associative arrays
Indexed arrays
Multidimensional arrays
named arrays
A

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The _____ function is used for deleting array elements in PHP.
delete()
erase()
unset()
clear()
C

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In PHP the_______ loops through a block of code for each element in an array.
foreach
while
do-while
for
A

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?