文档内容
更快更及时的了解互联网校招信息,请访问 www.gointernetgo.com ,
一起进军互联网,更有互联网前辈线上/线下分享交流
微信订阅号
PHP LAMP Engineer Test Paper
Question 1
What does echo count ("123") ?> print out?
m
A) 3 o
c
o.
B) False g
t
e
C) Null n
r
e
t
D) 1 n
oi
g
E) 0 w.
w
Question 2 w
网
联
互
Which of the following snippets prints a representation of 42 with two decimal places?
军
进
A) printf("%.2d\n", 42);
B) printf("%1.2f\n", 42);
C) printf("%1.2u\n", 42);
Question 3
Given
$text = 'Content-Type: text/xml';
Which of the following prints 'text/xml'?
A) print substr($text, strchr($text, ':'));
B) print substr($text, strchr($text, ':') + 1);
C) print substr($text, strpos($text, ':') + 1);
D) print substr($text, strpos($text, ':') + 2);
E) print substr($text, 0, strchr($text, ':')Question 4
What is the value of $a?
A) True
B) False
Question 5
What is the value of $result in the following PHP code?
; t
e
n
Answer: NULL e r
t
n
oi
g
w.
Question 6
w
w
The code below _________
网
__ b ecause ____________. C
联
A) will work, class definitions can be split up into multiple PHP blocks.
B) will not work, class definitions must be in a single PHP block.
C) will not work, class definitions must be in a single file but can be in multiple PHP
blocks.
D) will work, class definitions can be split up into multiple files and multiple PHP
blocks.更快更及时的了解互联网校招信息,请访问 www.gointernetgo.com ,
一起进军互联网,更有互联网前辈线上/线下分享交流
微信订阅号
m
o
c
o.
g
t
e
n
r
e
t
n
oi
g
w.
w
w
网
联
互
军
进