91com在线观看_五级片网站_久99视频_快播91_91免费版看片_www.91视频com

当前位置:高考升学网 > 招聘笔试题 > 正文

腾讯PHP工程师笔试题和面试题答案(二)

更新:2023-09-19 04:45:55 高考升学网

  2.数据库查询,mysql使用EXPLAIN分析查询,启用slow query log记录慢查询。

  PHP LAMP Engineer Test Paper

  Question 1

  What does print out?

  A) 3

  B) False

  C) Null

  D) 1

  E) 0

  Question 2

  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 = in_array(‘01′, array(‘1′)) == var_dump(‘01′ == 1);

  ?>

  A) True

  B) False

  Question 5

  What is the value of $result in the following PHP code?

  function timesTwo($int) {

  $int = $int 2;

  }

  $int = 2;

  $result = timesTwo($int);

  ?>;

  Answer: NULL

  Question 6

  The code below ___________ because ____________.

  class Foo {

  ?>

  function bar() {

  print “bar”;

  }

  }

  ?>

  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.

  Question 7

  When turned on, ____________ will _________ your script with different variables from HTML forms and cookies.

  A) show_errors, enable

  B) show_errors, show

  C) register_globals, enhance

  D) register_globals, inject

  Question 8

  What will be the output of the following PHP code:

  echo count(strlen(“http://php.net”));

  ?>

  Answer: 1

  Question 9

  What is the best all-purpose way of comparing two strings?

  A) Using the strpos function

  B) Using the == operator

  C) Using strcasecmp()

  D) Using strcmp()

  Question 10

  What is the difference between “print()” and “echo()”?

  Answer: print is a function,echo is a language construct

  友情提示:阅读了本文“腾讯PHP工程师笔试题”,本站中国人才网(cnrencai)笔试频道,还为你提供更多“笔试题目”相关文章阅读

最新图文

2020年河北新闻网两学一做

时间:2023-09-18 07:0:24

2020年河北新闻网两学一做

时间:2023-09-15 11:0:59

两学一做学习教育知

时间:2023-09-21 06:0:30

2020年开展两学一做学习教

时间:2023-09-19 21:0:30
主站蜘蛛池模板: 欧美xxxx色视频在线观看 | 破处一级片 | 97久久久亚洲综合久久88 | 三级成人网 | 久久免费精品国产视频 | 男人的亚洲天堂 | 人妻互换一二三区激情视频 | 在线观看的av网站 | 99久久免费国内精品 | 久久99国产精品久久99无号码 | 久久99亚洲精品久久 | 香港三级日本三级a视频 | 在线观看国产一区二区三区99 | 另类一区二区三区 | 88国产精品视频一区二区三区 | 午夜禁18男欢女爱视频 | 美女一级a毛片免费观看 | 成人做爰69片免费看网站野花 | 男人添女人下部高潮视频 | 久久国产加勒比精品无码 | 亚洲一区二区三区无码中文字幕 | 黄色免费观看视频网站 | 日美三级 | 亚洲综合天堂 | 欧美变态口味重另类在线视频 | 国产男女猛烈无遮挡免费视频网站 | 免费h网站在线观看 | 亚洲无线码一区二区三区 | 少妇精品导航 | 国产午夜精品一区二区三区极品 | 亚洲免费片 | 亚洲精品98久久久久久中文字幕 | 亚洲av福利天堂一区二区三 | 国产一区二区不卡免费观在线 | 亚洲视频欧洲视频 | 国产精品亚洲а∨无码播放不卡 | 在线观看免费高清激情爱爱 | 中国特级黄一级真人毛片 | 美女黄网站 | 四虎影视在线观看永久地址 | 99爱这里只有精品 |