php開源問答
This section contains Aptitude Questions and Answers on PHP Basics.
本部分包含有關PHP基礎知識的 Aptitude問題和解答。
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.
PHP代表預處理器主頁。
PHP是一種腳本語言。
PHP是一種客戶端超文本語言。
PHP用于制作動態和交互式頁面。
選項:
A和C
B和D
A,B和C
A,B,C和D
正確答案:2
B和D
語句B和D關于PHP是正確的。
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".
預處理器主頁
個人主頁
超文本預處理器
預處理程序超文本頁面
選項:
A和B
A和C
B和C
C和D
正確答案:3
B和C
以前, PHP代表“個人主頁” ,現在被稱為“ 超文本預處理器” 。
Yes
No
Correct answer: 1
Yes
Yes, we can create a web-service in PHP.
是
沒有
正確答案:1
是
是的,我們可以使用PHP創建一個Web服務。
.php
.ph
.p
.phtml
Correct answer: 1
.php
The .php extension is used for PHP scripting files.
.php
.ph
.p
.phtml
正確答案:1
.php
.php擴展名用于PHP腳本文件。
Yes
No
Correct answer: 2
No
No, PHP is a scripting language so that we can generate an executable file.
是
沒有
正確答案:2
沒有
不,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.
CakePHP
FuelPHP
曾德
i
選項:
A和B
C和D
A,B和C
A,B,C和D
正確答案:4
A,B,C和D
所有給定的選項都是PHP中使用的流行框架。
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.
HTML代碼
Windows應用程序代碼
Java腳本代碼
PHP代碼
選項:
A和B
A,B和C
A,C和D
A,B,C和D
正確答案:3
A,C和D
一個PHP文件可以包含HTML,Java腳本和PHP代碼。
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.
創建動態網頁。
添加,刪除和修改數據庫中的數據。
數據加密和解密。
PHP可以發送和接收Cookie。
選項:
A和B
C和D
A,B和C
A,B,C和D
正確答案:4
A,B,C和D
所有給定的任務都可以由PHP代碼執行。
Yes
No
Correct answer: 1
Yes
Yes, PHP supports AJAX.
是
沒有
正確答案:1
是
是的,PHP支持AJAX。
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.
MAC OS X
視窗
的Linux
Unix系統
選項:
A和B
C和D
A,B和C
A,B,C和D
正確答案:4
A,B,C和D
所有給定的操作系統都可以運行PHP腳本。
Tomcat
IIS
Apache
Cassini
Correct answer: 3
Apache
The Apache web-server is used for PHP scripts.
Tomcat
IIS
阿帕奇
卡西尼號
正確答案:3
阿帕奇
Apache Web服務器用于PHP腳本。
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.
燈
WAMP
局域網
曼普
選項:
A和B
C和D
A,B和D
B,C和D
正確答案:3
A,B和D
LAMP , WAMP和MAMP軟件包用于安裝PHP和相關軟件。
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.
標記
MySQL
最
微軟
正確答案:2
MySQL
“ M”代表LAMP中的MySQL 。 LAMP是一個軟件包,用于在Linux操作系統上安裝PHP,MySQL。
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.
PHP
Python
Perl
上述所有的
正確答案:4
上述所有的
“ W”的完整形式可以是WAMP中的PHP , Python和Perl 。
Yes
No
Correct answer: 1
Yes
Yes, we can place the PHP script anywhere in the ".php" file.
是
沒有
正確答案:1
是
是的,我們可以將PHP腳本放置在“ .php”文件中的任何位置。
print
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.
打印
回聲
顯示
散文
選項:
只有一個
只有B
A和B
C和D
正確答案:3
A和B
打印和回顯功能用于在網頁上打印文本。
<?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.
<?php
$NUM1 = 5 ;
$NUM2 = 10 ;
$Sum = $NUM1 + $NUM2 ;
print "Sum is: " + $Sum ;
?>
總和是:15
印有警告的'15'
語法錯誤
以上都不是
正確答案:2
印有警告的'15'
上面的代碼將顯示“ 15”并顯示警告。
<?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.
總和是:15
印有警告的'15'
語法錯誤
以上都不是
正確答案:1
總和是:15
上面的代碼將在網頁上打印“ Sum is:15”。
Yes
No
Correct answer: 2
No
No, PHP is not a case sensitive language for inbuilt functions.
是
沒有
正確答案:2
沒有
不,對于內置函數,PHP不是區分大小寫的語言。
<?php
echo '<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.
在網頁上打印“ <b> Hello World </ b>”。
在網頁上以粗體打印“ Hello World”。
在網頁上打印不帶粗體的“ Hello World”。
以上都不是
正確答案:2
在網頁上以粗體打印“ Hello World”。
上面的代碼將在網頁上以粗體顯示“ Hello World”。
# 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.
#注釋行
//注釋行
'注釋行
:評論行
選項:
只有一個
只有B
A和B
C和D
正確答案:3
A和B
選項A和B用于在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.
總和是:15
打印“ 15”并顯示警告
語法錯誤
以上都不是
正確答案:1
總和是:15
上面的代碼將在網頁上打印“ Sum is:15”。
<?php
int $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.
總和是:15
打印“ 15”并顯示警告
語法錯誤
以上都不是
正確答案:3
語法錯誤
上面的代碼將生成語法錯誤。
<?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.
總和是:15
語法錯誤
總和是:
以上都不是
正確答案:3
總和是:
上面的代碼將在網頁上顯示“ Sum is:”,因為變量名稱在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.
總和是:15
語法錯誤
總和是:
以上都不是
正確答案:1
總和是:15
上面的代碼將在網頁上打印“ Sum is:15”。
Yes
No
Correct answer: 1
Yes
Yes, the given statement is true.
是
沒有
正確答案:1
是
是的,給定的陳述是正確的。
翻譯自: https://www.includehelp.com/php/basics-aptitude-questions-and-answers.aspx
php開源問答