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:
Correct answer: 2
B and D
Statements B and D are correct about PHP.
PHP代表预处理器主页。
PHP是一种脚本语言。
PHP是一种客户端超文本语言。
PHP用于制作动态和交互式页面。
选项:
正确答案:2
B和D
语句B和D关于PHP是正确的。
Preprocessor Home Page
Personal Home Page
Hypertext Preprocessor
Preprocessor Hypertext Page
Options:
Correct answer: 3
B and C
Previously PHP stands for "Personal Home Page" and now, it is called "Hypertext Preprocessor".
预处理器主页
个人主页
超文本预处理器
预处理程序超文本页面
选项:
正确答案:3
B和C
以前, PHP代表“个人主页” ,现在被称为“ 超文本预处理器” 。
Correct answer: 1
Yes
Yes, we can create a web-service in PHP.
Correct answer: 1
.php
The .php extension is used for PHP scripting files.
Correct answer: 2
No
No, PHP is a scripting language so that we can generate an executable file.
CakePHP
FuelPHP
Zend
Yii
Options:
Correct answer: 4
A, B, C, and D
All given options are popular frameworks used in PHP.
CakePHP
FuelPHP
曾德
i
选项:
正确答案:4
A,B,C和D
所有给定的选项都是PHP中使用的流行框架。
HTML code
Windows Application code
Java-script code
PHP code
Options:
Correct answer: 3
A, C, and D
A PHP file can contain HTML, Java-script, and PHP code.
HTML代码
Windows应用程序代码
Java脚本代码
PHP代码
选项:
正确答案: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:
Correct answer: 4
A, B, C, and D
All given tasks can be performed by the PHP code.
创建动态网页。
添加,删除和修改数据库中的数据。
数据加密和解密。
PHP可以发送和接收Cookie。
选项:
正确答案:4
A,B,C和D
所有给定的任务都可以由PHP代码执行。
MAC OS X
Windows
Linux
Unix
Options:
Correct answer: 4
A, B, C, and D
All given operating systems can run PHP scripts.
MAC OS X
视窗
的Linux
Unix系统
选项:
正确答案:4
A,B,C和D
所有给定的操作系统都可以运行PHP脚本。
Correct answer: 3
Apache
The Apache web-server is used for PHP scripts.
LAMP
WAMP
LANP
MAMP
Options:
Correct answer: 3
A, B, and D
The LAMP, WAMP, and MAMP software bundle are used for installing PHP and related software.
灯
WAMP
局域网
曼普
选项:
正确答案:3
A,B和D
LAMP , WAMP和MAMP软件包用于安装PHP和相关软件。
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.
正确答案:2
MySQL
“ M”代表LAMP中的MySQL 。 LAMP是一个软件包,用于在Linux操作系统上安装PHP,MySQL。
Correct answer: 4
All of the above
The full form of "P" can be PHP, Python, and Perl in the WAMP.
正确答案:4
上述所有的
“ W”的完整形式可以是WAMP中的PHP , Python和Perl 。
Correct answer: 1
Yes
Yes, we can place the PHP script anywhere in the ".php" file.
print
echo
disp
disptext
Options:
Correct answer: 3
A and B
The print and echo functions are used to print text on the webpage.
<?php
$NUM1=5;
$NUM2=10;
$Sum =$NUM1 + $NUM2;
print "Sum is: "+$Sum;
?>
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 ;
?>
正确答案:2
印有警告的'15'
上面的代码将显示“ 15”并显示警告。
<?php
$NUM1=5;
$NUM2=10;
$Sum =$NUM1 + $NUM2;
print 'Sum is: '.$Sum;
?>
Correct answer: 1
Sum is: 15
The above code will print the 'Sum is: 15' on the webpage.
Correct answer: 2
No
No, PHP is not a case sensitive language for inbuilt functions.
<?php
echo '<b>'.'Hello World'.'</b>';
?>
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.
正确答案:2
在网页上以粗体打印“ Hello World”。
上面的代码将在网页上以粗体显示“ Hello World”。
# commented line
// commented line
'commented line
: commented line
Options:
Correct answer: 3
A and B
Options A and B are used to comment a single line in PHP code.
<?php
$NUM1=5;
$NUM2=10;
$Sum =$NUM1 /*5+10=15*/+ $NUM2;
print "Sum is: ".$Sum;
?>
Correct answer: 1
Sum is: 15
The above code will print the "Sum is: 15" on the webpage.
<?php
int $NUM1=5;
int $NUM2=10;
$Sum =$NUM1 /*5+10=15*/+ $NUM2;
print "Sum is: ".$Sum;
?>
Correct answer: 3
Syntax error
The above code will generate a syntax error.
<?php
$NUM1=5;
$NUM2=10;
$Sum =$NUM1 + $NUM2;
print "Sum is: ".$sum;
?>
Correct answer: 3
Sum is:
The above code will print "Sum is:" on the webpage because variable names are case-sensitive in PHP language.
正确答案:3
总和是:
上面的代码将在网页上显示“ Sum is:”,因为变量名称在PHP语言中区分大小写。
<?php
$NUM1=5;
$NUM2=10;
$Sum =$NUM1 + $NUM2;
print "Sum is: $Sum";
?>
Correct answer: 1
Sum is: 15
The above code will print the "Sum is: 15" on the webpage.
Correct answer: 1
Yes
Yes, the given statement is true.
翻译自: https://www.includehelp.com/php/basics-aptitude-questions-and-answers.aspx
php开源问答