PHP中 下列哪个操作符用来连接字符串,PHP工程师笔试选择题10例

1.The PHP function that is used to create functions, headers, footers, or elements that will be reused on multiple pages is(       ).

A.require()        B.refill()       C.reuse()      D.None of the Above

2.If you want to come out of a while loop which of the following is used? (      )

A.exit            B.close        C.end         D.break

3.Which of the following statement about PHP is FALSE?(         )

A.PHP is a web scripting language.     B.PHP is a client side language.     C.PHP is server-side scripting language that allows you to generate dynamic websites.      D.All the Above

4.Which of the following are valid float values?

A.4.5678         B.4.0         C.7e4        D.All of above

5.Study following steps and determine the correct order

(1) Open a connection to MySQL server (2) Execute the SQL query (3) Fetch the data from query (4) Select database (5) Close Connection

A.1, 4, 2, 3, 5       B.4, 1, 2, 3, 5       C.1, 5, 4, 2, 1      D.4, 1, 3, 2, 5

6.What is the correct way to add 1 to the $count variable? (      )

A.$count =+1    B.++count   C.count++;    D.$count++;

7.What is the correct way to create a function in PHP?(     )

A.function myFunction()     B.new_function myFunction() C.create myFunction()       D.void myFunction()

8.PHP中,下列哪个操作符用来连接字符串?(      )

A.+      B..       C.&          D.*

9.'red',2,'name'=>'apple',4); echo $a[2]; ?>输出结果为:(       )

A.red      B.4       C.apple         D.2

10.下列哪个不是PHP的输出命令:(       )

A.echo     B.printf()     C.print     D.write

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值