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

GCSE CCEA Computer Science: Calculation Practice | GCSE CCEA 计算机科学计算题专项训练

2026-07-14 22:40 · 本文部分内容由AI辅助创作

📚 GCSE CCEA Computer Science: Calculation Practice | GCSE CCEA 计算机科学计算题专项训练

Welcome to the ultimate calculation practice guide for CCEA GCSE Computer Science. This article walks you through the essential quantitative skills you need to master, from number base conversions and binary arithmetic to file size estimation, compression ratios, and data transfer times. Each section provides step-by-step methods, worked examples, and bilingual explanations so you can confidently tackle any calculation-based question in the exam. Remember that all examples follow CCEA conventions, including the use of 1024 for kilobyte and megabyte multipliers unless a question specifies otherwise.

欢迎阅读CCEA GCSE计算机科学计算题终极训练指南。本文将带你掌握所有必需的计算技能,包括进制转换、二进制算术、文件大小估算、压缩比和数据传输时间。每一节都提供了逐步方法和详细示例,并配有中英双语讲解,让你能够自信应对考试中的任何计算题。请记住,所有示例均遵循CCEA惯例,除非题目另有说明,千字节和兆字节的乘数均采用1024。


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

To convert an unsigned binary integer to decimal, write the binary digits above a row of place values starting from 1 on the right and doubling each time moving left (1, 2, 4, 8, 16, 32, 64, 128…). Multiply each binary digit by its place value and sum all the products. For example, the binary number 110101₂ has six bits. Align it under place values 32, 16, 8, 4, 2, 1:

要将无符号二进制整数转换为十进制,首先写下一行从右边1开始、每向左一位翻倍的位权(1、2、4、8、16、32、64、128……)。然后将每个二进制位与对应的位权相乘,最后将所有乘积相加。例如,二进制数110101₂有六位,将其对齐到位权32、16、8、4、2、1下方:

32 16 8 4 2 1
1 1 0 1 0 1

16)+(0×8)+(1×4)+(0×2)+(1×1) = 32+16+0+4+0+1 = 53. Therefore, 110101₂ equals 53 in decimal.

计算:(1×32)+(1×16)+(0×8)+(1×4)+(0×2)+(1×1)=32+16+0+4+0+1=53。因此,110101₂的十进制值为53。


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

To convert a positive decimal integer to binary, repeatedly divide the number by 2 and record the remainder. The first remainder is the least significant bit (rightmost). Continue dividing the quotient until it becomes zero, then read the remainders from bottom to top. Let’s convert 89 to binary:

要将一个正十进制整数转换为二进制,反复对该数除以2并记录余数。第一个余数是最低有效位(最右边)。继续除商直到商为零,然后从下往上读取余数。以89为例:

Reading the remainders upward gives 1011001₂. Thus 89₁₀ = 1011001₂.

从下往上读取余数:1011001₂。因此89₁₀=1011001₂。

For larger numbers, a place-value table can also be used: find the largest power of two less than or equal to your number, subtract it, and repeat.

对于较大的数字,也可以使用权值表:找出不大于该数的最大2的幂,减去它,然后重复上述过程。


3. Hexadecimal Conversions | 十六进制转换

o hexadecimal, group the binary digits into nibbles (4 bits) from the right, padding with leading zeros if needed, then replace each nibble with its hex equivalent. To convert from hex to binary, expand each hex digit into a 4-bit binary nibble.

十六进制(基数为16)使用数字0-9以及字母A-F(A=10,B=11,C=12,D=13,E=14,F=15)。将二进制转换为十六进制时,从右边开始将二进制位分成四位一组(半字节),必要时左侧补零,然后将每组替换为对应的十六进制符号。从十六进制转二进制时,将每个十六进制位展开为四位二进制。

0010 → 010111110010₂. Decimal to hex can be done via binary or by repeated division by 16.

将二进制1110101101₂转为十六进制:分组为0011 1010 1101 → 3 A D,因此结果为3AD₁₆。将十六进制5F2₁₆转为二进制:5=0101,F=1111,2=0010 → 010111110010₂。十进制转十六进制可以通过先转二进制再转十六进制,或者反复除以16得到。


4. Binary Addition and Overflow | 二进制加法与溢出

Binary addition follows the same rules as decimal addition, carrying a 1 when the sum of two bits is 2 (10₂) or three bits sum to 3 (11₂). Always align the numbers by the least significant bit. For example, add 1011₂ (11) and 0110₂ (6):

二进制加法遵循与十进制相同的规则,当两个二进制位相加得2(即10₂)或三个位相加得3(即11₂)时间向前进位。始终按最低有效位对齐。例如,将1011₂(11)与0110₂(6)相加:

1 0 1 1
+ 0 1 1 0
----------
1 0 0 0 1

The result is 10001₂ (17). When adding two 8-bit numbers, carrying into the 9th bit indicates an overflow error if the result is stored in an 8-bit register. Overflow occurs when the result exceeds the maximum value representable in the given number of bits.

结果为10001₂(17)。当两个8位数相加时,如果进位到了第9位,且结果存储在8位寄存器中,则发生溢出错误。当结果超出给定位数可表示的最大值时就会产生溢出。


5. Two's Complement for Negative Numbers | 负数的补码表示

CCEA GCSE requires knowledge of two's complement representation for signed binary integers. For an 8-bit representation, the most significant bit (MSB) represents -128 rather than 128. To find the two's complement of a positive number (i.e. negate it), invert all bits and add 1. Example: represent -35 in 8-bit two's complement.

CCEA GCSE要求掌握有符号二进制整数的补码表示法。在8位表示中,最高有效位(MSB)的权值是-128而不是128。要获得一个正数的二进制补码(即取负),需将所有位取反后加1。示例:用8位补码表示-35。

So -35 is 11011101 in two' sitive place values of the remaining bits. For 11011101: -128 + 64 + 16 + 8 + 4 + 1 = -35.

因此-35的8位补码为11011101。若要将其转回十进制,若MSB为1,则将该位的权值视为负,然后加上其余位的正权值。对于11011101:-128 + 64 + 16 + 8 + 4 + 1 = -35。


6. Image File Size Calculation | 图像文件大小计算

th (bits per pixel). To convert to bytes, divide by 8. For kilobytes, divide by 1024. Example: a 600 by 400 pixel image with a colour depth of 24 bits has:

未压缩位图图像的大小(以位为单位)的计算方法是:宽度(像素)×高度(像素)×颜色深度(每像素位数)。要转换为字节,除以8;转换为千字节,除以1024。示例:一幅600×400像素、颜色深度为24位的图像的大小为:

600 × 400 × 24 = 5,760,000 bits

5,760,000 bits ÷ 8 = 720,000 bytes → 720,000 ÷ 1024 ≈ 703.125 KB.

5,760,000位÷8=720,000字节→720,000÷1024≈703.125千字节。

Remember that metadata (e.g. file headers) may add a small overhead that is usually ignored in exam calculations.

请记住,元数据(如文件头)可能会增加少量额外空间,但在考试计算中通常忽略不计。


广告 / Sponsored

7. Sound File Size Calculation | 声音文件大小计算

ution. For example, a 3-minute stereo recording sampled at 44.1 kHz with a bit depth of 16 bits: 3 minutes = 180 seconds.

未压缩的音频文件大小=采样率(赫兹)×采样深度(位)×声道数×时长(秒)。采样深度有时也称为采样分辨率。例如,一段3分钟的立体声录音,采样率为44.1千赫,采样深度为16位:3分钟=180秒。

44,100 × 16 × 2 × 180 = 254,016,000 bits

gabytes: 254,016,000 bits ÷ 8 = 31,752,000 bytes; ÷ 1024 ≈ 31,007.8 KB; ÷ 1024 ≈ 30.28 MB.

转换为兆字节:254,016,000位÷8=31,752,000字节;÷1024≈31,007.8千字节;÷1024≈30.28兆字节。

Always check whether the question uses 'k' = 1000 or 1024; CCEA questions usually expect 1024 unless stated.

解题时务必留意题目中“k”代表1000还是1024;除非特别说明,CCEA的题目通常采用1024。


8. Text File Size | 文本文件大小

tored as 8 bits, one byte). Extended ASCII uses 8 bits (1 byte). Unicode can use 8, 16, or 32 bits per character. If a question says 'each character is stored as one byte' taining 2048 characters stored in ASCII (1 byte per char) has a size of 2048 bytes = 2 KB.

文本文件中的每个字符根据所用字符集以固定位数编码。标准ASCII使用每字符7位(通常按8位即一个字节存储)。扩展ASCII使用8位(1字节)。Unicode可能使用每字符8、16或32位。如果题目写明“每个字符存储为1个字节”,只需将字符数乘以1字节即可。例如,一个包含2048个字符、以ASCII(每字符1字节)存储的文本文件,其大小为2048字节=2千字节。

uld be 2048 × 2 = 4096 bytes = 4 KB. Always double-check the bits per character specified.

若使用16位Unicode,同一文件将为2048×2=4096字节=4千字节。始终确认题目指定的每字符位数。


9. Compression Ratios | 压缩比

eduction. Formula: compression ratio = uncompressed size / compressed size. For example, if a 24 MB image is compressed to 3 MB, the compression ratio is 24 ÷ 3 = 8 → 8:1. You can also calculate the space saving as (1 - compressed/uncompressed) × 100%. Here, saving = (1 - 3/24) × 100% = 87.5%.

压缩比反映了未压缩文件与压缩文件之间的大小关系,通常以如4:1的比例或百分比缩减量表示。公式:压缩比=未压缩大小÷压缩后大小。例如,一幅24兆字节的图像被压缩为3兆字节,则压缩比为24÷3=8→8:1。也可以计算空间节省率:(1-压缩后大小/未压缩大小)×100%。本例中节省率为(1-3/24)×100%=87.5%。

tio. If the original is 200 KB and the ratio is 5:1, compressed size = 200 KB ÷ 5 = 40 KB.

也可能给出压缩比求压缩后的大小。若原文件200千字节,压缩比为5:1,则压缩后大小=200KB÷5=40KB。


10. Data Transfer Time | 数据传输时间

ities use the same units. Speeds are often given in megabits per second (Mbps) or kilobits per second (kbps). Remember: 1 Mbps = 1,000,000 bits per second (if using decimal definition) or 1,048,576 bps for binary; CCEA may use decimal for network speeds, so read the question carefully. Example: how long to transfer a 100 MB file on a 20 Mbps connection?

计算通过网络传输文件所需时间的公式为:时间(秒)=文件大小(位)/比特率(位每秒)。确保两项使用相同单位。网速通常以兆位每秒(Mbps)或千位每秒(kbps)给出。注意:1 Mbps = 1,000,000 bps(十进制定义)或1,048,576 bps(二进制定义);CCEA在网络速度上可能使用十进制,请仔细审题。示例:在20 Mbps的连接上传输一个100 MB的文件需要多长时间?

= 100 × 8 = 800 megabits = 800,000,000 bits. Time = 800,000,000 ÷ 20,000,000 = 40 seconds.

假设采用十进制:20 Mbps=20,000,000 bps。文件大小=100 MB=100×8=800兆位=800,000,000位。时间=800,000,000÷20,000,000=40秒。

024 × 1024 × 8 = 838,860,800 bits. Time ≈ 41.94 seconds. Always show your working clearly.

如果题目采用二进制兆字节(1 MB=1024×1024字节),文件位数为100×1024×1024×8=838,860,800位,时间≈41.94秒。一定要展示清晰的计算过程。


11. Logic Gate Evaluation | 逻辑门求值

on for each gate output step by step. Example circuit: inputs A and B are fed into an AND gate, output of that AND goes into an OR gate along with input C. Inputs: A=1, B=0, C=1. First, AND output = A AND B = 1 AND 0 = 0. Then final output = 0 OR C = 0 OR 1 = 1.

给定一个逻辑电路图,你可能需要求出特定输入下的输出,或填写真值表。可以逐步确定每个门输出的布尔表达式。示例电路:输入A和B连接到一个与门,该与门的输出和输入C一起进入一个或门。输入:A=1,B=0,C=1。首先,与门输出=A AND B=1 AND 0=0。然后最终输出=0 OR C=0 OR 1=1。

When dealing with NOT gates, simply invert the signal. For an XOR (exclusive OR), output is 1 if inputs are different. Use Boolean notation: overbar for NOT, dot for AND, plus for OR. Practise evaluating multi-level circuits.

遇到非门时直接将信号取反。对于异或门(XOR),当输入不同时输出为1。使用布尔符号:上划线表示非,点表示与,加号表示或。多练习多级电路的求值。


12. Parity Bit Calculation | 奇偶校验位计算

A parity bit is added to a binary string to make the total number of 1s either even (even parity) or odd (odd parity). For even parity, count the 1s in the data bits. If the count is odd, set the parity bit to 1 to make the total even; if already even, set parity bit to 0. Example: 7-bit data 1011000 contains three 1s (odd). For even parity, the parity bit must be 1, so the transmitted 8-bit pattern is 1011000 1 (or 11011000 depending on position).

奇偶校验位被附加到二进制串上,使得“1”的总数为偶数(偶校验)或奇数(奇校验)。对于偶校验,统计数据位中1的个数。如果个数为奇数,则将校验位设为1以使总数为偶数;如果已经是偶数,则校验位设为0。示例:7位数据1011000包含3个1(奇数)。使用偶校验时,校验位应为1,因此传送的8位模式为10110001(或根据位置可以是11011000)。

If the question asks for odd parity, do the opposite: make the total number of 1s odd. Parity bits allow detection of single-bit errors but cannot correct them.

如果题目要求奇校验,则相反操作:让1的总数变为奇数。奇偶校验位可以检测出单比特错误,但无法纠正它们。

Published by TutorHao | Computer Science Revision Series | aleveler.com

广告 / Sponsored
培生爱德思计算机科学学生用书教材Pearson Edexcel International GCSE Computer…
计算机 备考教辅 · 正版现货 · 与本文内容相关
查看详情 / View on Taobao参考价 ¥349.0

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

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