php解析doc试卷,PHP试题(卷)带答案解析.doc
一、是非題:(每題1分,共10分)
(說明:認為陳述正確的在括號內打“√”;否則在括號內打“×”)
評卷人
得分
1.PHP中變量名“$_abc”不是合法的。( )
2.PHP只能使用Mysql數據庫。( )
3.PHP中的數組鍵必須為數字,且從“0”開始。( )
4.全等運算符“===”在比較時,只有在兩者的數據類型和值都相同時才返回True。( )
5.“mysql_connect( )”與“@mysql_connect( )”沒有任何區別。( )
6.使用continue語句可以實現PHP程序的跳轉。( )
7.HTML中的Form表單數據必須使用Submit按鈕才可以提交。( )
8.PHP中的die()和exit()都可以實現程序中止退出功能。( )
9.PHP程序中可以隨時嵌入HTML代碼和JS代碼。( )
10.PHP中的Session功能可以完全不受制于客戶端的Cookie設置。( )
二、填空題:(每空1分,共10分)
評卷人
得分
1.HTML的Form表單中定義單選按鈕需要使用INPUT的 類型,定義復選按鈕需要使用INPUT的 類型。
2.PHP表達式10%2.5值為 ,表達式10/2.5值為 。
3.Mysql數據庫服務默認開放的端口號是 ,默認管理員為 。
4.為了能夠避免SQL注入,你需要堅持 。
5.表達式“'Testing'.'3'+'5'.'12'”的值為 。
6.PHP函數中可以利用 向外返回一個值,可以使用 聲明一個全局變量。
三、單選題:(每題2分,共30分)
(說明:將認為正確答案的字母填寫在每小題后而的括號內)
評卷人
得分
1.<?php $a=1; $b=2; $c=3; ($a=4)?($b--):($c--); echo $a,$b,$c; ?>輸出結果為:( )
A.123 B.423 C.122 D.413
2.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
3.If you want to come out of a while loop which of the following is used? ( )
A.exit B.close C.end D.break
4.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
5.Which of the following are valid float values?
A.4.5678 B.4.0 C.7e4 D.All of above
6.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,
總結
以上是生活随笔為你收集整理的php解析doc试卷,PHP试题(卷)带答案解析.doc的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php++mpdf.mpdf,使用php
- 下一篇: php运算符的关键字,PHP 运算符