📚 Year 9 Cambridge Computer Science: Summer Preparation and Bridging Course | 九年级剑桥计算机科学:暑期预习与衔接课程
Welcome to the Year 9 Cambridge Computer Science summer bridging course. This resource is designed to help you confidently transition into the new academic year by introducing key concepts, building foundational skills, and providing practical exercises. Computer Science is not just about using computers—it is about understanding how they work and creating solutions through logical thinking and programming.
欢迎来到九年级剑桥计算机科学暑期衔接课程。本资源旨在帮助您顺利过渡到新学年,通过介绍关键概念、建立基础技能并提供实践练习。计算机科学不仅仅是使用计算机,更是理解计算机的工作原理,并通过逻辑思维和编程来创造解决方案。
1. Course Overview and Learning Goals | 课程概述与学习目标
The Cambridge Year 9 Computer Science curriculum builds a bridge between lower secondary computing and the IGCSE or O Level pathway. You will explore how computer systems are constructed, how data is represented digitally, and how to write simple programs using a high-level language such as Python. Logical reasoning and algorithmic thinking form the core of every topic.
剑桥九年级计算机科学课程在初中计算与 IGCSE 或 O Level 路径之间架起一座桥梁。你将探索计算机系统如何构造、数据如何数字化表示,以及如何使用 Python 等高级语言编写简单程序。逻辑推理和算法思维是每个主题的核心。
By the end of the summer preparation, you should be able to explain the basic components of a computer, convert between binary, denary and hexadecimal, interpret simple truth tables, and write short programs that use variables, selection and iteration. These are the building blocks for success in the academic year ahead.
在暑期预习结束时,你应该能够解释计算机的基本组件,在二进制、十进制和十六进制之间进行转换,解读简单的真值表,并编写使用变量、选择和循环的短程序。这些是未来学年取得成功的基石。
Key study tip: Work through the exercises in this article at a steady pace, and try to complete a small coding challenge every day. Consistent practice leads to deeper understanding.
关键学习建议: 以平稳的节奏完成本文中的练习,并尝试每天完成一个小型编程挑战。持续练习能带来更深的理解。
2. Understanding Computer Systems | 了解计算机系统
A computer system consists of hardware and software working together. The hardware includes physical components such as the central processing unit (CPU), memory, storage devices, and input/output peripherals. The software provides the instructions that tell the hardware what to do.
计算机系统由协同工作的硬件和软件组成。硬件包括中央处理器 (CPU)、内存、存储设备以及输入/输出外设等物理组件。软件则提供告诉硬件该做什么的指令。
The CPU is often called the 'brain' of the computer. It fetches instructions from memory, decodes them, and executes them in a continuous cycle known as the fetch-decode-execute cycle. The speed of this cycle is measured in gigahertz (GHz).
CPU 常被称为计算机的“大脑”。它从内存中取出指令,对其进行译码,然后在一个称为“取指-译码-执行”的持续循环中执行指令。该循环的速度以吉赫兹 (GHz) 为单位。
Main memory, or RAM, holds the data and programs currently in use. It is volatile, meaning its contents are lost when the power is turned off. Secondary storage, such as a hard disk or SSD, retains data even when the power is off, providing permanent storage for files and applications.
主存储器(即 RAM)保存当前正在使用的数据和程序。它是易失性的,这意味着断电后其内容会丢失。辅助存储器(例如硬盘或固态硬盘)即使在断电时也能保留数据,为文件和应用提供永久存储。
Input devices, like keyboards, mice and touchscreens, allow users to send information to the computer. Output devices, such as monitors and printers, display or produce the results of processing.
输入设备(如键盘、鼠标和触摸屏)允许用户向计算机发送信息。输出设备(如显示器和打印机)则显示或生成处理的结果。
3. The Binary Number System | 二进制数系统
Computers process data using binary, a base‑2 number system that uses only the digits 0 and 1. Each binary digit is called a bit, and a group of 8 bits is a byte. All data—text, images, sound—is ultimately represented as patterns of bits.
计算机使用二进制处理数据,二进制是一种基数为 2 的数字系统,只使用数字 0 和 1。每个二进制数字称为一个比特 (bit),一组 8 个比特构成一个字节 (byte)。所有数据——文本、图像、声音——最终都以比特模式表示。
To convert a binary number to denary (base‑10), multiply each bit by its place value, which is a power of 2. For example, the 8‑bit binary number 01101001 can be expanded as follows:
要将二进制数转换为十进制(基数为 10),请将每个比特乘以其位值,位值是 2 的幂。例如,8 位二进制数 01101001 可展开如下:
0×2⁷ + 1×2⁶ + 1×2⁵ + 0×2⁴ + 1×2³ + 0×2² + 0×2¹ + 1×2⁰ = 64 + 32 + 8 + 1 = 105₁₀
When you see a subscript '2' or '10', it indicates the base of the number. Denary numbers have place values of 10⁰, 10¹, 10², etc. Practice converting both ways: from binary to denary and from denary to binary by repeated division by 2.
当你看到下标“2”或“10”时,它表示该数的基数。十进制数的位值为 10⁰、10¹、10² 等。请练习两种方向的转换:二进制转十进制,以及通过反复除以 2 将十进制转二进制。
4. Hexadecimal and Why We Use It | 十六进制及其用途
Hexadecimal is a base‑16 number system that uses the digits 0–9 and the letters A–F to represent values 10 to 15. It is widely used in computing because it offers a more compact way to express long binary sequences—one hex digit represents exactly four bits (a nibble).
十六进制是一种基数为 16 的数字系统,使用数字 0–9 和字母 A–F 表示 10 到 15 的值。它在计算中广泛使用,因为它提供了一种更紧凑的方式来表达长二进制序列——一个十六进制数字恰好表示四个比特(一个半字节)。
For instance, the binary nibble 1111 is represented as F in hex, and 1010 is A. A full byte such as 10101101 can be split into two nibbles: 1010 (A) and 1101 (D), giving the hex value AD.
例如,二进制半字节 1111 用十六进制表示为 F,1010 表示为 A。一个完整的字节(如 10101101)可以分为两个半字节:1010 (A) 和 1101 (D),从而得到十六进制值 AD。
Converting from hex to denary involves multiplying each hex digit by its power of 16. For example:
从十六进制转换为十进制需要将每个十六进制数字乘以其 16 的幂。例如:
2F₁₆ = 2×16¹ + 15×16⁰ = 32 + 15 = 47₁₀
Hexadecimal is common in colour codes (e.g., #FF00CC), memory addresses, and error messages. Learning to read and convert hex values gives you a powerful tool for understanding low‑level computing concepts.
十六进制常用于颜色代码(如 #FF00CC)、内存地址和错误消息中。学会阅读和转换十六进制值为你理解底层计算概念提供了一款强大的工具。
5. Boolean Logic: Building Blocks of Decision Making | 布尔逻辑:决策的基石
Boolean logic deals with values that are either true or false (1 or 0). Computers use logic gates to perform operations on binary inputs. The three fundamental gates are AND, OR, and NOT. Understanding their truth tables is essential for designing circuits and writing conditional code.
布尔逻辑处理的是真或假(1 或 0)的值。计算机使用逻辑门对二进制输入执行操作。三种基本门是 AND、OR 和 NOT。理解它们的真值表对于设计电路和编写条件代码至关重要。
The AND gate outputs 1 only when both inputs are 1. The OR gate outputs 1 if at least one input is 1. The NOT gate simply inverts the input: 1 becomes 0, and 0 becomes 1.
AND 门仅当两个输入都为 1 时才输出 1。OR 门在至少一个输入为 1 时输出 1。NOT 门简单地将输入反转:1 变为 0,0 变为 1。
Here is the truth table for the AND operation with two inputs, A and B:
以下是两输入 A 和 B 的 AND 运算真值表:
| A | B | A AND B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Boolean expressions can be combined. For example, Q = (A AND B) OR NOT C. Evaluating such expressions step by step strengthens your logical reasoning, which you will use both in programming and in hardware theory.
布尔表达式可以组合。例如 Q = (A AND B) OR NOT C。逐步求值此类表达式可以增强你的逻辑推理能力,这在编程和硬件理论中都会用到。
6. Introduction to Programming Concepts | 编程概念简介
Programming is the process of writing instructions that a computer can execute. In Year 9, you will typically use Python, a high-level language known for its readability. A program is a sequence of statements that the computer follows line by line, unless control structures alter the flow.
编程是编写计算机可以执行的指令的过程。在九年级,你通常会使用 Python,这是一种以可读性强而闻名的高级语言。程序是一系列语句,计算机逐行执行,除非控制结构改变了流向。
Your first program is often a simple 'Hello, world!' print statement. In Python, this is written as print("Hello, world!"). This instruction tells the computer to display the text inside the quotation marks on the screen.
你的第一个程序通常是一个简单的“Hello, world!”打印语句。在 Python 中,这写成 print("Hello, world!")。这条指令告诉计算机在屏幕上显示引号内的文本。
Algorithms are step-by-step procedures for solving a problem. Before writing code, you should plan your algorithm using pseudocode or a flowchart. Pseudocode is a way of describing an algorithm in plain but structured language, without worrying about the exact syntax of a programming language.
算法是解决问题的分步过程。在编写代码之前,你应该使用伪代码或流程图来规划算法。伪代码是一种用清晰但有结构的语言描述算法的方式,无需担心编程语言的确切语法。
Example pseudocode for adding two numbers might read: INPUT number1, INPUT number2, SET sum = number1 + number2, OUTPUT sum. Translating this into Python trains you to think like a programmer.
将两个数相加的伪代码示例可写为:INPUT number1, INPUT number2, SET sum = number1 + number2, OUTPUT sum。将这转化为 Python 代码可以训练你像程序员一样思考。
7. Variables and Data Types | 变量与数据类型
Variables are containers for storing data values. In Python, you create a variable by assigning a value to a name using the equals sign. For example, age = 14 stores the integer 14 in the variable named 'age'. Variables can be updated as the program runs.
变量是用于存储数据值的容器。在 Python 中,你通过等号给一个名字赋值来创建变量。例如,age = 14 将整数 14 存储在名为 'age' 的变量中。变量可以在程序运行时更新。
Python has several basic data types. Integer (int) for whole numbers, float for decimal numbers, string (str) for text, and Boolean (bool) for True/False values. Python dynamically assigns the type, but you must use data that is appropriate for the operation.
Python 有几种基本数据类型。整数 (int) 用于整数,浮点数 (float) 用于小数,字符串 (str) 用于文本,布尔值 (bool) 用于 True/False 值。Python 动态分配类型,但你必须使用适用于操作的数据。
For instance, you cannot directly add a string and an integer. To combine them, you need to convert the integer to a string using str(): print("You are " + str(age) + " years old"). Understanding type conversion is critical for writing robust programs.
例如,你不能直接将字符串和整数相加。若要组合它们,需要使用 str() 将整数转换为字符串:print("You are " + str(age) + " years old")。理解类型转换对编写健壮的程序至关重要。
Arithmetic operators include +, -, *, / (true division), // (integer division), % (modulus, remainder), and ** (exponent). For example, 15 // 4 yields 3, while 15 % 4 yields 3.
算术运算符 包括 +、-、*、/ (真除)、// (整除)、% (求模,余数) 和 ** (乘方)。例如,15 // 4 结果为 3,而 15 % 4 结果为 3。
8. Control Structures: Selection and Iteration | 控制结构:选择与循环
Programs often need to make decisions. The if, elif, and else whether a condition is True or False. Conditions usually involve comparison operators: ==, !=, <, >, <=, >=.
程序经常需要做出决策。Python 中的 if、elif 和 else 语句允许选择:程序根据条件是否为真执行不同的代码块。条件通常涉及比较运算符:==、!=、<、>、<=、>=。
For example, the following code checks a temperature and prints a message:
例如,下面的代码检查温度并打印消息:
if temperature > 30: print("It's hot") elif temperature < 10: print("It's cold") else: print("It's pleasant")
Iteration means repeating a block of code. Python provides two main loops: while (repeats while a condition remains true) and for (iterates over a sequence, like a range of numbers).
迭代意味着重复执行一段代码。Python 提供两种主要循环:while(当条件为真时重复)和 for(遍历一个序列,如数字范围)。
Using for i in range(5): will loop 5 times, with i taking values 0, 1, 2, 3, 4. Loops are essential for tasks like processing lists, summing numbers, or creating patterns. Always ensure your loop has a terminating condition to avoid an infinite loop.
使用 for i in range(5): 将循环 5 次,i 依次取值 0、1、2、3、4。循环对于处理列表、求和或创建模式等任务至关重要。务必确保循环有终止条件以避免无限循环。
9. Writing and Tracing Algorithms | 编写与追踪算法
An algorithm is a finite set of well-defined steps to solve a problem. Common examples include searching and sorting. In Year 9, you will design simple algorithms and trace their execution to understand how they work.
算法是解决问题的有限个定义明确的步骤。常见示例包括查找和排序。在九年级,你将设计简单的算法并跟踪其执行过程以理解它们如何工作。
A linear search checks each item in a list one by one until the target is found. A bubble sort repeatedly compares adjacent items and swaps them if they are in the wrong order. Tracing involves recording the values of variables after each step.
线性查找逐个检查列表中的每一项,直到找到目标。冒泡排序重复比较相邻项,如果顺序错误则交换它们。追踪涉及在每一步后记录变量的值。
Flowcharts are a graphical way to represent algorithms. Symbols include ovals for start/end, parallelograms for input/output, rectangles for processes, and diamonds for decisions. Drawing a flowchart before coding clarifies the logic.
流程图是表示算法的图形化方法。符号包括用于开始/结束的椭圆、用于输入/输出的平行四边形、用于处理的矩形,以及用于决策的菱形。在编程前绘制流程图可以理清逻辑。
Example: an algorithm to find the larger of two numbers can be drawn as a diamond asking 'Is A > B?', with two output branches. Translating such a diagram into Python strengthens your ability to abstract a problem.
示例:找出两个数中较大者的算法可以画成一个询问“Is A > B?”的菱形,带有两个输出分支。将这样的图转化为 Python 代码增强了你抽象问题的能力。
10. Computer Networks and the Internet | 计算机网络与互联网
A network connects two or more computers so they can share resources and communicate. A Local Area Network (LAN) covers a small geographical area, such as a school or home. A Wide Area Network (WAN) spans large distances; the Internet is a global WAN.
网络连接两台或多台计算机,使它们可以共享资源和通信。局域网 (LAN) 覆盖一个小的地理区域,如学校或家庭。广域网 (WAN) 跨越长距离;互联网是一个全球性的 WAN。
Networks rely on hardware such as switches, routers, and network interface cards (NICs). A switch connects devices within a LAN. A router forwards data packets between different networks, often connecting a LAN to the Internet.
网络依赖诸如交换机、路由器和网络接口卡 (NIC) 等硬件。交换机连接 LAN 内的设备。路由器在不同网络之间转发数据包,通常将 LAN 连接到互联网。
Data is transmitted using protocols—rules that govern communication. The TCP/IP protocol suite is the foundation of the Internet. TCP ensures reliable delivery by breaking data into packets and reassembling them, while IP handles addressing so packets reach the correct destination.
数据使用协议进行传输——协议是控制通信的规则。TCP/IP 协议套件是互联网的基础。TCP 通过将数据拆分成数据包并重新组合来确保可靠传递,而 IP 处理寻址,使数据包到达正确的目的地。
Every device on a network has an IP address, such as 192.168.1.10. Domain names like www.example.com are easier for humans to remember; DNS servers translate these names into IP addresses.
网络上的每台设备都有一个 IP 地址,例如 192.168.1.10。像 www.example.com 这样的域名便于人们记忆;DNS 服务器将这些名称转换为 IP 地址。
11. Cybersecurity: Staying Safe Online | 网络安全:安全上网
Cybersecurity involves protecting systems, networks, and data from digital attacks. As a student, you must be aware of common threats such as malware, phishing, and social engineering, and learn how to guard against them.
网络安全涉及保护系统、网络和数据免受数字攻击。作为一名学生,你必须了解常见威胁,如恶意软件、网络钓鱼和社会工程学,并学会如何防范。
Malware is malicious software designed to damage or gain unauthorised access. Examples include viruses, worms, and ransomware. Phishing emails try to trick you into revealing passwords or personal information by pretending to be a legitimate source.
恶意软件是旨在造成损害或未经授权访问的恶意软件。示例包括病毒、蠕虫和勒索软件。网络钓鱼电子邮件假装来自合法来源,试图诱骗你泄露密码或个人信息。
Strong passwords are a first line of defence. Use a mix of upper and lower case letters, numbers and symbols, and avoid using the same password across multiple sites. Two-factor authentication adds an extra layer of security by requiring a second verification step.
强密码是第一道防线。使用大小写字母、数字和符号的组合,并避免在多个网站上使用相同的密码。双因素身份验证通过要求第二个验证步骤增加了额外的安全层。
Encryption scrambles data so that only authorised parties can read it. When you see 'https' and a padlock icon in your browser, the connection is encrypted using protocols like TLS. Understanding these concepts helps you become a responsible digital citizen.
加密会打乱数据,只有经授权方才能读取。当你在浏览器中看到“https”和挂锁图标时,连接使用 TLS 等协议进行了加密。理解这些概念有助于你成为一名负责任的数字公民。
12. Summer Study Plan and Useful Resources | 暑期学习计划与实用资源
To make the most of your summer preparation, create a weekly schedule that covers each of the topics above. Aim for three short study sessions per week, each lasting about 45 minutes. Include hands‑on coding practice using a free online Python interpreter or a local IDE.
为了充分利用暑期预习,请制定一个涵盖上述每个主题的每周时间表。目标是每周进行三次短时间学习,每次约 45 分钟。包括使用免费的在线 Python 解释器或本地集成开发环境进行动手编码练习。
Start with computer system basics, then move to binary and hex. After that, alternate between theory (logic, networks, security) and programming exercises. Keep a notebook to write down key definitions, truth tables, and pseudocode examples—this reinforces memory.
从计算机系统基础开始,然后转向二进制和十六进制。此后,交替进行理论学习(逻辑、网络、安全)和编程练习。准备一个笔记本,记下关键定义、真值表和伪代码示例——这可以强化记忆。
Use interactive websites that allow you to practise binary conversions and logic gate simulations. Many free platforms also offer Python challenges with instant feedback. If you encounter bugs, read error messages carefully—they tell you exactly what went wrong.
使用允许你练习二进制转换和逻辑门模拟的互动网站。许多免费平台还提供带有即时反馈的 Python 挑战。如果遇到错误,请仔细阅读错误消息——它们会确切地告诉你什么地方出了问题。
Recommended daily routine: review one topic from this article, complete one short coding task, and spend 10 minutes typing up pseudocode for a simple problem. By the end of the summer, you will have built a solid foundation ready for Year 9 Computer Science.
推荐的每日例行任务: 复习本文中的一个主题,完成一项简短的编码任务,并花 10 分钟为一个简单问题编写伪代码。到暑期结束时,你将建立一个坚实的基础,为九年级计算机科学做好准备。
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)

或截图后用「扫一扫 → 相册」选择本图