
Strings and Arrays
Authored by Preetha S
Computers
Professional Development
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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 to Access Data Quiz
Quiz
•
Professional Development
13 questions
Game Quizz
Quiz
•
Professional Development
13 questions
DSA 2
Quiz
•
Professional Development
15 questions
android
Quiz
•
Professional Development
10 questions
Git & Github
Quiz
•
Professional Development
10 questions
Kuis Array
Quiz
•
Professional Development
10 questions
Structure Data Review
Quiz
•
University - Professi...
12 questions
React-Hooks
Quiz
•
Professional Development
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
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development