当前位置:网站首页>7.19 - 每日一题 - 408
7.19 - 每日一题 - 408
2022-07-20 13:52:00 【yanlei233】
每日一句:任何的限制,都是从自己内心开始的。
数据结构
下列说法正确的是_______(中国农业大学 2015)
A.分配给单链表的内存单元地址必须是连续的。
B.与顺序表相比,在链表中顺序访问所有节点,其算法的效率比较低。
C.从长度为n的顺序表中删除任何一个元素,时间复杂度都是O(1)。
D.向顺序表中插人一个元素,平均要移动大约一半的元素。
答案:D
解析:A错误。分配给单链表的内存单元地址可以是不连续的。B错误。在顺序表和链表上顺序访问所有节点,时间复杂度均为O(n)。C错误。删除最后一个元素所需时间是O(1)。但从长度为n的顺序表中删除任一个元素,平均时间复杂度是O(n)。
计算机网络
2.长度为100字节的应用层数据交给传输层传送,需加20字节的TCP首部。再交给网络层传送,需加上20字节的IP首部。最后交给数据链路层的以太网传送,再加上首部和尾部共18字节。数据的传输效率是________(中国人民大学 2019)
A.63.3%
B.72.5%
C.56.2%
D.71.4%
答案:A
解析:数据长度100字节的数据传输效率:100/(100+20+20+18)=63.3%
拓展:
数据的传输效率是指发送的应用层数据和所发送的总数据(即应用层数据加上各种首部和尾部的额外开销)之间的比值。
计算公式
本层的传输效率=上层传送下来的数据/本层向下层传送的数据
数据传输效率=应用层数据总量/最底层发送数据总量。
操作系统
3.下面叙述正确的是________。(中科院 2015)
A. 中断服务程序的后一条指令是无条件转移指令
B. 中断响应过程是由硬件和中断服务程序共同完成的
C. 在每条指令执行过程中,每个总线周期都要检查一次有无中断请求
D. 检测有无DMA请求,通常安排在一条指令执行过程的末尾
答案:B
解析:中断服务程序的后一条指令是中断返回指令,A错误.每条指令执行完后检查中断请求,C错误。DMA请求的响应可以发生在每个机器周期的结束时,D错误。
计算机组成原理
4.字长12位,用定点补码规格化小数表示时,所能表示的正数范围是_______(西安交通大学 2018)
答案:C
解析:字长12位,定点补码规格化小数表示时,所能表示的最小正数是0.10000000000,即1/2;所能表示的最大正数是0.11111111111,即(1-2^(-11))。
拓展:
当前所有题目均来自@王道在线公众号,其中对部分题目解析进行了补充说明,
如有问题或错漏烦请评论告知,感谢支持
边栏推荐
- ICML2022奖项公布:15篇杰出论文,复旦、厦大、上交大研究入选
- 暑假打工 2 个月,让我明白了 Keepalived 高可用的三种路由方案
- uniapp中调用相机相册/上传/扫码整理
- App automated test -4 App control interaction
- II Uni app page foundation [new file specification, page life cycle]
- Fraud detection using CSP
- 安装 scoop和lux (原annie)
- Redis - detailed explanation of redis cli management tool
- Judge whether view slides in or out of the visible area of the screen
- This ide plug-in 3.0 makes you the most security aware programmer in the company
猜你喜欢
7天交付沈阳方舱医院项目,这就是鸿雁速度
An application example of backtracking method -- prime number ring problem
Netease game Flink SQL platform practice
Scala advanced (VII): collection content summary (Part 1)
关于let变量提升的问题
Scala 高阶(七):集合内容汇总(上篇)
乐扣乐扣澄清欠税事件:不存在欠税,将一如既往合规经营
Parsing JPEG decoding format
Window进入别的目录
Netease strictly selected, implemented with uni app, including background data files
随机推荐
Netease game Flink SQL platform practice
ICML 2022 | to solve the inherent defects of CNN, ccnn realizes multiple SOTAS with a single architecture
斯坦福、Meta AI新研究:实现AGI之路,数据剪枝比我们想象得更重要
使用 CSP进行欺诈检测
关于let变量提升的问题
View disk space usage
Scala 高阶(七):集合内容汇总(上篇)
面试题
六.uniapp[闪屏页加载方式、闪屏页设置]
[wechat applet] slider sliding selector (82/100)
自己整理一些散的知识点
Clip based pornographic image recognition; The latest ml course collection of tubing; Write shell pipes interactively; Incremental perception data set of robot warehouse environment; Latest AI paper |
暑假打工 2 个月,让我明白了 Keepalived 高可用的三种路由方案
How to solve the RSA public key not find problem in Navicat
Judge whether view slides in or out of the visible area of the screen
网易游戏 Flink SQL 平台化实践
App automated test -1 Appium installation and configuration
Practice upgrade! Chuangyu security trusteeship helps you solve the problem of directional blasting defense
Matlab point cloud roughness calculation
Taobao / tmall get the description of the return value of Taobao live broadcast classification ID interface API