Home
MCQs by exam
PHP Developer Interviews
Computer Science MCQs
PHP Developer Interviews MCQs – Computer Science MCQs
12 multiple choice questions typical of the PHP Developer Interviews exam, with answers and explanations. Switch on practice mode to test yourself first.
A
str_contains()
Correct answer
B
str_has()
C
in_string()
D
contains()
A
urlencode_html()
B
htmlspecialchars()
Correct answer
C
mysqli_escape()
D
strip_tags_all()
A
1
B
0
C
false
D
-1
Correct answer
A
It works only with integer conditions
B
It needs a break after every case arm
C
It uses strict comparison and returns a value
Correct answer
D
It uses loose comparison and falls through
A
Throws an error when the key is missing
B
Compares the two values for equality
C
Always overwrites the value with 'Guest'
D
Uses 'Guest' if the key is missing or null
Correct answer
A
[1, 2, 3, 2]
B
[2, 2, 2]
C
12
D
[2, 4, 6]
Correct answer
A
md5()
B
base64_encode()
C
password_hash()
Correct answer
D
sha1()
A
PDO prepared statements
Correct answer
B
Escaping quotes with addslashes()
C
Hiding error messages from users
D
Converting all input to uppercase
A
An array of three strings
Correct answer
B
A boolean true value
C
A single joined string
D
The number 3
A
$_SERVER
B
$_FILES
C
$_POST
Correct answer
D
$_GET
A
null
B
5
C
true
D
false
Correct answer
A
sizeof()
B
length()
C
count()
D
strlen()
Correct answer
Practise on paper
Preparing for PHP Developer Interviews?
Make it your exam plan: see your progress in every subject and topic, set a daily goal and practise what you have not done yet.
Start my PHP Developer Interviews plan
Test yourself
Take a timed online test and get a certificate, or play today's quick quiz.
Online tests
Daily quiz