php基础知识测验一练习题——迹忆客-ag捕鱼王app官网

题库 > php >

php基础知识测验一

1.
(单选题)php: 指的是什么
  • private home page
  • hypertext markup language
  • php: hypertext preprocessor
  • hypertext transfer protocol
2.
(单选题)php 服务器脚本由哪个分隔符包围?
  • ...
  • <&>...
3.
(多选题)如何使用 php 输出 “hello world”?
  • echo "hello world";
  • print "hello world";
  • "hello world";
  • document.write("hello world");
4.
(单选题)php变量是以什么字符开头
  • !
  • $
  • &
  • @
5.
(单选题)结束 php 语句的正确方法是?
  • new line
  • ;
  • .
6.
(单选题)php语法和下面哪种语言比较相似
  • perl 和 c
  • vbscript
  • javascript
7.
(单选题)如何从使用get方法提交的表单中获取数据
  • request.form
  • $_get[]
  • request.querystring
8.
(单选题)如何从使用post方法提交的表单中获取数据
  • request.form
  • request.querystring
  • $_post[]
9.
(单选题)请判断以下说法是否正确:**当使用 post 方法时,变量显示在 url 中**。
  • 正确
  • 错误
10.
(单选题)请判断以下说法是否正确:在 php 中,既可以使用单引号 (' ') 也可以使用双引号 (" ") 来包围字符串。
  • 正确
  • 错误
11.
(单选题)在 php 中创建函数的正确方法是?
  • function myfunction()
  • create myfunction()
  • new_function myfunction()
12.
(单选题)请判断以下说法是否正确:**包含文件必须使用文件后缀 ".inc"**。
  • 正确
  • 错误
13.
(单选题)引用文件 "jiyik.inc" 的正确方法是?
  • <% include file="jiyik.inc" %>
14.
(单选题)以只读模式打开文件 “jiyik.txt” 的正确方法是?
  • fopen("jiyik.txt","r");
  • fopen("jiyik.txt","r ");
  • open("jiyik.txt");
  • open("jiyik.txt","read");
扫码一下
查看教程更方便
网站地图