Week 4 > Software 1 Exercises > Problems


Q1: The CPU in the computer directly “runs” a sequence of what type of instruction?

Java Code
Machine Code - correct
C++ Code
Javascript Code

Q2: After a CPU runs an instruction, what does it most often do next?

Erases the instruction from RAM
Runs the previous instruction in the sequence of instructions
Runs the next instruction in the sequence of instructions - correct
Writes the instruction to disk

Q3: Suppose you double click Firefox.exe on a computer to run it. Which one of the following best describes what happens?

The operating system copies the instructions for Firefox from disk to RAM and then the CPU runs the instructions in RAM. - correct
The instructions for Firefox are translated into Javascript and then run by the browser.
The operating system copies the instructions for Firefox into RAM and then the RAM runs the instructions.
The operating system copies the instructions for Firefox from RAM to disk and then deletes the copy in RAM.


Week 4 > Software 2 Exercises > Problems


Q1: Which one of the following best describe what a C++ compiler does?

Translates machine code into Javascript code.
Translates C++ source code into Javascript code.
Translates machine code into C++ code.
Translates C++ source code into machine code. - correct

Q2: The CPU’s machine code has only simple, low-level instructions. A computer language (such as Javascript) adds high-level features, such as the for-loop we have used. Which one of the following is a low-level instruction?

Loop over all the pixels in in image.
Append two strings together.
Print a string to the screen.
Add two numbers together. - correct

Q3: Firefox is an open source program, so anyone can get access to the source code. Which one of the following is something that is possible because Firefox is open source?

Someone can run Firefox and note with a stopwatch about how quickly it can draw different web pages.
Anyone is free to run the compiler to produce and distribute their own version of Firefox.exe. - correct
Someone can double click Firefox.exe to run it on their computer.
A $5 fee is required to use Firefox.


Week 4 > Computer Network Exercises > Problems


Q1: Suppose a computer wants to send a packet on ethernet, as shown in lecture. The computer first waits for what?

Waits for its scheduled time in the predetermined transmission schedule.
Waits for the recipient computer to signal that it is ready.
Waits for the central ethernet controller to signal that transmission is now permitted.
Waits for the ethernet wire to be quiet. Waits for the ethernet wire to be quiet. - correct

Q2: Suppose we are using the same checksum scheme as in lecture: add up all the bytes, and take just the last two digits of the sum. What is the checksum of the following bytes: 101, 202, 103, 100, 210, 120

36

Q3: What is the purpose of a packet checksum?

Duplicate bytes to RAM to speed up the sending process on ethernet.
Compress sent bytes so they take up less space.
Encrypt bytes on the wire so they cannot be read by others.
Allow the recipient to detect if bytes received were corrupted in transit. - correct


Week 4 > Network 2 Exercises > Problems


Q1: Which one of the following is not a valid IP address?

42.257.99.11 - correct
11.250.3.4
45.67.212.100
1.2.3.4

Q2:Which one of the following is generally not true about routers?

Routers get packets from computers, forward them on
Routers check the central internet-map which shows routes for all packets - correct
Routers continuously monitor the status of their connections
Routers forward each packet one hop closer to its final destination

Q3: What does ping do?

Sends a “who is there” packet, getting back a detailed description of the recipient
Notifies the local router that the computer does not want any more packets
Notifies the local router that the computer wants more packets
Sends a “are you there” packet to a computer, getting back a “yes” packet - correct


Week 4 > Table Data Exercises > Problems


Q1: Write code to print the row for the name “Atticus”.

table = new SimpleTable("baby-2010.csv");
for (row: table) {// your code hereif (row.getField("name") == "Atticus") {print(row);}
}

Q2: Write code to print the rows for the name “River”. In this case, there are two such rows, but the same basic code pattern as for question 1 works. This shows how the loop really is just testing every row.

table = new SimpleTable("baby-2010.csv");
for (row: table) {// your code hereif (row.getField("name") == "River") {print(row);}
}

Q3: Write code to print the rows where the rank is less than (<) 10, i.e. ranks 1 through 9.

table = new SimpleTable("baby-2010.csv");
for (row: table) {// your code hereif (row.getField("rank")<10) {print(row);}
}

Q4: Write code to print the rows where the rank is greater than 950.

table = new SimpleTable("baby-2010.csv");
for (row: table) {// your code hereif (row.getField("rank")>950) {print(row);}
}

计算机专外Week4-Exercises相关推荐

  1. 2019年北京理工大学计算机专硕上岸经验分享

    2019年北京理工大学计算机专硕上岸经验分享 上午十一点出的名单,终于放下心了.静下心来记录下经验.希望能帮到学弟学妹们. 先贴两个比较重要的链接: 北京理工大学复试上机题汇总 历年北京理工大学复试专 ...

  2. 战至终章--22华科计算机专硕上岸经验贴

    战至终章--22华科计算机专硕上岸经验贴 说在前面 数学 英语 政治 专业课 写在最后 说在前面 破釜沉舟,百万秦关终属楚.卧薪尝胆,三千越甲可吞吴.矫情的话就不多说了,本贴旨在记录笔者成长的痕迹,并 ...

  3. 上海大学计算机测试补考,16年上海大学计算机专硕经验总结

    16年上海大学计算机专硕经验总结 上海大学 发布于2019年9月24日 02:11 阅读数 3748 很高兴大家报考上海大学计算机工程与技术学院. 先说说今年的录取情况.复试比例,学硕1:1.3,专硕 ...

  4. 暨南大学计算机专硕考英语一,19级暨南大学计算机考研经验分享帖(非常详细)...

    得知被录取已经过了几天,这几天和基友和喜欢的妹子嗨疯了 ,现在才静下来,坐在图书馆,回忆过去,展望未来,希望将一些心得经验分享给学弟学妹,也算回馈论坛和一种传承吧.先报一下初试和复试的分数吧(学长考的 ...

  5. 暨南大学计算机专硕考英语一,19级暨南大学计算机考研经验分享贴(非常详细)...

    得知被录取已经过了几天,这几天和基友和喜欢的妹子嗨疯了[调皮],现在才静下来,坐在图书馆,回忆过去,展望未来,希望将一些心得经验分享给学弟学妹,也算回馈论坛和一种传承吧.先报一下初试和复试的分数吧(学 ...

  6. 2021北京交通大学计算机专硕复试经验分享

    2021北京交通大学计算机专硕复试经验分享 一.复试科目 二.复试环节 三.复试问题 1.英语口语环节 2.编程语言环节 3.专业课基础环节 4.综合面试环节 一.复试科目 我报考的专业是085400 ...

  7. 21跨考中南大学计算机专硕高分上岸经验贴

    21跨考中南大学计算机专硕上岸经验贴 预备知识 关于学硕和专硕 学硕比较偏向科研,专硕比较偏向应用,一般学硕有推荐读博的机会,而专硕基本要考博,所以想科研推荐考学硕,想毕业直接工作推荐考专硕.不过中南 ...

  8. 2023考研一战浙大计算机专硕总分第15名经验贴

    写在开头 2023年2月21日下午两点,终于出分了. ​考后保守估分390,任何人问起一律回答380,真心怕曾是"玩命极旱区"的浙江压我一手,可事实出分逆推回去也算是应给尽给了,甚 ...

  9. 兰州大学考研复试计算机专硕经验帖

    距离兰大23年复试已经过了将近两个月,本人成功上岸23年兰大计算机专硕,在此写一些复试流程以及一些注意点,以供学弟学妹参考. 本人本科就读于江苏某211,毕业后参加了工作,后辞职参加23年考研,初试成 ...

  10. 2023|吉大计算机专硕|分数:403|双非一战上岸

    昨天复试结果出来了,由于初试发挥的不错,在复试表现得虽然并不是很好,但是最后还是比较稳的上岸了.在这里分享一下自己的考研经历和经验吧. 初试分数 前期准备 自己考研的话,应该在2022年三月份左右准备 ...

最新文章

  1. C++ 函数参数 值传递与引用传递
  2. Calc3: Multiple Integrals
  3. windows+VS2017+opencv4.1.0环境配置
  4. hdu1466 计算直线的交点数
  5. mysql语句的执行顺序_SQL语句完整的执行顺序(02)
  6. python 标准化_数据标准化
  7. VC++和VC++.NET中与图像处理有关的几个概念、结构和类
  8. php中的CURL库
  9. 线路板铜厚测试软件,厚铜线路板的铜厚是如何实现的
  10. python框架实例,从零构建一个简单的 Python 框架
  11. 1028: [JSOI2007]麻将 - BZOJ
  12. L3G4200D + ADXL345 卡尔曼滤波
  13. [Linux系统编程/网络编程] 笔记目录
  14. 力扣刷题:求树的最大高度,树的最小高度,与判断平衡二叉树
  15. 英语流利说 第39天
  16. linux磁盘列阵和文件系统
  17. 小程序管理新闻资讯分类-微信小程序视频教程27
  18. C语言中调用数组元素的三种方法:下标法、数组名法、指针法
  19. 关于云音乐数据治理的实践与思考
  20. 在开发者选项里开启gpu渲染后,能不能关闭应用的硬件加速???

热门文章

  1. 熬了几个大夜,我学完了一套目标检测、卷积神经网络和OpenCV学习教程
  2. 【51毕业设计案例】【011】大棚补光系统设计-基于51单片机
  3. 【元胞自动机】元胞自动机模拟森林救火【含GUI Matlab源码 2938期】
  4. 正则将小写替换为大写
  5. ★补丁汇总及FLASH资料专题(04/08/21更新)
  6. 解决Jupyter Notebook 切换环境后内核正在启动(但迟迟没有启动)
  7. 诺基亚CEO史蒂芬·埃洛普摔iPhone
  8. 阳黎盛:4.3小非农隆重登场,降损共赢新旅程!
  9. Stack Canary
  10. 基因数据处理的Pipeline框架