Strings and Arrays

Strings and Arrays

Professional Development

13 Qs

quiz-placeholder

Similar activities

Email of request

Email of request

12th Grade - Professional Development

11 Qs

Trg@home 1

Trg@home 1

Professional Development

10 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

Professional Development

10 Qs

Mothers Competition

Mothers Competition

Professional Development

10 Qs

DL Refresher

DL Refresher

KG - Professional Development

10 Qs

FSDA OW Sec. Amsterdam

FSDA OW Sec. Amsterdam

Professional Development

10 Qs

JavaScript Quiz

JavaScript Quiz

Professional Development

10 Qs

Digital Technology Office 365 - 29May2020

Digital Technology Office 365 - 29May2020

University - Professional Development

13 Qs

Strings and Arrays

Strings and Arrays

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Preetha S

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In PHP the _______    function returns the total number of characters in a string.

len()

str_length()

length()

strlen()

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In PHP the __________ function is used to find out whether some text occurs within a string.

strstr()  

find()

count()

str_find()

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

 In PHP the __________ function finds the last match in the string, rather than the first

strpos()

str_last()

 strrpos()

strpos_last()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a Built-in String functions in php?

strlen()

str_replace()

strpos()

strreverse()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the output of the below code?

<?php echo strpos("Hello letsfindcourse!", "lets"), " \n"; ?>

4

5

6

7

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Predict the output of the following code snippet :

<?php $str="chess was played"; echo strlen(substr($str,3,2))." " ?>

1

2

null

3

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Arrays with named keys in PHP are called ________

Associative arrays 

Indexed arrays 

Multidimensional arrays 

named arrays

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?