Skip to content

Internal assessment: the computational solution

IB Computer Science HL Topic 10 6:01 English narration · English and 中文 subtitles you can switch

space play · ←/→ 5s · j/l 10s · f fullscreen · c subtitles · ,/. speed

Chapters

Transcript
The internal assessment is a computational solution to a real problem. 内部评估是针对真实问题的计算解决方案。
Your teacher gives you the current criteria, word limit and deadlines, because they belong to the IB guide. 你的老师会给你最新的评分标准、字数限制和截止日期,因为这些由 IB 指南规定。
This lesson teaches how to do each stage well, using one invented project, a chess club's results and pairings program, as the running example. 本课以一个虚构项目,即国际象棋俱乐部的比赛结果与配对程序为贯穿全课的例子,讲解如何做好每个阶段。
Start with a real problem for a real person, the end user, whom you can talk to while you work. 从一个真实的人,也就是最终用户的真实问题开始,你在工作过程中要能与这个人交流。
A program that does maths is not a problem. 一个能做数学运算的程序并不是一个问题。
The chess coach spending two hours each week pairing players by hand is. 而国际象棋教练每周花两个小时手动给棋手配对,就是一个问题。
Before you commit, check that you can consult the user several times, that the solution needs a range of techniques, and that you can finish it in time. 确定选题前,先检查你是否能多次咨询用户,解决方案是否需要运用多种技术,以及你是否能按时完成。
Success criteria are the specific, testable things the product must do. 成功标准是产品必须做到的具体、可测试的事项。
Easy to use cannot be tested. “易于使用”无法测试。
The coach enters a result in under thirty seconds, with at most three clicks, can. “教练在最多点击三次的情况下,在三十秒内输入一场比赛的结果”则可以测试。
A strong criterion names who, what, and how it will be checked. 一条好的标准要说明谁做什么,以及如何检验。
Six to ten criteria suit a project of this size, and you will test against every one at the end. 对于这个规模的项目,六到十条标准比较合适,最后你要逐条进行测试。
The weak criterion easy to use cannot be tested. “易于使用”这条薄弱的标准无法测试。
Rewrite it as: the coach can enter a game result in under 30 seconds with no more than three clicks. 把它改写为:教练可以在最多点击三次的情况下,在 30 秒内输入一场比赛的结果。
Now it says who, what, and how it will be checked. 现在它说明了谁做什么,以及如何检验。
Break the problem into parts, then design each one. 将问题分成几个部分,再分别设计。
The chess program splits into storing players and results, updating ratings, making the week's pairings, and the coach's screens. 国际象棋程序分为存储棋手和比赛结果、更新等级分、安排本周配对,以及教练使用的界面。
Design the data as a table of fields and types, each non-trivial algorithm as a flowchart or pseudocode, and each screen as a sketch the user has checked. 用字段和类型表设计数据,用流程图或伪代码设计每个较复杂的算法,用经过用户确认的草图设计每个界面。
And write the test plan before you code. 并且在编写代码之前写好测试计划。
A test plan lists each test, its data and the expected result. 测试计划列出每项测试、测试数据和预期结果。
Normal data is typical and should be accepted. 正常数据具有代表性,应当被接受。
Boundary data sits at the edge, such as year group 7, the lowest allowed. 边界数据位于允许范围的边缘,例如允许的最低年级 7。
An odd number of players is a special case that tests whether a bye is handled. 奇数个棋手是一种特殊情况,用于测试是否正确处理轮空。
Invalid data, such as year group 14, should be rejected with a message. 无效数据,例如年级 14,应被拒绝并给出提示。
Every test points to a success criterion, so at the end you can show which are met. 每项测试都对应一条成功标准,这样最后就能说明哪些标准已达到。
For a mark field accepting 0 to 100, test normal values such as 50 and 75, the extreme values 0 and 100 at the boundaries, which must be accepted, and abnormal values such as minus 1, 101, minus 10 and 200, which must be rejected. 对于接受 0 到 100 的分数字段,测试 50 和 75 等正常值,边界上的极值 0 和 100,这些必须被接受;还要测试负 1、101、负 10 和 200 等异常值,这些必须被拒绝。
For each important technique, name it, show a short extract, explain what it does in this product, and say why you chose it. 对于每项重要技术,先说出名称,展示一小段代码,解释它在这个产品中的作用,再说明选择它的原因。
Here, sorting by rating puts players of similar strength side by side, so pairing neighbours keeps rating gaps small, which meets the fairness criterion. 这里,按等级分排序使实力相近的棋手排在一起,因此将相邻棋手配对可以缩小等级分差距,满足公平性标准。
With an odd number of players, the lowest-rated sits out. 如果棋手人数为奇数,等级分最低的人轮空。
A random pairing would be simpler, but could match the strongest player with a beginner. 随机配对会更简单,但可能让最强的棋手与初学者对阵。
If you use a library, a code example from a website, or an AI tool, say where it came from and what you changed. 如果你使用了程序库、网站上的代码示例或 AI 工具,要说明来源以及你做了哪些修改。
This is academic integrity; work that is not yours must be acknowledged. 这是学术诚信的要求;不属于你自己的成果必须注明。
Your own explanation of how the code works is what shows that you understand it. 用自己的话解释代码如何运行,才能表明你理解了它。
Carry out the test plan and record the evidence, a screenshot or short video for each test, with the actual result beside the expected one. 执行测试计划并记录证据,每项测试配一张截图或一段短视频,将实际结果与预期结果并列。
Test 3 rejected year group 14 with a clear message, so it is met. 测试 3 拒绝了年级 14,并给出了清晰的提示,所以通过了。
Test 4 repeated a pair from last week, so it failed. 测试 4 重复了上周的一组配对,所以失败了。
That is not a disaster. 这并不是灾难。
Fix the code by checking last week's pairs, test again, and record both. 修改代码,检查上周的配对,再次测试,并记录两次结果。
An evaluation judges the product against each success criterion, using the test evidence and the user's feedback. 评估要利用测试证据和用户反馈,逐条判断产品是否达到成功标准。
The program works well says nothing. “程序运行良好”没有提供任何信息。
Criterion 1 is met, because in testing the coach entered each result in under thirty seconds using at most three clicks, is evidence. “标准 1 已达到,因为在测试中教练输入每个比赛结果都用了不到 30 秒,点击次数最多为 3 次”才是证据。
Improvements should be specific and linked to evidence, such as printing the pairings, which the coach asked for. 改进建议应当具体,并与证据相联系,例如打印配对结果,这是教练提出的要求。
Fast becomes, the pairings for up to forty players appear within two seconds of pressing Pair. “快速”可以改为:按下“配对”后,2 秒内显示最多 40 名棋手的配对结果。
For ages 11 to 18, 15 is normal, 11 or 18 is special case, and 10, 19 or the word twelve is invalid. 对于 11 到 18 岁,15 是正常值,11 或 18 是特殊情况,10、19 或用英文拼写的数字 12 是无效值。
The test plan comes first so testing is planned from the criteria, not chosen afterwards to suit the product. 先制定测试计划,才能根据标准规划测试,而不是事后挑选迎合产品的测试。
And sorted from the highest, the pairs are 1610 with 1550, 1500 with 1490, and 1420 with 1380, with no bye. 按等级分从高到低排序,配对结果是 1610 对 1550、1500 对 1490、1420 对 1380,没有人轮空。
Check yourself before you hand in. 提交之前先检查一下。
Pick a real user and agree testable criteria early. 选择一位真实用户,并尽早商定可测试的标准。
Follow each criterion through a test in the plan, evidence in testing and a judgement in the evaluation. 对每条标准,都要在计划中安排测试,在测试中提供证据,并在评估中作出判断。
Explain a few techniques well, with a code extract, what it does here and why you chose it. 选取几项技术详细解释,给出代码片段、它在这里的作用以及你选择它的原因。
Acknowledge every library, code source and AI tool, and check each section against the current criteria from your teacher. 注明每个程序库、代码来源和 AI 工具,并根据老师提供的最新标准检查每个部分。

Comments

    Log in or create account

    IGCSE, A-Level & AP