php 初级信息系统小考

php 初级信息系统小考

  1. 当需要引入 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=“” > </>

  2. 执行 sql 语句时,所得到的结果变量(例如 $result),应该使用什么来查看这个结果?

    A. echo $ result;
    B. print _r ($ result);
    C. console.log($ result);
    D. print($ result);

  3. 当前该网址上的 url 地址,其中的“?no=211120248”,可以通过什么方式获得?

在这里插入图片描述
A. $_ GET[“no”]

B. $_POST[“no”]

C. $_ SESSION[“no”]

D. $_SERVER[“no”]

  1. 使用 header 函数跳转界面时,下列哪种是正确的?
    A. header(“Localhost: index.php”);
    B. header(Localhost: index.php);
    C. header(Location: index.php)
    D. header(“Location: index.php”);

  2. 判断出以下唯一一条正确的 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

  3. 以下哪一个是 input 单选框的代码?
    A.< input type=“radio” >
    B.< input type=“number” >
    C.< input type=“button” >
    D.< input type=“reset” >

  4. < form >表单中哪一个属性是设定提交方式 POST 和 GET 的?
    A. action B. methods
    C. style D. name

  5. 如何让两个单选框绑定一起。(例如性别中,男,女二选一)
    使用什么属性?
    A. id B.class
    C. name D.type

  6. 如果想让表格里的内容设置垂直居中,以下哪个 css 属性是正确的?
    A. text-align B.line-height
    C. justify-content D.align-content

  7. 根据下列数据库图片判断哪个 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,‘锐清师兄’,‘男’)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值