php 初级信息系统小考
-
当需要引入 php 文件时,需要使用引入文件函数:______
A. require 或 < link rel=“stylesheet” href=“” >
B. include 或 < script type=“text/php” src=“” ></>
C. require 或 include
D. < link rel=“stylesheet” href=“” > 或
< script type=“text/php” src=“” > </> -
执行 sql 语句时,所得到的结果变量(例如 $result),应该使用什么来查看这个结果?
A. echo $ result;
B. print _r ($ result);
C. console.log($ result);
D. print($ result); -
当前该网址上的 url 地址,其中的“?no=211120248”,可以通过什么方式获得?
A. $_ GET[“no”]
B. $_POST[“no”]
C. $_ SESSION[“no”]
D. $_SERVER[“no”]
-
使用 header 函数跳转界面时,下列哪种是正确的?
A. header(“Localhost: index.php”);
B. header(Localhost: index.php);
C. header(Location: index.php)
D. header(“Location: index.php”); -
判断出以下唯一一条正确的 sql 语句
A. select * fromstuwherestu_no =‘211120234’
B. select * from stu WHERE stu_no=211120234
C. SELECT * form stu where stu_no=‘211120234’
D. select * from “stu” where ‘stu_no’= 211120234 -
以下哪一个是 input 单选框的代码?
A.< input type=“radio” >
B.< input type=“number” >
C.< input type=“button” >
D.< input type=“reset” > -
< form >表单中哪一个属性是设定提交方式 POST 和 GET 的?
A. action B. methods
C. style D. name -
如何让两个单选框绑定一起。(例如性别中,男,女二选一)
使用什么属性?
A. id B.class
C. name D.type -
如果想让表格里的内容设置垂直居中,以下哪个 css 属性是正确的?
A. text-align B.line-height
C. justify-content D.align-content -
根据下列数据库图片判断哪个 sql 语句能正确插入数据?
A.INSERT INTO stu(stu_no, stu_name, gender) VALUES (211120258,‘宋科’,‘未知’)
B.INSERT INTO stu(stu_no, stu_name, gender) VALUES (211120258,‘张桢钊’,‘男’)
C.INSERT INTO stu(‘stu_no’, ‘stu_name’, ‘gender’) VALUES(2111,‘卓奇’,‘男’)
D.INSERT INTO stu(stu_no, stu_name, gender) VALUES(2111,‘锐清师兄’,‘男’)