php开源问答_PHP基础知识能力问答
php開源問答
This section contains Aptitude Questions and Answers on PHP Basics.
本部分包含有關(guān)PHP基礎(chǔ)知識的 Aptitude問題和解答。
1) There are the following statements that are given below, which of them are correct PHP?PHP stands for the Preprocessor Home page.
PHP is a scripting language.
PHP is a client-side hypertext language.
PHP is used to make dynamic and interactive pages.
Options:
A and C
B and D
A, B, and C
A, B, C, and D
Correct answer: 2
B and D
Statements B and D are correct about PHP.
1)下面給出了以下語句,其中哪些是正確PHP?PHP代表預(yù)處理器主頁。
PHP是一種腳本語言。
PHP是一種客戶端超文本語言。
PHP用于制作動態(tài)和交互式頁面。
選項(xiàng):
A和C
B和D
A,B和C
A,B,C和D
正確答案:2
B和D
語句B和D關(guān)于PHP是正確的。
2) PHP stands for?Preprocessor Home Page
Personal Home Page
Hypertext Preprocessor
Preprocessor Hypertext Page
Options:
A and B
A and C
B and C
C and D
Correct answer: 3
B and C
Previously PHP stands for "Personal Home Page" and now, it is called "Hypertext Preprocessor".
2)PHP代表什么?預(yù)處理器主頁
個(gè)人主頁
超文本預(yù)處理器
預(yù)處理程序超文本頁面
選項(xiàng):
A和B
A和C
B和C
C和D
正確答案:3
B和C
以前, PHP代表“個(gè)人主頁” ,現(xiàn)在被稱為“ 超文本預(yù)處理器” 。
3) Can we create a web-service in PHP?Yes
No
Correct answer: 1
Yes
Yes, we can create a web-service in PHP.
3)我們可以用PHP創(chuàng)建一個(gè)Web服務(wù)嗎?是
沒有
正確答案:1
是
是的,我們可以使用PHP創(chuàng)建一個(gè)Web服務(wù)。
4) What is the extension is used for PHP scripting files?.php
.ph
.p
.phtml
Correct answer: 1
.php
The .php extension is used for PHP scripting files.
4)PHP腳本文件使用的擴(kuò)展名是什么?.php
.ph
.p
.phtml
正確答案:1
.php
.php擴(kuò)展名用于PHP腳本文件。
5) Can we generate an executable file after the compilation of PHP code?Yes
No
Correct answer: 2
No
No, PHP is a scripting language so that we can generate an executable file.
5)我們可以在編譯PHP代碼后生成可執(zhí)行文件嗎?是
沒有
正確答案:2
沒有
不,PHP是一種腳本語言,因此我們可以生成一個(gè)可執(zhí)行文件。
6) Which of the following are popular frameworks used in PHP?CakePHP
FuelPHP
Zend
Yii
Options:
A and B
C and D
A, B, and C
A, B, C, and D
Correct answer: 4
A, B, C, and D
All given options are popular frameworks used in PHP.
6)以下哪種流行PHP框架?CakePHP
FuelPHP
曾德
i
選項(xiàng):
A和B
C和D
A,B和C
A,B,C和D
正確答案:4
A,B,C和D
所有給定的選項(xiàng)都是PHP中使用的流行框架。
7) A PHP file can contain?HTML code
Windows Application code
Java-script code
PHP code
Options:
A and B
A, B, and C
A, C, and D
A, B, C, and D
Correct answer: 3
A, C, and D
A PHP file can contain HTML, Java-script, and PHP code.
7)一個(gè)PHP文件可以包含嗎?HTML代碼
Windows應(yīng)用程序代碼
Java腳本代碼
PHP代碼
選項(xiàng):
A和B
A,B和C
A,C和D
A,B,C和D
正確答案:3
A,C和D
一個(gè)PHP文件可以包含HTML,Java腳本和PHP代碼。
8) Which of the following can be done by PHP code?Creation of dynamic WebPages.
Add, delete, and modify data in the database.
Encryption and decryption of data.
PHP can send and receive cookies.
Options:
A and B
C and D
A, B, and C
A, B, C, and D
Correct answer: 4
A, B, C, and D
All given tasks can be performed by the PHP code.
8)以下哪項(xiàng)可以通過PHP代碼完成?創(chuàng)建動態(tài)網(wǎng)頁。
添加,刪除和修改數(shù)據(jù)庫中的數(shù)據(jù)。
數(shù)據(jù)加密和解密。
PHP可以發(fā)送和接收Cookie。
選項(xiàng):
A和B
C和D
A,B和C
A,B,C和D
正確答案:4
A,B,C和D
所有給定的任務(wù)都可以由PHP代碼執(zhí)行。
9) PHP supports AJAX?Yes
No
Correct answer: 1
Yes
Yes, PHP supports AJAX.
9)PHP是否支持AJAX?是
沒有
正確答案:1
是
是的,PHP支持AJAX。
10) Which of the following operating systems can run PHP scripts?MAC OS X
Windows
Linux
Unix
Options:
A and B
C and D
A, B, and C
A, B, C, and D
Correct answer: 4
A, B, C, and D
All given operating systems can run PHP scripts.
10)以下哪些操作系統(tǒng)可以運(yùn)行PHP腳本?MAC OS X
視窗
的Linux
Unix系統(tǒng)
選項(xiàng):
A和B
C和D
A,B和C
A,B,C和D
正確答案:4
A,B,C和D
所有給定的操作系統(tǒng)都可以運(yùn)行PHP腳本。
11) Which of the following web-server is used for PHP scripts?Tomcat
IIS
Apache
Cassini
Correct answer: 3
Apache
The Apache web-server is used for PHP scripts.
11)以下哪個(gè)Web服務(wù)器用于PHP腳本?Tomcat
IIS
阿帕奇
卡西尼號
正確答案:3
阿帕奇
Apache Web服務(wù)器用于PHP腳本。
12) Which of the following are software bundle is used for PHP and its related software's?LAMP
WAMP
LANP
MAMP
Options:
A and B
C and D
A, B, and D
B, C, and D
Correct answer: 3
A, B, and D
The LAMP, WAMP, and MAMP software bundle are used for installing PHP and related software.
12)以下哪個(gè)軟件包用于PHP及其相關(guān)軟件?燈
WAMP
局域網(wǎng)
曼普
選項(xiàng):
A和B
C和D
A,B和D
B,C和D
正確答案:3
A,B和D
LAMP , WAMP和MAMP軟件包用于安裝PHP和相關(guān)軟件。
13) What is 'M' stands for in LAMP?Markup
MySQL
Most
Microsoft
Correct answer: 2
MySQL
The "M" stands for MySQL in LAMP. LAMP is a software bundle to install PHP, MySQL on the Linux operating system.
13)“ L”在LAMP中代表什么?標(biāo)記
MySQL
最
微軟
正確答案:2
MySQL
“ M”代表LAMP中的MySQL 。 LAMP是一個(gè)軟件包,用于在Linux操作系統(tǒng)上安裝PHP,MySQL。
14) What the full form of 'P' can be in the WAMP?PHP
Python
Perl
All of the above
Correct answer: 4
All of the above
The full form of "P" can be PHP, Python, and Perl in the WAMP.
14)WAMP中的“ P”的完整形式是什么?PHP
Python
Perl
上述所有的
正確答案:4
上述所有的
“ W”的完整形式可以是WAMP中的PHP , Python和Perl 。
15) Can we place a PHP script anywhere in the ".php" file?Yes
No
Correct answer: 1
Yes
Yes, we can place the PHP script anywhere in the ".php" file.
15)我們可以在“ .php”文件中的任何位置放置PHP腳本嗎?是
沒有
正確答案:1
是
是的,我們可以將PHP腳本放置在“ .php”文件中的任何位置。
16) Which of the following functions are used to print text on the webpage?echo
disp
disptext
Options:
Only A
Only B
A and B
C and D
Correct answer: 3
A and B
The print and echo functions are used to print text on the webpage.
16)以下哪些功能用于在網(wǎng)頁上打印文本?打印
回聲
顯示
散文
選項(xiàng):
只有一個(gè)
只有B
A和B
C和D
正確答案:3
A和B
打印和回顯功能用于在網(wǎng)頁上打印文本。
17) What is the correct output of the given code snippets in PHP? <?php$NUM1=5;$NUM2=10;$Sum =$NUM1 + $NUM2;print "Sum is: "+$Sum;?>Sum is: 15
Print '15' with a warning
Syntax error
None of the above
Correct answer: 2
Print '15' with a warning
The above code will print "15" with a warning.
17)PHP中給定代碼段的正確輸出是什么? <?php $NUM1 = 5 ; $NUM2 = 10 ; $Sum = $NUM1 + $NUM2 ; print "Sum is: " + $Sum ; ?>總和是:15
印有警告的'15'
語法錯誤
以上都不是
正確答案:2
印有警告的'15'
上面的代碼將顯示“ 15”并顯示警告。
18) What is the correct output of the given code snippets in PHP? <?php$NUM1=5;$NUM2=10;$Sum =$NUM1 + $NUM2;print 'Sum is: '.$Sum;?>Sum is: 15
Print '15' with a warning
Syntax error
None of the above
Correct answer: 1
Sum is: 15
The above code will print the 'Sum is: 15' on the webpage.
18)PHP中給定代碼段的正確輸出是什么?總和是:15
印有警告的'15'
語法錯誤
以上都不是
正確答案:1
總和是:15
上面的代碼將在網(wǎng)頁上打印“ Sum is:15”。
19) PHP is a case sensitive language for inbuilt functions?Yes
No
Correct answer: 2
No
No, PHP is not a case sensitive language for inbuilt functions.
19)PHP是內(nèi)置函數(shù)的區(qū)分大小寫的語言嗎?是
沒有
正確答案:2
沒有
不,對于內(nèi)置函數(shù),PHP不是區(qū)分大小寫的語言。
20) What is the correct output of the given code snippets in PHP? <?phpecho '<b>'.'Hello World'.'</b>'; ?>Print "<b>Hello World</b>" on the webpage.
Print "Hello World" in bold style on the webpage.
Print "Hello World" without bold style on the webpage.
None of the above
Correct answer: 2
Print "Hello World" in bold style on the webpage.
The above code will print "Hello World" in bold style on the webpage.
20)PHP中給定代碼段的正確輸出是什么?在網(wǎng)頁上打印“ <b> Hello World </ b>”。
在網(wǎng)頁上以粗體打印“ Hello World”。
在網(wǎng)頁上打印不帶粗體的“ Hello World”。
以上都不是
正確答案:2
在網(wǎng)頁上以粗體打印“ Hello World”。
上面的代碼將在網(wǎng)頁上以粗體顯示“ Hello World”。
21) Which of the following ways are used to comment a single line in PHP?# commented line
// commented line
'commented line
: commented line
Options:
Only A
Only B
A and B
C and D
Correct answer: 3
A and B
Options A and B are used to comment a single line in PHP code.
21)以下哪種方式在PHP中注釋了一行?#注釋行
//注釋行
'注釋行
:評論行
選項(xiàng):
只有一個(gè)
只有B
A和B
C和D
正確答案:3
A和B
選項(xiàng)A和B用于在PHP代碼中注釋一行。
22) What is the correct output of the given code snippets in PHP? <?php$NUM1=5;$NUM2=10;$Sum =$NUM1 /*5+10=15*/+ $NUM2;print "Sum is: ".$Sum;?>Sum is: 15
Print "15" with warning
Syntax error
None of the above
Correct answer: 1
Sum is: 15
The above code will print the "Sum is: 15" on the webpage.
22)PHP中給定代碼段的正確輸出是什么?總和是:15
打印“ 15”并顯示警告
語法錯誤
以上都不是
正確答案:1
總和是:15
上面的代碼將在網(wǎng)頁上打印“ Sum is:15”。
23) What is the correct output of the given code snippets in PHP? <?phpint $NUM1=5;int $NUM2=10;$Sum =$NUM1 /*5+10=15*/+ $NUM2;print "Sum is: ".$Sum;?>Sum is: 15
Print "15" with warning
Syntax error
None of the above
Correct answer: 3
Syntax error
The above code will generate a syntax error.
23)PHP中給定代碼段的正確輸出是什么?總和是:15
打印“ 15”并顯示警告
語法錯誤
以上都不是
正確答案:3
語法錯誤
上面的代碼將生成語法錯誤。
24) What is the correct output of the given code snippets in PHP? <?php$NUM1=5;$NUM2=10;$Sum =$NUM1 + $NUM2;print "Sum is: ".$sum;?>Sum is: 15
Syntax error
Sum is:
None of the above
Correct answer: 3
Sum is:
The above code will print "Sum is:" on the webpage because variable names are case-sensitive in PHP language.
24)PHP中給定代碼段的正確輸出是什么?總和是:15
語法錯誤
總和是:
以上都不是
正確答案:3
總和是:
上面的代碼將在網(wǎng)頁上顯示“ Sum is:”,因?yàn)樽兞棵Q在PHP語言中區(qū)分大小寫。
25) What is the correct output of the given code snippets in PHP? <?php$NUM1=5;$NUM2=10;$Sum =$NUM1 + $NUM2;print "Sum is: $Sum";?>Sum is: 15
Syntax error
Sum is:
None of the above
Correct answer: 1
Sum is: 15
The above code will print the "Sum is: 15" on the webpage.
25)PHP中給定代碼段的正確輸出是什么?總和是:15
語法錯誤
總和是:
以上都不是
正確答案:1
總和是:15
上面的代碼將在網(wǎng)頁上打印“ Sum is:15”。
26) Is it true the "echo" statement has no return value while "print" has return value?Yes
No
Correct answer: 1
Yes
Yes, the given statement is true.
26)“ echo”語句沒有返回值而“ print”具有返回值是真的嗎?是
沒有
正確答案:1
是
是的,給定的陳述是正確的。
翻譯自: https://www.includehelp.com/php/basics-aptitude-questions-and-answers.aspx
php開源問答
總結(jié)
以上是生活随笔為你收集整理的php开源问答_PHP基础知识能力问答的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在那 投稿
- 下一篇: array_push_PHP array