Strings and Arrays
Quiz
•
Computers
•
Professional Development
•
Medium
Preetha S
Used 5+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Apache Spark
Quiz
•
Professional Development
10 questions
Mothers Competition
Quiz
•
Professional Development
10 questions
Scrum Quiz
Quiz
•
Professional Development
16 questions
CPU scheduling
Quiz
•
Professional Development
12 questions
DBMS-Transactions-Revision
Quiz
•
Professional Development
13 questions
Digital Technology Office 365 - 29May2020
Quiz
•
University - Professi...
11 questions
Office 365
Quiz
•
Professional Development
11 questions
Email of request
Quiz
•
12th Grade - Professi...
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
