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