📚 Year 10 CIE Computer Science: Summer Bridging Course | 十年级 CIE 计算机暑期衔接课程
Welcome to your summer bridging course for Year 10 CIE IGCSE Computer Science! This article is designed to help you preview and master the key concepts you will explore in the coming academic year. From the fundamentals of binary logic to the architecture of computer systems, from data representation to high-level programming, we will build a strong foundation that prepares you for the demands of the CIE 0478 syllabus. Whether you are completely new to the subject or looking to reinforce your understanding, each section is carefully structured with clear explanations, practical examples, and bilingual insights to support your learning journey. Let’s dive into the world of computational thinking and digital systems.
欢迎来到十年级 CIE IGCSE 计算机科学的暑期衔接课程!本文旨在帮助你预览并掌握即将在下一学年接触的核心概念。从二进制逻辑的基本原理到计算机系统架构,从数据表示到高级编程,我们将为你打下坚实基础,以从容应对 CIE 0478 教学大纲的要求。无论你是刚刚接触这门学科,还是希望巩固已有理解,每一节都精心编排,配有清晰的解释、实用示例以及中英双语洞察,为你的学习之旅提供支持。现在,让我们一起进入计算思维与数字系统的世界。
1. How Computers Represent Data | 计算机如何表示数据
All data inside a computer is stored as sequences of binary digits – bits. A bit can be either 0 or 1, representing two states such as off and on, false and true. Because computers use electronic switches that have only two stable conditions, binary is the natural language of digital machines. Understanding binary is the first step to grasping how numbers, text, images, and even sound are encoded.
计算机内部所有数据都以二进制数字序列——比特——的形式存储。一个比特只能取 0 或 1,用来表示两种状态,例如关与开、假与真。由于计算机使用的电子开关只有两种稳定状态,二进制便成为数字机器的天然语言。理解二进制是掌握数字、文本、图像甚至声音编码方式的第一步。
A single bit on its own can only represent two values, so we group bits to represent larger numbers. A group of 4 bits is called a nibble, and a group of 8 bits is called a byte. One byte can represent 2⁸ = 256 different values. Larger groupings like kilobytes (KB), megabytes (MB), and gigabytes (GB) are familiar units of storage, each representing 1024 times the previous unit in the binary sense (e.g., 1 KB = 1024 bytes).
单个比特只能表示两个值,因此我们把比特组合起来表示更大的数字。4 个比特组成一个半字节(nibble),8 个比特组成一个字节(byte)。一个字节可以表示 2⁸ = 256 种不同的值。更大的组合如千字节(KB)、兆字节(MB)和吉字节(GB)是我们熟知的存储单位,在二进制意义上每个单位是前一个单位的 1024 倍(例如,1 KB = 1024 字节)。
Binary numbers follow a place-value system, just like our familiar decimal system, but with base 2 instead of base 10. For example, the binary number 1011₂ is calculated as (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰) = 8 + 0 + 2 + 1 = 11 in decimal. Converting between binary and decimal is a core skill for CIE candidates.
二进制数遵循位值系统,与我们熟悉的十进制系统类似,只是基数为 2 而非 10。例如,二进制数 1011₂ 的计算过程为 (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰) = 8 + 0 + 2 + 1 = 11(十进制)。二进制与十进制之间的转换是 CIE 考生的一项核心技能。
Hexadecimal (base 16) provides a more compact way to represent binary. One hex digit corresponds exactly to four binary bits (a nibble). The digits 0–9 represent values zero to nine, and letters A–F stand for values 10 to 15. For example, the binary nibble 1111 is F in hex, and 1010 is A. A byte can be written as two hex digits, making it much easier for humans to read long binary sequences.
十六进制(基数为 16)提供了一种更紧凑的二进制表示方式。一个十六进制数字恰好对应四个二进制位(一个半字节)。数字 0–9 表示零到九,字母 A–F 代表 10 到 15。例如,二进制半字节 1111 在十六进制中是 F,1010 是 A。一个字节可以写作两个十六进制数字,大大方便了人类阅读冗长的二进制串。
2. Data Storage and File Sizes | 数据存储与文件大小
When we talk about data storage, it is essential to distinguish between the precise binary units and the SI (International System) decimal units often used by manufacturers. In computer science, 1 kilobyte (KB) is traditionally 1024 bytes (2¹⁰), but in marketing, hard drives often use 1 KB = 1000 bytes. The CIE syllabus focuses on the binary prefixes: kilo (1024), mega (1024²), giga (1024³), and tera (1024⁴).
谈论数据存储时,必须区分精确的二进制单位与制造商常采用的 SI(国际单位制)十进制单位。在计算机科学中,1 千字节(KB)传统上是 1024 字节(2¹⁰),但在市场宣传中,硬盘常使用 1 KB = 1000 字节。CIE 教学大纲侧重二进制前缀:kilo(1024)、mega(1024²)、giga(1024³)和 tera(1024⁴)。
Images, sound, and video files are often large because they contain a huge amount of raw data. An image is made up of pixels, each represented by a binary code for its colour. The higher the resolution and colour depth, the larger the file size. Uncompressed sound files depend on sampling rate and bit depth. We can calculate an approximate file size by multiplying the relevant parameters.
图像、声音和视频文件通常体积庞大,因为它们包含了大量原始数据。图像由像素构成,每个像素用二进制码表示其颜色。分辨率和颜色深度越高,文件就越大。无压缩的声音文件大小取决于采样率和位深度。我们可以通过相关参数相乘来估算文件大小。
File size (bits) = sampling rate (Hz) × bit depth × duration (s) × number of channels
This formula helps you estimate storage needs and understand why compression is so important. For an image, a similar logic applies: width in pixels × height in pixels × colour depth in bits.
这一公式有助于估算存储需求,并理解压缩为何如此重要。对于图像,相似的逻辑同样适用:宽像素数 × 高像素数 × 颜色深度(比特)。
3. Logic Gates and Truth Tables | 逻辑门与真值表
At the heart of every digital circuit are logic gates – electronic components that take one or more binary inputs and produce a single binary output based on a logical rule. The fundamental gates you must know for CIE are NOT, AND, OR, NAND, and NOR. Each gate has a standard symbol and a corresponding truth table that lists all possible input combinations and the resulting output.
每个数字电路的核心都是逻辑门——一种接受一个或多个二进制输入并根据逻辑规则产生单一二进制输出的电子元件。CIE 考试要求你掌握的基本门电路包括非门(NOT)、与门(AND)、或门(OR)、与非门(NAND)和或非门(NOR)。每一个门都有标准符号以及对应的真值表,列出所有可能的输入组合及相应的输出。
A NOT gate simply inverts the input: if input is 1, output is 0, and vice versa. The AND gate outputs 1 only when all inputs are 1. The OR gate outputs 1 if at least one input is 1. NAND and NOR are the exact opposites of AND and OR; their outputs are the inverted versions. Truth tables quickly show these relationships.
非门仅对输入取反:输入为 1 则输出为 0,反之亦然。与门仅在所有输入均为 1 时才输出 1。或门只要至少有一个输入为 1 就输出 1。与非门和或非门分别是与门和或门的完全相反情况;它们的输出是取反后的结果。真值表可以迅速展示这些关系。
| A | B | AND | OR | NAND | NOR |
| 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 |
You can combine logic gates to create more complex circuits. Working out the output of a combination circuit involves drawing a truth table for the whole system or tracing signals through each gate step by step. This skill is crucial for understanding how processors perform arithmetic and make decisions.
你可以组合逻辑门来创建更复杂的电路。求解组合电路的输出需要为整个系统绘制真值表,或逐级跟踪信号通过每个门的变化。这项技能对于理解处理器如何执行算术运算和做出决策至关重要。
4. Computer Architecture and the CPU | 计算机体系结构与中央处理器
The Central Processing Unit (CPU) is the brain of the computer. It follows the fetch–decode–execute cycle repeatedly to run programs. The CPU contains the Control Unit (CU), which directs operations; the Arithmetic Logic Unit (ALU), which performs calculations and logical comparisons; and a set of registers – small, fast storage locations – such as the Program Counter (PC), Memory Address Register (MAR), Memory Data Register (MDR), and Accumulator (ACC).
中央处理器(CPU)是计算机的大脑。它反复地执行取指–解码–执行周期来运行程序。CPU 包含控制单元(CU),负责指挥操作;算术逻辑单元(ALU),执行计算和逻辑比较;以及一组寄存器——容量小、速度快的存储位置——例如程序计数器(PC)、内存地址寄存器(MAR)、内存数据寄存器(MDR)和累加器(ACC)。
The fetch stage: the address held in the PC is copied to the MAR, the PC is incremented, and the instruction is fetched from RAM into the MDR. Then it is placed in the Current Instruction Register (CIR). During the decode stage, the CU interprets the instruction. In the execute stage, the CPU carries out the instruction, which may involve the ALU and registers. After that, the cycle repeats.
取指阶段:PC 中保存的地址被复制到 MAR,PC 递增,指令从 RAM 中取出并送入 MDR。接着该指令被放入当前指令寄存器(CIR)。在解码阶段,CU 解读指令。执行阶段,CPU 具体执行指令,可能会涉及 ALU 和寄存器。之后,循环重复。
The performance of a CPU is affected by its clock speed (measured in Hz), the number of cores, and the cache size. A higher clock speed means more cycles per second. Multiple cores allow genuine parallel processing. Cache memory, located inside the CPU, stores frequently used data for quick access, reducing the need to fetch from slower RAM.
CPU 的性能受其时钟频率(以赫兹 Hz 衡量)、核心数量以及缓存大小的影响。更高的时钟频率意味着每秒可执行更多周期。多个核心允许真正的并行处理。位于 CPU 内部的缓存存储器存储了频繁使用的数据,以便快速访问,减少从较慢的 RAM 中取数据的需求。
5. Embedded Systems and Their Role | 嵌入式系统及其作用
An embedded system is a dedicated computer system designed to perform a specific function within a larger mechanical or electrical system. Unlike a general-purpose desktop computer, an embedded system runs pre-programmed software on a microcontroller. Examples include washing machine controllers, traffic lights, automotive engine management, and medical devices.
嵌入式系统是一种专用计算机系统,旨在大型机械或电气系统中执行特定功能。与通用台式计算机不同,嵌入式系统在微控制器上运行预编程软件。常见的例子有洗衣机控制器、交通信号灯、汽车引擎管理系统以及医疗设备。
Embedded systems are optimised for low power consumption, small physical size, and high reliability. They often have real-time constraints, meaning they must respond to inputs within a very strict timeframe. Their software is tightly integrated with the hardware, making them efficient but difficult to reprogram once deployed. Understanding these constraints helps you appreciate the breadth of computer science beyond traditional PCs.
嵌入式系统经过优化,具有低功耗、小体积和高可靠性等特点。它们通常具有实时性约束,意味着必须在极为严格的时间范围内对输入做出响应。其软件与硬件紧密集成,因而效率很高,但部署后很难重新编程。理解这些约束有助于你认识到计算机科学远不局限于传统个人电脑。
6. Programming Fundamentals with Python | Python 编程基础
CIE IGCSE Computer Science expects you to develop programming skills, typically using Python as the main language. You should be comfortable with variables, data types (integer, float, string, boolean), input/output statements, and basic operators. A variable is a named container for a value that can change during program execution. Python is dynamically typed, meaning you do not need to declare a variable’s type explicitly.
CIE IGCSE 计算机科学期望你掌握编程技能,通常以 Python 作为主要语言。你应当熟练掌握变量、数据类型(整型、浮点型、字符串、布尔型)、输入/输出语句以及基本的运算符。变量是一个命名的容器,其值在程序执行期间可以改变。Python 是动态类型的,这意味着你不需要显式声明变量的类型。
Sequence, selection, and iteration are the three pillars of structured programming. Sequence is the default: statements run one after another. Selection uses if, elif, and else to make decisions based on conditions. Iteration uses for loops (when you know the number of repetitions) and while loops (when the number depends on a condition). Mastering these control structures enables you to write any algorithm.
顺序、选择和迭代是结构化编程的三大支柱。顺序是默认方式:语句一条接一条执行。选择使用 if、elif 和 else 根据条件做出决策。迭代使用 for 循环(当你知道重复次数时)和 while 循环(当次数取决于某个条件时)。掌握这些控制结构,你就能写出任意算法。
Functions allow you to package reusable blocks of code. You define a function with the def keyword, give it a name, and optionally specify parameters. Functions promote modularity and reduce code duplication. In CIE exams, you may be asked to write, trace, or debug simple functions. Practice writing small utilities like a function to convert Celsius to Fahrenheit or to check if a number is prime.
函数让你能够封装可复用的代码块。你可以用 def 关键字定义函数,为它命名,并可选择指定参数。函数促进了模块化并减少代码重复。在 CIE 考试中,你可能需要编写、追踪或调试简单的函数。可以练习编写一些小型实用函数,例如将摄氏度转换为华氏度,或判断一个数是否为质数。
7. Data Structures: Arrays and Lists | 数据结构:数组与列表
In programming, a data structure organises and stores data so that it can be accessed and modified efficiently. The most basic data structure you will encounter is the array. In Python, lists serve as a flexible implementation of an array. A list can hold items of different types, and you can access elements by their index, starting from 0.
在编程中,数据结构负责组织和存储数据,以便高效地访问和修改。你将遇到的最基本的数据结构是数组。在 Python 中,列表作为一种灵活的数组实现。列表可以包含不同类型的元素,你可以通过索引(从 0 开始)访问元素。
Common list operations include appending (adding to the end), inserting at a specific index, removing items, and finding the length using len(). You can iterate through a list using a for loop. CIE exam questions often involve searching for a value in a list or finding the maximum/minimum value. Linear search is a simple algorithm that checks each element in turn until a match is found.
常见的列表操作包括追加(添加至末尾)、在指定索引处插入、删除元素以及使用 len() 获取长度。你可以用 for 循环遍历列表。CIE 考试题目常常涉及在列表中搜索某个值或找出最大/最小值。线性搜索是一种简单算法,它依次检查每个元素,直到找到匹配项为止。
Understanding the difference between one-dimensional and two-dimensional arrays is important. A 2D array can be thought of as a table with rows and columns. In Python, this is a list of lists. For example, a 3×3 grid could be represented as [[0,0,0],[0,0,0],[0,0,0]]. You access a cell using two indices: grid[row][column].
理解一维数组和二维数组的区别很重要。二维数组可以看作具有行和列的表格。在 Python 中,这表示为列表的列表。例如,一个 3×3 的网格可以表示为 [[0,0,0],[0,0,0],[0,0,0]]。你可以用两个索引访问其中的一个单元格:grid[row][column]。
8. Software and Machine Code | 软件与机器码
All software ultimately runs as machine code – sequences of binary instructions that the CPU can execute directly. However, writing machine code is error-prone and time-consuming for humans. High-level languages like Python are easier to read and write, but they must be translated into machine code. This translation can happen in two main ways: compilation and interpretation.
所有软件最终都以机器码的形式运行——即 CPU 可以直接执行的二进制指令序列。然而,对人类而言,编写机器码既容易出错又耗时。像 Python 这样的高级语言更易于读写,但它们必须被翻译成机器码。这种翻译主要通过两种方式进行:编译和解释。
A compiler translates the entire source code into an executable file before the program is run. Once compiled, the program can be run many times without the compiler. Examples of compiled languages include C and C++. An interpreter, on the other hand, reads and translates the source code line by line during program execution. Python primarily uses an interpreter, which makes it easier to test and debug code interactively, but may run slower than compiled programs.
编译器在程序运行之前将整个源代码翻译成可执行文件。编译后,程序可以在没有编译器的情况下多次运行。编译型语言的例子包括 C 和 C++。与此相对,解释器在程序执行时逐行读取并翻译源代码。Python 主要使用解释器,这便于交互式地测试和调试代码,但运行速度可能比编译型程序慢。
There is also assembly language, a low-level language that uses mnemonics like MOV, ADD, and SUB, a direct symbolic representation of machine code. An assembler translates assembly into machine code. Understanding these layers helps you see the relationship between the code you write and what the hardware actually does.
还有一种汇编语言,它是一种低级语言,使用诸如 MOV、ADD 和 SUB 之类的助记符,这些是机器码的直接符号表示。汇编器将汇编语言翻译成机器码。理解这些层次有助于你认识自己所写代码与硬件实际执行之间的联系。
9. Data Transmission and Networks | 数据传输与网络
Data transmission is the movement of data from one place to another. For CIE, you need to understand serial and parallel transmission, simplex/duplex modes, and the concepts of bandwidth and bit rate. Serial transmission sends data one bit at a time over a single channel, which is efficient for long distances (e.g., USB). Parallel transmission sends multiple bits simultaneously, but is more prone to errors over distance due to skew.
数据传输是指数据从一处移动到另一处的过程。针对 CIE,你需要理解串行传输与并行传输、单工/双工模式,以及带宽和比特率的概念。串行传输在单一通道上一个比特一个比特地发送数据,对于长距离传输效率较高(例如 USB)。并行传输同时发送多个比特,但在远距离上更容易因时滞而产生错误。
Networks connect computers to share resources and information. Key network hardware includes routers, switches, hubs, and network interface cards (NICs). The Internet is the global network of networks, relying on protocols such as TCP/IP. An IP address uniquely identifies a device on a network, while a MAC address is a hardware identifier burned into the NIC.
网络将计算机连接起来以共享资源和信息。关键的网络硬件包括路由器、交换机、集线器和网络接口卡(NIC)。互联网是全球性的网络之网,依赖于 TCP/IP 等协议。IP 地址在网络中唯一标识设备,而 MAC 地址是烧录在网络接口卡中的硬件标识符。
When a message is sent over the Internet, it is broken into packets. Each packet contains the destination address, the source address, a sequence number, and the data payload. Routers decide the best path for each packet independently, and packets may arrive out of order. The receiving end reassembles them. This method is robust and efficient.
当信息通过互联网发送时,它被分割成数据包。每个数据包包含目标地址、源地址、序列号以及数据有效载荷。路由器为每个数据包独立地决定最佳路径,数据包到达时可能顺序错乱。接收端再将它们重新组装。这种方法既健壮又高效。
10. Cyber Security and Ethical Considerations | 网络安全与伦理考量
As our reliance on computer systems grows, so does the importance of cybersecurity. Malware – malicious software – includes viruses, worms, trojans, spyware, and ransomware. A virus attaches itself to a legitimate program and spreads when that program is run. A worm self-replicates across networks without needing a host file. Ransomware encrypts a user’s files and demands payment for the decryption key.
随着我们对计算机系统的依赖日益增加,网络安全的重要性也日益提升。恶意软件——居心不良的软件——包括病毒、蠕虫、特洛伊木马、间谍软件和勒索软件。病毒将自己附着在合法程序上,当程序运行时进行传播。蠕虫无需宿主文件即可在网络上自我复制。勒索软件将用户文件加密,并要求支付赎金换取解密密钥。
Preventive measures include using antivirus software, keeping systems updated, avoiding suspicious downloads, and implementing strong password policies. Authentication methods such as passwords, biometrics, and two-factor authentication (2FA) help verify that a user is who they claim to be. Encryption scrambles data so that only authorised parties can read it.
防范措施包括使用杀毒软件、保持系统更新、避免可疑下载以及实施强密码策略。身份验证方法,如密码、生物识别和双因素认证(2FA),帮助验证用户身份的真实性。加密对数据进行混淆处理,使得只有授权方才能读取。
Beyond security, ethical computing involves respect for privacy, intellectual property, and responsible use of technology. The Data Protection Act and similar laws set rules on how personal data can be collected and used. Plagiarism and software piracy are important ethical issues. As a computer science student, you must be aware of the wider social impact of the systems you design and use.
除了安全,计算伦理还涉及尊重隐私、知识产权,以及负责任地使用技术。《数据保护法》等法律规定了个人数据的收集与使用规则。剽窃和软件盗版是重要的伦理议题。作为计算机科学的学生,你必须意识到你所设计和使用系统的更广泛社会影响。
11. Practical Problem Solving and Computational Thinking | 实践问题解决与计算思维
Computational thinking is a problem-solving approach that involves decomposition, pattern recognition, abstraction, and algorithm design. Decomposition breaks a problem into smaller, more manageable parts. Pattern recognition identifies similarities between problems. Abstraction focuses on the essential details, ignoring irrelevant information. Algorithm design creates step-by-step solutions.
计算思维是一种解决问题的方法,包括分解、模式识别、抽象和算法设计。分解将一个复杂问题拆解为更小、更易管理的部分。模式识别找出问题之间的相似之处。抽象专注于关键细节,忽略无关信息。算法设计则创建分步解决方案。
When you encounter a programming challenge, start by understanding the problem clearly. Decompose it, decide what inputs and outputs are needed, and then design your algorithm using pseudocode or flowcharts. Pseudocode is a simpler, English-like way of expressing logic without strict syntax. A flowchart uses boxes and arrows to visually represent the sequence of operations.
面对编程挑战时,你首先要清晰地理解问题。进行分解,确定所需输入和输出,然后使用伪代码或流程图设计算法。伪代码是一种更简单、类似英语的表达逻辑的方式,不受严格语法约束。流程图则使用方框和箭头来直观地表示操作序列。
Trace tables are another extremely useful tool for dry-running code. A trace table lists each variable and shows how its value changes as the program executes step by step. This is a CIE exam favourite. Practicing with trace tables improves your debugging skills and deepens your understanding of how loops and conditions affect variable states.
跟踪表是另一种对代码走查极为有用的工具。跟踪表列出每个变量,并展示其值随程序逐步执行而如何变化。这是 CIE 考试的热门考点。多用跟踪表练习能提高你的调试技能,并加深你对循环和条件如何影响变量状态的理解。
12. Getting Ready for Year 10 – A Study Plan | 为十年级做准备——一份学习计划
To make the most of your summer bridging course, aim to study a little every day. Review one topic from this article, then try a hands-on activity: write a small Python program from scratch, convert some binary numbers to hex, or design a logic circuit for a simple problem. CIE past papers and specimen papers are freely available online; attempt a few questions to familiarise yourself with the exam format.
为了充分利用暑期衔接课程,你应该坚持每天学习一点。复习本文中的一个专题,然后尝试动手练习:从零开始编写一个小型 Python 程序,转换一些二进制数为十六进制,或为一个简单问题设计逻辑电路。CIE 历年真题和样题可在线免费获取;做几道题来熟悉考试形式。
Set up a simple development environment on your computer: install Python 3, a code editor (like VS Code or Thonny), and get comfortable running scripts. Create a digital notebook where you keep notes, key definitions, and common algorithm patterns. Consistent, active practice – not passive reading – is the secret to mastering Computer Science at IGCSE level.
在你的计算机上搭建一个简单的开发环境:安装 Python 3 和一个代码编辑器(如 VS Code 或 Thonny),并熟悉运行脚本的过程。创建一个数字笔记本,用来记录笔记、关键定义和常见算法模式。持续、主动的练习——而非被动阅读——是在 IGCSE 层次上掌握计算机科学的秘诀。
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课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply