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

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

This focused revision guide covers all essential calculation-based topics in the GCSE AQA Computer Science specification. From number base conversions and binary arithmetic to file size estimation and transmission time, you will find clear worked examples, step-by-step methods, and common pitfalls to avoid. Mastering these skills is crucial for the written examination, where quantitative problems often carry significant marks.

本专项复习指南涵盖了 GCSE AQA 计算机科学考试大纲中所有基于计算的核心主题。从数制转换、二进制运算到文件大小估算和传输时间,您将找到清晰的解题范例、逐步方法和需要避免的常见错误。掌握这些技能对于笔试至关重要,因为定量问题通常占有较大分值。


1. Introduction to Calculation Questions | 计算题概述

Calculation questions in AQA GCSE Computer Science are designed to test your ability to apply theoretical knowledge to numerical problems. These questions are not simply about recalling facts; they require a systematic approach, careful handling of units, and often multi-step reasoning. You can expect to encounter conversions between binary, denary (decimal) and hexadecimal, binary addition with overflow detection, character encoding sizes, and calculations involving image and sound file sizes. Additionally, there are problems on compression ratios and network transmission times. Having a solid grasp of each formula and recognising when to use powers of 2 versus powers of 10 is fundamental.

AQA GCSE 计算机科学中的计算题旨在测试您将理论知识应用于数值问题的能力。这类题目不仅需要记忆事实,更需要有条理的方法、谨慎处理单位,往往还需要多步推理。您将遇到二进制、十进制和十六进制之间的转换,带溢出检测的二进制加法,字符编码大小,以及涉及图像和声音文件大小的计算。此外,还有压缩比和网络传输时间的问题。扎实掌握每个公式,并能够区分何时使用 2 的幂而非 10 的幂,是十分基础的。


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

To convert a binary number into its decimal equivalent, write down the binary digits, aligning each with the appropriate place value starting from 1 on the right and doubling as you move left (1, 2, 4, 8, 16, 32, …). Multiply each binary digit by its corresponding place value, then sum the results. For example, the binary number 1011₂ means: (1 × 8) + (0 × 4) + (1 × 2) + (1 × 1) = 8 + 0 + 2 + 1 = 11 in decimal. Remember that only positions containing a ‘1’ contribute to the total. This method works for any length, though exam questions often use 8‑bit numbers.

将二进制数转换为十进制时,先写出二进制数字,并将每一位与其对应的位权对齐,位权从右侧的 1 开始,向左依次加倍(1, 2, 4, 8, 16, 32, …)。用每个二进制数字乘以其对应的位权,再将结果相加。例如,二进制数 1011₂ 意味着:(1 × 8) + (0 × 4) + (1 × 2) + (1 × 1) = 8 + 0 + 2 + 1 = 11(十进制)。请记住,只有含有“1”的位置才会对总和有贡献。该方法适用于任意长度,但考试题目通常使用 8 位二进制数。


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

The most common method for converting a decimal integer to binary is successive division by 2. Divide the decimal number by 2, record the remainder (which will be 0 or 1), and then divide the quotient by 2 again. Repeat this process until the quotient becomes 0. The binary number is then read from the last remainder obtained down to the first remainder. For instance, to convert 43 to binary: 43 ÷ 2 = 21 remainder 1, 21 ÷ 2 = 10 remainder 1, 10 ÷ 2 = 5 remainder 0, 5 ÷ 2 = 2 remainder 1, 2 ÷ 2 = 1 remainder 0, 1 ÷ 2 = 0 remainder 1. Reading remainders upwards gives 101011₂. You can also use the subtraction method: repeatedly subtract the largest possible power of two and place a 1 in that position; place 0 in skipped positions.

将十进制整数转换为二进制最常用的方法是连续除以 2。用十进制数除以 2,记录余数(余数是 0 或 1),然后将商再次除以 2。重复这一过程,直到商为 0。然后从最后得到的余数向上读到第一个余数,即为二进制数。例如,将 43 转换为二进制:43 ÷ 2 = 21 余 1,21 ÷ 2 = 10 余 1,10 ÷ 2 = 5 余 0,5 ÷ 2 = 2 余 1,2 ÷ 2 = 1 余 0,1 ÷ 2 = 0 余 1。从下往上读取余数,得到 101011₂。您也可以使用相减法:反复减去最大可能的 2 的幂,并在该位置放 1;跳过的位置放 0。


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

Binary addition follows the same principles as decimal addition but is simpler because only four rules apply: 0+0=0, 0+1=1, 1+0=1, and 1+1=0 with a carry of 1 to the next column. When adding two 8‑bit binary numbers, if a carry is generated from the most significant bit (the leftmost bit) into a ninth bit, and the registers can only hold 8 bits, an overflow occurs. Overflow means the result is too large to be represented within the given number of bits. In exam questions, you may be asked to add numbers and state whether an overflow has occurred, or to show the result of the addition including the carry. For example, adding 10101010 and 01110001: 10101010 + 01110001 = (1)00011011, and the carry into bit 9 indicates an overflow. Always check if numbers are unsigned integers; signed representations use two’s complement, but at GCSE you only need to recognise overflow in unsigned addition.

二进制加法遵循与十进制加法相同的原理,但更为简单,因为只有四条规则适用:0+0=0,0+1=1,1+0=1,1+1=0 并产生一个进位到下一位。当两个 8 位二进制数相加时,如果最高有效位(最左边的位)产生进位到第九位,而寄存器只能存储 8 位,就会发生溢出。溢出意味着结果太大,无法在给定的位数内表示。在考试题目中,您可能需要将数字相加并说明是否发生了溢出,或者展示包括进位在内的加法结果。例如,将 10101010 与 01110001 相加:10101010 + 01110001 = (1)00011011,进位到第 9 位表明发生了溢出。请始终注意数字是否为无符号整数;带符号表示法使用二进制补码,但在 GCSE 阶段您只需识别无符号加法中的溢出。


5. Hexadecimal Conversions | 十六进制转换

Hexadecimal (base‑16) is widely used in computing because it provides a more compact way to represent binary. Each hex digit corresponds to a group of 4 binary bits (a nibble). To convert binary to hexadecimal, split the binary number into groups of four bits from the right, then convert each nibble into its hex equivalent (0‑9 and A‑F). For example, 11011010₂ becomes 1101 and 1010; 1101 = D, 1010 = A, giving the hex number DA₁₆. To convert hex to decimal, either first convert hex to binary and then to decimal, or use place values: multiply each hex digit by 16 raised to its position index (starting from 0 on the right). So, 2A₁₆ = (2 × 16¹) + (10 × 16⁰) = 32 + 10 = 42. Memorise the binary equivalents for 0‑F to speed up your exam.

十六进制(基数为 16)在计算机中广泛使用,因为它能以更紧凑的方式表示二进制。每个十六进制数字对应一组 4 个二进制位(一个半字节)。要将二进制转换为十六进制,从右侧开始将二进制数分成四位一组,然后将每个半字节转换为对应的十六进制值(0‑9 和 A‑F)。例如,11011010₂ 分成 1101 和 1010;1101 = D,1010 = A,得到十六进制数 DA₁₆。要将十六进制转换为十进制,可以先将十六进制转换为二进制再转为十进制,或者使用位权:将每个十六进制数字乘以 16 的所在位置次方(从右侧开始,位置索引从 0 开始)。因此,2A₁₆ = (2 × 16¹) + (10 × 16⁰) = 32 + 10 = 42。熟记 0‑F 对应的二进制值,以加快考试中的答题速度。


6. Representing Characters | 字符编码

Computers represent characters using binary codes. The two main character sets you need to know are ASCII and Unicode. Standard ASCII uses 7 bits, allowing 2⁷ = 128 possible characters, including uppercase and lowercase letters, digits, punctuation, and control codes. Extended ASCII uses 8 bits, giving 256 characters, often including symbols for different languages. Unicode, on the other hand, uses a variable number of bits (typically 8, 16, or 32 bits per character) to represent characters from all writing systems worldwide. Calculation questions may ask you to determine the storage required for a given text. For instance, using 7‑bit ASCII, the word ‘Computer’ (8 characters) needs 8 × 7 = 56 bits, which is 7 bytes. Using 16‑bit Unicode, the same word needs 8 × 16 = 128 bits, or 16 bytes. Pay careful attention to whether the question states a fixed byte size per character.

计算机使用二进制码表示字符。您需要了解的两种主要字符集是 ASCII 和 Unicode。标准 ASCII 使用 7 位,可以表示 2⁷ = 128 个可能的字符,包括大写和小写字母、数字、标点符号和控制码。扩展 ASCII 使用 8 位,可表示 256 个字符,通常包含不同语言的符号。相比之下,Unicode 使用可变位数(通常每个字符 8、16 或 32 位)来表示全世界所有书写系统的字符。计算题可能会要求您确定给定文本所需的存储空间。例如,使用 7 位 ASCII,单词“Computer”(8 个字符)需要 8 × 7 = 56 位,即 7 字节。如果使用 16 位 Unicode,同一个单词需要 8 × 16 = 128 位,即 16 字节。请密切关注题目是否指定了每个字符的固定字节数。


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

The size of a bitmap image file can be estimated using the formula: Image size (in bits) = width in pixels × height in pixels × colour depth (bits per pixel). To convert bits to bytes, divide by 8; to convert to kilobytes, divide by 1000 (or 1024 depending on specification; AQA usually expects you to divide by 1000 for kilobytes and then by 1000 for megabytes, but check the context). For example, a 200 × 300 pixel image with a colour depth of 24 bits (allowing 2²⁴ colours) would occupy 200 × 300 × 24 = 1,440,000 bits. That equals 1,440,000 ÷ 8 = 180,000 bytes, or 180 KB (when dividing by 1000). Some questions may ask for the number of colours available given a bit depth: with b bits, 2ᵇ different colours are possible. If you are given the file size and required to find dimensions, work backwards carefully.

位图图像文件的大小可以使用以下公式估算:图像大小(以位为单位)= 宽度像素 × 高度像素 × 色彩深度(每像素位数)。要将位转换为字节,除以 8;要转换为千字节,除以 1000(或 1024,具体取决于规范;AQA 通常要求您除以 1000 得到千字节,再除以 1000 得到兆字节,但应结合语境判断)。例如,一幅 200 × 300 像素、色彩深度为 24 位(可呈现 2²⁴ 种颜色)的图像将占用 200 × 300 × 24 = 1,440,000 位。这等于 1,440,000 ÷ 8 = 180,000 字节,即 180 KB(除以 1000 的情况下)。有些题目可能会要求您在给定位深的情况下计算可用颜色数:若有 b 位,则可呈现 2ᵇ 种不同颜色。如果给出了文件大小并要求计算尺寸,请仔细反向推导。


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

Sound is digitised by sampling the analogue wave at regular intervals. The file size formula for uncompressed sound is: File size (bits) = sample rate (Hz) × bit depth (bits per sample) × number of channels × duration (seconds). For a typical stereo recording (2 channels) at CD quality with a sample rate of 44,100 Hz and 16‑bit depth, a 1‑minute (60‑second) excerpt would require: 44,100 × 16 × 2 × 60 = 84,672,000 bits. In bytes, that is 84,672,000 ÷ 8 = 10,584,000 bytes, which is roughly 10.6 MB. Remember to keep units consistent: if the sample rate is given in kHz, convert to Hz first. Also, be aware that questions may ask for the result in different units; always present your answer in the unit requested. Working with samples, you may need to calculate sample rate given file size and vice versa, so practising equation rearrangement is essential.

声音是通过定期对模拟声波进行采样来实现数字化的。未压缩声音的文件大小计算公式为:文件大小(位)= 采样率(Hz)× 位深度(每样本位数)× 声道数 × 时长(秒)。对于典型的立体声录音(2 个声道),采用 CD 质量,采样率为 44,100 Hz,位深度为 16 位,一段 1 分钟(60 秒)的音频需要:44,100 × 16 × 2 × 60 = 84,672,000 位。转换为字节,即 84,672,000 ÷ 8 = 10,584,000 字节,大约为 10.6 MB。请确保单位一致:如果采样率以 kHz 给出,请先转换为 Hz。还要注意,题目可能会要求以不同单位呈现结果;始终按题目要求的单位提供答案。在处理样本时,您可能需要根据文件大小计算采样率,反之亦然,因此练习公式变型至关重要。


9. Compression Ratios | 压缩比计算

Compression reduces file sizes to save storage space and transmission time. The compression ratio is calculated as: original size ÷ compressed size. For instance, if an original 800 KB image is compressed to 200 KB, the compression ratio is 800 ÷ 200 = 4:1 (read as ‘four to one’). The larger the first number, the more the file has been compressed. A related measure is space saving percentage: ((original − compressed) ÷ original) × 100. Using the same data, (600 ÷ 800) × 100 = 75% saving. You may also be asked to determine the compressed size given a ratio; for a 5:1 ratio, the compressed size is original ÷ 5. Ensure you can distinguish between lossy and lossless compression in context, though the calculation itself is the same. In exam questions, always check whether the ratio is to be given as original:compressed or vice versa.

压缩可以减小文件大小,从而节省存储空间和传输时间。压缩比的计算公式为:原始大小 ÷ 压缩后大小。例如,如果一个 800 KB 的原始图像被压缩到 200 KB,则压缩比为 800 ÷ 200 = 4:1(读作“四比一”)。第一个数字越大,表示文件被压缩得越多。另一个相关的度量是空间节省百分比:((原始大小 − 压缩后大小) ÷ 原始大小) × 100。使用同样的数据,(600 ÷ 800) × 100 = 75% 的节省量。您也可能被要求根据给定比例计算压缩后大小;对于 5:1 的压缩比,压缩后大小 = 原始大小 ÷ 5。请确保能够结合语境区分有损压缩和无损压缩,尽管计算本身是相同的。在考试题目中,务必确认比值是按原始值:压缩值还是反之给出。


10. Network Transmission Time | 网络传输时间计算

To calculate the time needed to transmit a file across a network, use the formula: Time (seconds) = file size (bits) ÷ transmission speed (bits per second). First, ensure that both quantities are in the same unit, usually bits. For example, a 5 MB file is to be transferred over a 100 Mbps connection. Convert file size: 5 MB = 5,000,000 bytes × 8 = 40,000,000 bits. Convert speed: 100 Mbps = 100,000,000 bits per second. Then Time = 40,000,000 ÷ 100,000,000 = 0.4 seconds. Note that network speeds are typically expressed in bits per second (bps), while file sizes are commonly given in bytes; this conversion is a classic source of error. Sometimes you may need to include protocol overhead, but at GCSE the calculation is usually direct. If you are asked how many files can be transferred in a certain time, divide the total bits that can be transferred by the file size in bits.

要计算通过网络传输文件所需的时间,可使用公式:时间(秒)= 文件大小(位)÷ 传输速率(位/秒)。首先,确保两个量使用相同的单位,通常为位。例如,一个 5 MB 的文件要通过 100 Mbps 的连接传输。先将文件大小转换:5 MB = 5,000,000 字节 × 8 = 40,000,000 位。速率转换:100 Mbps = 100,000,000 位/秒。然后,时间 = 40,000,000 ÷ 100,000,000 = 0.4 秒。需要注意的是,网络速率通常以位/秒(bps)表示,而文件大小通常以字节为单位给出;这一转换是典型的错误来源。有时您可能需要计入协议开销,但在 GCSE 阶段,计算通常是直接的。如果被问及在特定时间内可传输多少个文件,请用可传输的总位数除以每个文件的大小(以位为单位)。


11. Additional Practice and Tips | 附加练习与技巧

To excel in calculation questions, create a formula sheet summarising each key equation: binary conversion methods, file size (image and sound), compression ratio, and transmission time. Regularly practise without a calculator when possible, as some AQA papers include non‑calculator sections. Always show your working clearly; marks are often awarded for correct intermediate steps even if the final answer is wrong. Pay special attention to unit prefixes: bit (b) versus byte (B), and be comfortable using both 1000‑based and 1024‑based definitions where specified. In the exam, underline or highlight essential values in the question to avoid misreading. Finally, time yourself while solving arithmetic problems to ensure you can complete them within the required pace. With consistent practice, calculation questions become a reliable source of high marks.

要在计算题中取得优异成绩,请制作一张公式摘要表,总结各关键公式:二进制转换方法、文件大小(图像和声音)、压缩比和传输时间。在条件允许时,定期进行无计算器练习,因为某些 AQA 试卷包含非计算器部分。始终清晰地展示你的解题步骤;即使最终答案有误,正确的中间步骤也往往能得分。特别注意单位前缀:位(b)与字节(B),并能在指定语境中熟练使用基于 1000 和 1024 的定义。考试时,在题目中划出或高亮关键数值以避免误读。最后,在解算术题时计时,以确保能在要求的速度内完成。通过持续练习,计算题将成为获取高分的可靠保障。


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

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

Comments

屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from aleveler.com

Subscribe now to keep reading and get access to the full archive.

Continue reading