Computer Science › Section G · Programming languages › Topic G.2

Traditional concepts: variables, types, and control

Python, C, Java and their relatives look different on the page, but underneath they share the same small set of building blocks. Learn these once, properly, and every new language becomes a matter of new spelling rather than new ideas.

In this topic

  • Three kinds of statement
  • Variables and data types
  • The primitive types
  • Arrays and records
  • Literals and named constants
  • Assignment, precedence and overloading
  • Worked example: evaluating expressions
  • Control statements
  • For loops and comments
  • Worked example: tracing a while loop
  • Common mistakes to avoid
  • Key takeaways

This topic is part of Wuanberri Pro. Checking your access…

← Previous topicNext topic →