Skip to content

Internal assessment: the computational solution

IB Computer Science SL Topic 9 5:21 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. 这个规模的项目适合设定六到十条标准,最后你要逐条测试。
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, or an odd number of players. 边界数据位于允许范围的边缘,例如最低允许的年级 7,或者奇数个棋手。
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 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. “程序运行良好”说明不了什么。
For criterion 1, evidence that the coach entered each tested result in under thirty seconds with at most three clicks supports a judgement that it is met. 对于标准 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. “快速”可以改为:按下 配对 后,两秒内显示最多四十名棋手的配对结果。
For ages 11 to 18, 15 is normal, 11 or 18 is boundary, and 10, 19 or the word twelve is invalid. 对于 11 到 18 岁,15 是正常数据,11 或 18 是边界数据,10、19 或英文单词“十二” 是无效数据。
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