Data Types, Data Structures and Algorithms

Cards (6)

  • Modularity is the concept of breaking a large program or problem down into smaller chunks
  • The goal is to design a program in such a way that each module carries out a single, specific task
  • Depending on the course, textbook or programming paradigm you are using, these modules my e referred to by different names:
    • Subroutines
    • Procedures
    • Functions
    • Methods
  • In the exam, you need to think of the exam as either procedures or functions - and understand the difference between the two
  • A procedure is a block of code that takes in zero, one or more parameters and performs a set task
  • A procedure is a block of code that takes in zero, one or more parameters and performs a set task; and returns a value