
Web Programming

Quiz
•
Instructional Technology
•
University
•
Hard
Julius Codilan
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this PHP code: echo strtr("abc", "abc", "123");
abc
123
132
a1b2c3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Function to split string using regex?
preg_split()
preg_regex()
preg()
split()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will str_repeat("PHP", 3); return?
PHP
PHP PHP PHP
PHP3
PHPPHPPHP
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function finds the last occurrence of a substring in a string?
substr()
strpos()
strrpos()
strlastpos()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of:
$str = "hello world"; echo substr($str, -5, 3);
wor
rld
llo
orl
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the use of heredoc syntax in PHP?
Error handling
Embedding variables in strings easily
Faster looping
Importing files
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is guaranteed to run at least once?
For
Foreach
While
do...While
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade