Skip to content

Selection · ⁨选择(分支)⁩

English

Programs make choices

  • Selection means the program picks what to do based on a condition.
  • A condition is a question that is True or False.
  • This is a key idea in AP CSP: code that decides.
中文

程序会做选择

  • 选择(selection)是指程序根据一个条件来决定做什么。
  • 条件是一个结果为 True 或 False 的问题。
  • 这是 AP CSP 的核心思想:会做判断的代码。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩