← 返回资讯屏轩教育 · 行业资讯

Year 9 OCR Computing: Unit Test Walkthrough & Answers | Year 9 OCR 计算机单元测试模拟卷解析

2026-07-18 12:43 · 本文部分内容由AI辅助创作

📚 Year 9 OCR Computing: Unit Test Walkthrough & Answers | Year 9 OCR 计算机单元测试模拟卷解析

Welcome to this comprehensive walkthrough of a typical Year 9 OCR Computing unit test. This resource unpacks each question type you are likely to encounter, explains the underlying concepts, and demonstrates the step-by-step solutions. Use it to identify gaps in your knowledge, reinforce your understanding of binary, hardware, logic, programming, and networks, and build confidence ahead of your assessment. Remember that OCR assessment objectives focus on knowledge, application, and computational thinking, so practising with model answers is one of the most effective revision techniques available to you.

欢迎阅读这份典型的 Year 9 OCR 计算机单元测试详细解析。本文梳理了考试中常见的题目类型,解释了背后的概念,并展示了分步求解过程。你可以用它来发现知识漏洞,巩固二进制、硬件、逻辑、编程和网络等领域的理解,并在评估前建立信心。请记住,OCR 的考核目标侧重于知识、应用和计算思维,因此使用模拟答案进行练习是最有效的复习方法之一。


1. Binary to Denary Conversion | 二进制转十进制

Question style: "Convert the binary number 11010110 into denary." ply each column and sum the results. For 11010110, the active columns are 128, 64, 16, 4, and 2. Adding these gives 128+64+16+4+2 = 214. Therefore, the denary equivalent is 214. Always double-check your addition and ensure you correctly align the bits; a common mistake is to misalign the place values for 8-bit binary numbers.

典型题目:"将二进制数 11010110 转换为十进制。" 首先画一个从右向左依次为 128、64、32、16、8、4、2、1 的位值表。在对应位置填入二进制数字。将每一列乘积相加。对于 11010110,有效的列为 128、64、16、4 和 2。相加得 128+64+16+4+2 = 214。因此,十进制等值为 214。务必检查加法是否正确,并确保位对齐;常见错误是 8 位二进制数的位值没有对齐。


2. Denary to Binary Conversion | 十进制转二进制

(1 under 128), 45 - 32 = 13 (1 under 32), 13 - 8 = 5 (1 under 8), 5 - 4 = 1 (1 under 4), 1 - 2 cannot (0 under 2), 1 - 1 = 0 (1 under 1). The bits are 1,0,1,0,1,1,0,1 giving 10101101. When using the division method, read the remainders upwards. Always present your answer as an 8-bit binary string, adding leading zeros if needed. Denary 173 is therefore 10101101 in binary.

将 173 转换为 8 位二进制数。可使用连续除以 2 取余法或位值相减法。相减法:173 - 128 = 45(128 下写 1),45 - 32 = 13(32 下写 1),13 - 8 = 5(8 下写 1),5 - 4 = 1(4 下写 1),1 - 2 不能(2 下写 0),1 - 1 = 0(1 下写 1)。得到的位依次为 1,0,1,0,1,1,0,1,即 10101101。使用除法时从下往上读取余数。答案应按 8 位二进制字符串给出,必要时前面补零。故十进制 173 的二进制为 10101101。


3. Hexadecimal and Binary Shorthand | 十六进制与二进制简写

F is 15 which is 1111. Combine as 00111111, or simply 111111. You may also see questions like "Why do programmers use hexadecimal?" erfectly. Practice converting common values: A=1010, B=1011, C=1100, D=1101, E=1110, F=1111.

题目经常要求实现十六进制与二进制之间的转换。将十六进制 3F 转为二进制。拆分为半个字节:3 和 F。3 的二进制是 0011,F 是 15 即 1111。组合为 00111111,或简写为 111111。还可能出现类似"程序员为何使用十六进制?"的问题。因为它更短、阅读长二进制串时不易出错,并且容易映射到内存地址。另外,两个十六进制数恰好表示一个字节。请练习常见值:A=1010, B=1011, C=1100, D=1101, E=1110, F=1111。


4. Logic Gates and Truth Tables | 逻辑门与真值表

You might be presented with a circuit containing AND, OR, and NOT gates and asked to complete its truth table. Remember the rules: AND outputs 1 only if both inputs are 1; OR outputs 0 only if both inputs are 0; NOT inverts the input. For a circuit with inputs A and B feeding into an AND gate whose output goes to a NOT gate, write the output column as NOT (A AND B). Complete the table systematically row by row. A typical truth table for A AND B followed by NOT would be:

ABA AND BNOT (A AND B)
0001
0101
1001
1110

中文:你可能会看到一个包含与门、或门和非门的电路,并要求完成其真值表。记住规则:与门仅在两个输入都为 1 时输出 1;或门仅在两个输入都为 0 时输出 0;非门对输入取反。对于 A 和 B 输入到与门、其输出再经过非门的电路,输出列应写为 NOT (A AND B)。逐行系统地完成表格。典型真值表如上所示。务必小心处理复合逻辑的运算顺序。


5. CPU and the Fetch-Decode-Execute Cycle | CPU 与取指-译码-执行周期

Questions on computer architecture ask you to identify components like the ALU, Control Unit, registers, and cache. Explain the fetch-decode-execute cycle: The Control Unit fetches the next instruction from RAM, places it in the Instruction Register. It decodes the instruction to determine what operation is needed. The ALU then executes the instruction, which may involve arithmetic or logic operations. The result is stored in a register or memory. The Program Counter holds the address of the next instruction and increments after fetching. Understanding this cycle is essential for describing how a CPU processes data.

有关计算机体系结构的问题会要求你识别算术逻辑单元、控制单元、寄存器和缓存等组件。解释取指-译码-执行周期:控制单元从内存中取出下一条指令,放入指令寄存器;它译码指令以确定需要什么操作;然后算术逻辑单元执行该指令,这可能涉及算术或逻辑运算;结果存入寄存器或内存。程序计数器保存下一条指令的地址,并在取指后递增。理解该周期对于描述 CPU 如何处理数据至关重要。


6. Input, Output, and Storage Devices | 输入、输出与存储设备

Classify the following: touchscreen, projector, SSD, barcode scanner. A touchscreen is both an input and output device; a projector is output; SSD is secondary storage; barcode scanner is input. Be ready to justify why a device falls into a particular category. For example, a hard disk drive stores data permanently even when power is off, so it is secondary storage. RAM is volatile primary memory used for temporary data while programs are running. Optical discs, magnetic tapes, and cloud storage are also examples of storage media. You may be asked to recommend a storage medium for a given scenario based on capacity, speed, portability, durability, and cost.

对以下设备进行分类:触摸屏、投影仪、固态硬盘、条码扫描器。触摸屏既是输入设备也是输出设备;投影仪是输出设备;固态硬盘是辅助存储器;条码扫描器是输入设备。准备好说明设备为何属于特定类别。例如,硬盘驱动器即使在电源关闭时也能永久存储数据,因此是辅助存储器。RAM 是易失性主存储器,用于程序运行时临时存放数据。光盘、磁带和云存储也是存储介质的示例。你可能会被要求根据容量、速度、便携性、耐用性和成本为特定场景推荐存储介质。


广告 / Sponsored

7. Networks, LAN vs WAN, and Topologies | 网络、局域网与广域网及拓扑

Describe the difference between a LAN and a WAN. A LAN covers a small geographical area and uses privately owned infrastructure; a WAN spans large distances and often uses leased telecommunications lines. Common topologies are star, bus, ring, and mesh. In a star topology, all devices connect to a central switch, making it easy to troubleshoot but creating a single point of failure if the switch fails. Bus topology uses a single backbone cable; it's cheap but difficult to maintain and has performance issues with many devices. You may also explain how data is transmitted in packets and the role of protocols such as TCP/IP. A typical exam question provides a network diagram and asks you to identify the topology and propose improvements.

描述局域网和广域网的区别。局域网覆盖较小的地理区域,使用私有基础设施;广域网跨越长距离,通常租用电信线路。常见拓扑有星型、总线型、环型和网状。在星型拓扑中,所有设备都连接到中央交换机,易于排查故障,但交换机故障会成为单点故障。总线拓扑使用单一主干电缆;价格低廉但维护困难,设备较多时性能会受影响。你还可能解释数据如何以数据包形式传输,以及 TCP/IP 等协议的作用。典型的考题会给出网络拓扑图,要求你识别拓扑并提出改进建议。


8. Variables, Data Types, and Assignment | 变量、数据类型与赋值

u could be given a short snippet of pseudocode or Python and asked to trace the values. Example: age = 14 (integer); name = "Ada" In Python, use type() to check data types. Understand that mixing types incorrectly (e.g., "5" type conversion using int(), str() is often required. Also, variables are case-sensitive: 'Score' and 'score' are different.

在编程中,变量是一个命名的内存位置,用于存储值。常见数据类型包括整数、浮点数(实数)、字符串和布尔型。你可能会看到一小段伪代码或 Python 代码,要求追踪变量的值。例如:age = 14(整数);name = "Ada"(字符串);passed = True(布尔型)。赋值运算符 (=) 将右侧的值复制到左侧的变量中。在 Python 中,使用 type() 检查数据类型。需注意不正确的类型混合(如 "5" + 3)会引发错误;常需使用 int()、str() 进行显式类型转换。此外,变量区分大小写:'Score' 和 'score' 是不同的。


9. Flowcharts and Algorithm Design | 流程图与算法设计

diamond for decision. You could be asked to draw a flowchart for a given problem, such as: "Input a number, add 5, and output the result if it is greater than 10." : oval (Start), parallelogram (INPUT num), rectangle (num = num + 5), diamond (Is num > 10? cing a flowchart involves manually following the steps with sample data to determine the output. This tests your logical thinking and ability to follow a sequence of instructions.

流程图使用标准符号:椭圆形表示开始/结束,矩形表示处理过程,平行四边形表示输入/输出,菱形表示决策。你可能会被要求为给定的问题绘制流程图,例如:"输入一个数字,加 5,如果结果大于 10 则输出。" 步骤为:椭圆(开始),平行四边形(输入 num),矩形(num = num + 5),菱形(num > 10?),若是,平行四边形(输出 num),若否,流程结束。菱形有两条分支,分别标注是/否。始终用箭头表示方向。追踪流程图指手动使用样本数据沿步骤运行,以确定输出结果,这测试你的逻辑思维和遵循指令序列的能力。


10. Searching and Sorting Algorithms | 查找与排序算法

Two key searching algorithms are linear search and binary search. Linear search checks each item one by one; it works on unsorted lists but is slow for large datasets. Binary search requires a sorted list. It repeatedly divides the search interval in half. Compare the middle item; if it matches, stop; if the target is smaller, search the left half; otherwise, search the right half. This gives a logarithmic time complexity. Sorting algorithms such as bubble sort compare adjacent items and swap them if they are in the wrong order, repeating until no swaps are needed. Insertion sort builds the sorted list one element at a time. Exam questions may ask you to trace an algorithm and show the list after each pass, or to identify which algorithm is being described.

两种关键的查找算法是线性查找和二分查找。线性查找逐个检查每个项目;它适用于未排序列表,但对大数据集速度较慢。二分查找要求列表已排序。它反复将查找区间分成两半。比较中间项;若匹配则停止;若目标更小,搜索左半部分,否则搜索右半部分。这具有对数时间复杂度。排序算法如冒泡排序比较相邻项,若顺序错误则交换,重复直到不需要交换为止。插入排序一次构建一个元素的已排序列表。考试题目可能会要求你追踪算法,展示每趟之后的列表,或识别所描述的算法。


11. Python Code Tracing and Debugging | Python 代码追踪与调试

to 5 but contains an infinite loop because the counter never increments. Identify the missing line: i = i + 1 or i += 1. Another common exercise traces the output of a loop: for i in range(1,6): print(i*i). The output will be 1, 4, 9, 16, 25 on separate lines. Pay attention to indentation; Python uses it to define code blocks. Understanding the difference between = (assignment) and == (equality) is essential. Also, be able to spot issues like division by zero, index out of range, or using a variable before it is assigned a value.

你可能会看到几行 Python 代码,其中包含逻辑或语法错误,要求你改正。例如,一个应打印数字 1 到 5 的程序因计数器从未递增而进入无限循环。识别缺少的行:i = i + 1 或 i += 1。另一常见练习是跟踪循环的输出:for i in range(1,6): print(i*i)。输出将在多行上显示 1, 4, 9, 16, 25。注意缩进;Python 使用缩进来定义代码块。理解 =(赋值)和 ==(等于)的区别至关重要。同时,能够发现如除以零、索引越界、或在变量赋值前使用它等问题。


12. Internet, World Wide Web, and Data Units | 互联网、万维网与数据单位

nternet using HTTP/HTTPS. Protocols like HTTP, FTP, SMTP, and IP define rules for data transmission. Domain Name System (DNS) translates human-readable addresses into IP addresses. Data units progress as bit, nibble, byte, kilobyte (KB = 1024 bytes), megabyte (MB), gigabyte (GB), terabyte (TB). When calculating file sizes, you might need to convert between units. For instance, a 2 MB image is equivalent to 2 × 1024 × 1024 = 2,097,152 bytes. Also, understand storage device capacity measured in bytes. A mock question may ask you to explain packet switching: data is split into packets, each sent independently over the network and reassembled at the destination.

澄清:互联网是相互连接的计算机组成的全球网络,而万维网是通过互联网使用 HTTP/HTTPS 访问的网页集合。HTTP、FTP、SMTP 和 IP 等协议定义了数据传输规则。域名系统 (DNS) 将人类可读的地址转换为 IP 地址。数据单位递进为:比特、半字节、字节、千字节 (KB = 1024 字节)、兆字节 (MB)、吉字节 (GB)、太字节 (TB)。计算文件大小时,可能需要在单位间转换。例如,一张 2 MB 的图像等于 2 × 1024 × 1024 = 2,097,152 字节。同时,理解以字节为单位的存储设备容量。模拟题可能会要求你解释分组交换:数据被分割成数据包,每个包独立通过网络发送,在目的地重新组合。


Published by TutorHao | Computing Revision Series | aleveler.com

广告 / Sponsored
Linux高级程序设计(高等院校计算机技术十二五规划教材)/刘加海/季江民/浙江大学出版社
计算机 备考教辅 · 正版现货 · 与本文内容相关
查看详情 / View on Taobao参考价 ¥55.6

更多咨询请联系16621398022(同微信)

备考资讯每日更新,关注不错过
考纲变化 · 科目分析 · 学习方法
扫码关注公众号 tutorhao
在微信里长按二维码识别关注
或截图后用「扫一扫 → 相册」选择本图
公众号:tutorhao