当前位置: 高中信息技术 / 综合题
  • 1. (2023高二下·丽水期末) 小明搭建了室内温度监测信息系统,该系统结构示意图如图 a 所示。Web 服务 器端程序采用Flask Web 框架开发。请回答下列问题:

    图 a

    1. (1) 小明想利用智能终端结合温度传感器,实时监测室内温度变化情况,这一过程属于搭建信息系统前期准备中的 (单选,填字母:A .需求分析 / B .可行性 分析 / C .详细设计) 。
    2. (2) 图 a 中①处应填入(单选,填字母:A .路由器 /B .防火墙 /C .数据库)。

      图 b

    3. (3) 该系统网站功能页面规划如图b 所示,智能终端的部分代码如下,从代码中 可以看出,连接温度传感器的引脚是,连接执行器的引脚是

      while True:

          temp=round((pin1.read_analog ()/1024)*3000/10.24,1)

          errno,resp=Obloq.get("input?id=1&val="+str(temp),10000)

          if errno == 200 :

              display.show (str(resp))

              if resp =="1" :

                  pin8.write_digital(1)

              else:

                  pin8.write_digital(0)

          else:

              display.show (str(errno))

              sleep(1000*5)

    4. (4) 若传感器的编号id为1,温度val值为30,提交数据到服务器的URL为
    5. (5) 从数据库中获取了最近100次传感器采集到的温度数据,按时间先后顺序依次存储在列表a中,要计算最近十次的平均温度(sum的初值均为0,温度数据均正常),下列Python程序段符合要求的有             (多选,填字母) 。
      A . for i in range(10):

          sum+=a[i]

      ave=sum/10

      B . for i in a[-10:] :

          sum+=i

      ave=sum/10

      C . i=90

      while i<=99 :

          sum+=a[i]

          i+=1

      ave=sum/10

      D . i=-1

      while i>=-10 :

          sum+=a[i]

      ave=sum/10

微信扫码预览、分享更方便