Structured programming

Cards (38)

  • What is the focus of Section Seven?
    Design, Testing, and Ideas
  • How can subprograms be used in programming?
    To store a whole set of instructions
  • What is a typical use of a single program in structured programming?
    To perform specific and simple tasks
  • What do structured diagrams help with in programming?
    • They make creating programs easier
    • They show smaller tasks of a larger program
  • What do structured diagrams represent in programming?
    Smaller tasks of a larger program
  • How are structured diagrams created?
    By decomposing the program into modules
  • What is the purpose of creating modules in programming?
    To manage manageable modules for coding
  • How do smaller modules contribute to programming?
    They can be further decomposed into tasks
  • What can simple subprograms be written to do?
    Carry out each individual task
  • How can you design a program simulating a game of noughts and crosses?
    By using smaller tasks for each action
  • What might smaller tasks in a game simulation include?
    Taking turns and checking for winners
  • What can additional modules do in a program?
    Be added if parts of the program change
  • How can you set up a new game in programming?
    By resetting the program names of rounds
  • What should you do after playing a game in programming?
    Work out the winner
  • What is the purpose of resetting the program names?
    To prepare for a new game round
  • Who goes first in the game?
    The player chosen to start
  • How can modules be broken down in programming?
    Into individual tasks for easier management
  • What can individual subprograms and modules be?
    Fixed and updated without affecting others
  • How can you reuse subprograms in future programming?
    By integrating them into new programs
  • What is the benefit of reusing subprograms?
    It saves time in future programming tasks
  • What can be tested individually?
    Subprograms and modules
  • How can subprograms and modules be modified?
    They can be fixed and updated without affecting others
  • What can you do with subprograms and modules in future programs?
    You can reuse them in programs you write
  • What should your programs be easy to maintain?
    • Code should be well-maintained
    • Allows for easier updates and fixes
  • What is important when using structured programming?
    Your code must be well-maintained
  • Why is a well-maintained program beneficial?
    It makes it easier for others to understand
  • What should other programmers be able to do with your code?
    Understand what the code does
  • What should programmers be able to change in the source code?
    Parts of the source code without risk
  • What features can improve the maintainability of source code?
    Comments and clear documentation
  • Why are comments important in programming?
    They explain key features of a program
  • What should variables, subprograms, and parameters be named for?
    To refer to what they are
  • How does naming conventions help programmers?
    They help understand what the code does
  • What is the benefit of using subprograms in programming?
    They help understand different parts of a program
  • How can subprograms help in understanding a program's flow?
    They clarify the flow of the program
  • What can comments help other programmers do?
    Understand your programs better
  • Why is it important to follow standard naming conventions?
    It ensures clarity and consistency in code
  • How does clear naming of variables and functions affect programming?
    It makes tracking and understanding easier
  • What is the overall benefit of maintaining clear and understandable code?
    It helps keep track of the program