📚 Year 7 Edexcel Computer Science Unit Test: Mock Paper Walkthrough | 7年级爱德思计算机科学单元测试模拟卷解析
This article takes you through a typical Year 7 Edexcel Computer Science unit test mock paper, explaining each question in detail. By working through these examples, you will strengthen your understanding of foundational topics such as algorithms, binary, hardware, and simple programming. Let’s explore the questions one by one and learn how to avoid common mistakes.
本文带你逐题解析一份典型的7年级爱德思计算机科学单元测试模拟卷。通过分析这些例题,你将巩固算法、二进制、硬件和简单编程等基础主题的理解。让我们逐一探讨题目,并学习如何避免常见错误。
1. Identifying Output Devices | 识别输出设备
The mock paper starts with a multiple-choice question: ‘Which of the following is an output device? A) Keyboard B) Mouse C) Monitor D) Scanner’. This question tests your knowledge of basic hardware categories.
模拟卷以一道选择题开头:“以下哪一个是输出设备?A) 键盘 B) 鼠标 C) 显示器 D) 扫描仪”。此题考查你对基本硬件分类的了解。
The correct answer is C, Monitor. An output device displays or presents information from the computer to the user. Other examples include printers and speakers.
正确答案是C,显示器。输出设备将计算机中的信息显示或呈现给用户。其他例子包括打印机和扬声器。
Keyboards and mice are input devices because they send data into the computer. A scanner is also an input device—it captures images and sends them to the system. A common pitfall is confusing a touchscreen, which acts as both input and output.
键盘和鼠标是输入设备,因为它们将数据发送到计算机中。扫描仪也是输入设备——它捕获图像并将其传入系统。一个常见陷阱是混淆触摸屏,它兼具输入与输出功能。
2. Defining an Algorithm | 定义算法
Question: ‘Explain what an algorithm is, using a real-world example.’ This question assesses your ability to describe the core concept of computational thinking.
题目:“解释什么是算法,并用一个现实世界的例子说明。”这个问题评估你描述计算思维核心概念的能力。
An algorithm is a step-by-step set of instructions to solve a problem or complete a task. It must be precise, unambiguous, and finite. A good example is a recipe for baking a cake: it lists ingredients and ordered steps, and if followed correctly, produces the expected result every time.
算法是用于解决问题或完成任务的逐步指令集合。它必须精确、无歧义且有限。一个很好的例子是烘焙蛋糕的食谱:它列出了配料和有序的步骤,如果遵循正确,每次都能产生预期结果。
In computing, algorithms can be expressed using flowcharts or pseudocode. For example, an algorithm to make a cup of tea would include steps like ‘Fill the kettle with water’, ‘Boil the water’, and ‘Pour water into a cup with a tea bag’.
在计算中,算法可以用流程图或伪代码表示。例如,泡一杯茶的算法将包括“给水壶装水”、“烧水”、“将水倒入放有茶包的杯中”等步骤。
3. Converting Between Denary and Binary | 十进制与二进制的转换
Next, the paper asks: ‘Convert the denary number 23 into an 8-bit binary number.’ This tests your binary conversion skills.
接下来,试卷要求:“将十进制数23转换为8位二进制数。”这考查你的二进制转换能力。
To convert 23 to binary, we use the place values: 128, 64, 32, 16, 8, 4, 2, 1. Start from the left: 128 is too big, 64 too big, 32 too big. 16 fits into 23, so we put a 1 under 16; remainder is 7. Next, 8 does not fit, so 0; 4 fits (remainder 3), 1; 2 fits (remainder 1), 1; and 1 fits, 1. The binary representation is 0001 0111, or simply 10111₂. As an 8-bit number, we write 00010111.
要将23转换为二进制,我们使用位值:128, 64, 32, 16, 8, 4, 2, 1。从左边开始:128太大,64太大,32太大。16可容纳于23,因此在16下面写1;余数为7。接着,8无法容纳,写0;4可容纳(余数3),写1;2可容纳(余数1),写1;1可容纳,写1。二进制表示为0001 0111,或简写为10111₂。作为8位数字,写作00010111。
A frequent error is writing the remainders from bottom to top incorrectly when using the division method. Always check by adding place values: 16 + 4 + 2 + 1 equals 23. Another tip: remember that 8-bit means we show all eight bits, padding with leading zeros.
常见错误是在使用除法时把余数从下往上写错顺序。一定要通过位值加法验证:16 + 4 + 2 + 1 等于23。另一个提示:记住8位意味着显示全部八位,前导零补齐。
| Place value (位值) | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| 23 in binary | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 |
4. Understanding a Simple Flowchart | 理解简单流程图
The test includes a flowchart with labelled symbols: an oval (Start), a parallelogram (Input A, Input B), a rectangle (C ← A + B), another parallelogram (Output C), and an oval (Stop). The question asks: ‘If the inputs are 3 and 4, what is the output?’
试题包含一个带有标注符号的流程图:椭圆形(开始)、平行四边形(输入A、输入B)、矩形(C ← A + B)、另一个平行四边形(输出C)和椭圆形(停止)。题目问:“如果输入是3和4,输出是多少?”
The flowchart adds the two numbers and stores the result in C. With inputs 3 and 4, A is 3, B is 4, so C becomes 7. The output is therefore 7. This tests your ability to trace the logic of a flowchart.
该流程图将两个数字相加并将结果存储在C中。输入为3和4,则A=3,B=4,因此C变为7,输出为7。这考查你追踪流程图逻辑的能力。
Remember the standard symbols: oval for start/stop, parallelogram for input and output, and rectangle for processes (calculations or actions). Also, the arrow ← indicates assignment, meaning the value on the right is stored in the variable on the left.
记住标准符号:椭圆形用于开始/停止,平行四边形用于输入和输出,矩形用于处理(计算或动作)。此外,箭头←表示赋值,意味着右侧的值被存储到左侧的变量中。
5. Writing Pseudocode | 编写伪代码
The question asks students to ‘Write pseudocode to ask the user for a number and then display whether it is even or odd.’ This checks your ability to design logic without a specific programming language.
该题要求学生“编写伪代码,要求用户输入一个数字,然后显示该数字是偶数还是奇数。”这考查你在不依赖特定编程语言的情况下设计逻辑的能力。
A correct pseudocode solution would be:
正确的伪代码解决方案如下:
OUTPUT “Enter a number:”
INPUT num
IF num MOD 2 = 0 THEN
OUTPUT “Even”
ELSE
OUTPUT “Odd”
ENDIF
The keyword MOD gives the remainder after division. If a number divided by 2 leaves remainder 0, it is even. Otherwise, it is odd. Ensure your pseudocode uses consistent indentation to show the structure clearly.
关键字MOD给出除法后的余数。如果数字除以2余数为0,则为偶数;否则为奇数。确保伪代码使用一致的缩进来清晰地展示结构。
A common mistake is writing ‘IF num ÷ 2 = 0’ instead of using MOD. Division gives a quotient, not the remainder, so this would be incorrect.
一个常见错误是写“IF num ÷ 2 = 0”而不是使用MOD。除法得出的是商,不是余数,因此这将是不正确的。
6. Components Inside a Computer | 计算机内部组件
‘Identify three components found inside a computer case and briefly state their functions.’ This question targets internal hardware understanding.
“识别计算机机箱内的三个组件,并简要说明其功能。”本题针对内部硬件的理解。
Three key components are: the CPU (Central Processing Unit), which executes instructions and performs calculations; RAM (Random Access Memory), which temporarily stores data and programs currently in use; and the motherboard, which connects all components and allows communication between them.
三个关键组件是:CPU(中央处理器),执行指令和计算;RAM(随机存取存储器),暂时存储当前正在使用的数据和程序;以及主板,连接所有组件并允许它们之间进行通信。
You might also mention storage devices such as a hard disk drive (HDD) or solid-state drive (SSD), which store files permanently even when the power is off. Do not confuse RAM with long-term storage—RAM is volatile memory, meaning its contents are lost when the computer shuts down.
你还可以提到存储设备,如硬盘驱动器(HDD)或固态驱动器(SSD),它们在断电时也能永久保存文件。切勿将RAM与长期存储混淆——RAM是易失性存储器,意味着关机后其内容会丢失。
7. Hardware vs. Software | 硬件与软件的区别
The mock paper asks: ‘Explain the difference between hardware and software, giving one example of each.’ This is a fundamental classification question.
模拟卷问:“解释硬件和软件之间的区别,并各举一个例子。”这是一个基本的分类问题。
Hardware refers to the physical components of a computer system that you can touch, such as a keyboard, monitor, or CPU. Software refers to the programs, instructions, and data that tell the hardware what to do. Examples of software include operating systems like Windows, and applications like Microsoft Word or a web browser.
硬件是指计算机系统中你可以触摸的物理组件,如键盘、显示器或CPU。软件是指告诉硬件做什么的程序、指令和数据。软件的例子包括操作系统(如Windows),以及应用程序(如Microsoft Word或网页浏览器)。
A typical mistake is mixing categories—for instance, saying ‘Microsoft Word is hardware’ or ‘a mouse is software’. Simply asking yourself ‘Can I physically hold it?’ will help you decide.
一个典型的错误是混淆类别——例如说“Microsoft Word是硬件”或“鼠标是软件”。只需问自己“我能物理地握住它吗?”就能帮助你判断。
8. Tracing Python Code | 追踪Python代码
The question presents a short piece of code:
题目展现了一小段代码:
a = 2
b = a * 3
print(b)
The task is to identify the exact output. This tests variable assignment and arithmetic operations in Python.
任务是确定准确的输出。这测试Python中的变量赋值和算术运算。
First, the value 2 is assigned to variable a. Then, b is assigned the result of a multiplied by 3. Since a is 2, a * 3 equals 6, so b becomes 6. Finally, print(b) displays 6 on the screen. The output is simply 6.
首先,将值2赋给变量a。然后,b被赋予a乘以3的结果。由于a为2,a * 3等于6,因此b变为6。最后,print(b)在屏幕上显示6。输出就是6。
Beware of confusing the assignment operator ‘=’ with the mathematical equals sign. In programming, ‘=’ means ‘store the right-hand value into the variable on the left’. A star ‘*’ is the multiplication sign in Python. Also, note that print does not include quotation marks around the number unless they are part of the string.
注意不要混淆赋值运算符“=”与数学中的等号。在编程中,“=”意味着“将右侧的值存储到左侧的变量中”。星号“*”是Python中的乘号。此外,请注意print不会在数字周围包含引号,除非它们是字符串的一部分。
9. AND Gate Truth Table | 与门真值表
‘Complete the truth table for an AND gate with inputs A and B.’ Logic gates are an introductory topic in Year 7 computer science, showing how binary inputs produce a single output.
“完成具有输入A和B的与门真值表。”逻辑门是7年级计算机科学的一个入门主题,展示了二进制输入如何产生单一输出。
An AND gate outputs 1 only when both input A and input B are 1. The completed truth table is shown below:
与门仅在输入A和输入B都为1时才输出1。完整的真值表如下所示:
| A | B | Output (Q) |
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
It is easy to confuse AND with OR. An OR gate outputs 1 if at least one input is 1. Remembering the phrase ‘Both must be true for AND’ can help.
很容易混淆AND和OR。若至少一个输入为1,或门输出为1。记住短语“AND要求两者都为真”会有所帮助。
In diagrams, an AND gate symbol is shaped like a D with a curved back, while an OR gate has a pointed back. Knowing the difference is useful for tests.
在图中,与门符号形状像带有弯曲背部的D,而或门有一个尖背。了解区别对测试很有用。
10. Debugging an Algorithm | 调试算法
The final question shows a student’s algorithm for making a sandwich:
最后一道题展示了一个学生制作三明治的算法:
1. Take two slices of bread.
2. Spread butter on one slice.
3. Place ham on the buttered slice.
4. Put the slices together.
5. Serve.
The task is to identify the missing step. This exercise tests algorithmic thinking and debugging.
任务是找出缺失的步骤。这个练习测试算法思维和调试能力。
The algorithm misses the step of spreading butter on the second slice of bread. Without this, the sandwich would be dry on one side and might not hold together well. A corrected algorithm would add a step between 1 and 2: ‘Spread butter on both slices.’
该算法缺少了在第二片面包上涂抹黄油的步骤。没有这一步,三明治的一侧将是干的,并且可能不能很好地结合在一起。修正后的算法将在1和2之间添加一步:“在两片面包上都涂抹黄油。”
Debugging means finding and fixing errors in instructions. Always act out the sequence in your mind to see if any action is missing or out of order. In programming, this method is called a dry run.
调试意味着发现并修复指令中的错误。总是在脑海中模拟执行序列,看看是否有任何动作缺失或顺序不当。在编程中,这种方法称为干运行。
11. Common Exam Pitfalls and Final Tips | 常见考试陷阱与最终建议
Now that you’ve seen typical questions, let’s summarise key areas where Year 7 students often lose marks. Being aware of these can help you avoid them in your own test.
现在你已经看到了典型题目,让我们总结一下7年级学生经常丢分的关键领域。了解这些可以帮助你在自己的测试中避免错误。
Common pitfall 1: Confusing input and output devices. Use the rule ‘Input = into the system, Output = out from the system’. If you’re sending a signal to the computer, it’s input; if the computer is sending a signal to you, it’s output.
常见陷阱1:混淆输入和输出设备。使用规则“输入=进入系统,输出=从系统出来”。如果你向计算机发送信号,它是输入;如果计算机向你发送信号,它是输出。
Common pitfall 2: Forgetting to pad binary numbers to the required number of bits. If the question asks for 8-bit, write all eight bits, including leading zeros. 101 must be written as 00000101.
常见陷阱2:忘记将二进制数补齐到要求的位数。如果题目要求8位,写出全部八位,包括前导零。101必须写为00000101。
Common pitfall 3: Not following flowchart conventions. When drawing flowcharts, use the correct shapes—marks are often given for using ovals for start/stop and parallelograms for input/output.
常见陷阱3:不遵循流程图规范。绘制流程图时,使用正确的形状——使用椭圆形表示开始/停止,平行四边形表示输入/输出通常会得分。
Common pitfall 4: Missing semicolons or indentation in pseudocode? No, pseudocode is flexible, but not keeping the structure clear can confuse. Always indent inside IF statements and loops. Finally, manage your time: read all questions carefully, answer what is asked, and leave time for checking.
常见陷阱4:伪代码中缺少分号或缩进?不,伪代码是灵活的,但结构不清晰会造成混淆。始终在IF语句和循环内部缩进。最后,管理好时间:仔细阅读所有题目,回答所问,并留出检查时间。
Practice with past or mock papers is the best preparation. The more you familiarise yourself with the question style, the more confident you will feel on the actual test day.
用历年或模拟卷进行练习是最好的准备。你越熟悉题型,在实际考试当天就会越自信。
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导