Strings and Arrays

Quiz
•
Computers
•
Professional Development
•
Medium

Preetha S
Used 5+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Graphs

Quiz
•
Professional Development
12 questions
React/Javascript Quizz

Quiz
•
Professional Development
15 questions
Php Quiz 2

Quiz
•
Professional Development
11 questions
Javascript

Quiz
•
Professional Development
10 questions
test01

Quiz
•
Professional Development
10 questions
Basic Programming Kotlin

Quiz
•
Professional Development
9 questions
PHP Tours meetup #31 Quelques principes de base ? - JIRA Workflo

Quiz
•
Professional Development
10 questions
Quiz String

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development