Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Online Courses / University Track / Computing Foundations

Module 3 of 8

Logic and Decisions

Learn how a method decides which steps to run, using true and false values, comparisons, AND, OR, NOT and chains of if and else.

  • 6 hours
  • Outcomes O3
  • Checkpoint: 80% to unlock Module 4

Big idea. A condition is a yes-or-no question about the data, and every decision in a program is built from such questions.

Outcomes served. O3 (use logic and conditions to control which steps a method takes).

Plan your six hours

Assumed. Modules 1 and 2: stating a problem, tracing steps by hand and counting in binary. No new mathematics is needed.

Where this topic appears in practice. Every form that validates an entry, every ticket price and every spam filter uses conditions. If you can state a rule exactly and test it at its boundaries, you can check that software follows it. See the encyclopedia entry on the algorithm.

Privacy. Your answers stay with you. This course does not store, collect or send anything you write or tick.