Computer Languages
Elements

This section of the course covers the basic elements in programming languages.

The following elements can be found in most programming languages:

  • Statements & Keywords: related lines of code form a statement. Each statement has a beginning and an end. Instructions within the statement are called keywords.
  • Variables: these store data for the program to work with. A variable could contain text or numerical values.
  • Subroutines: group parts of a program together.
  • Conditional Statements: such as 'if/then/else' or 'case/switch', make decisions in the program.
  • Loops: such as 'do/while', 'for/next' or 'repeat/until' repeat parts of a program.