Computer Science - 9210 OxfordAQA

Structured Programming

Aperçu

Two programs do the same job. One is nine hundred lines in a single block, with a handful of variables that anything can change and a control flow that jumps forwards and backwards. The other is thirty named blocks of thirty lines, each one handed exactly what it needs and handing back exactly what it produced. Both work today. Only one of them can be changed next year by somebody who did not write it.

That difference is what this topic is about. The structured approach is not a language feature or a syntax rule; it is a way of building programs, and the specification names its parts precisely: modularised programming, clear and well documented interfaces made of local variables and parameters, and return values. This lesson describes each of those, explains the advantages the approach brings, and shows what the alternative actually looks like, because the advantages are hard to feel until you have seen the problem they solve.

Objectifs

  1. Describe the structured approach to programming.
  2. Explain the advantages of the structured approach.

Carte mentale

Ce theme est schematise pour montrer comment les idees se relient.

Ouvrez la carte mentale dans l'application

Note de cours

The specification asks two things about the structured approach: describe it, and explain its advantages. The describing half is the one candidates lose marks on, because it is easy to answer with the word tidy and stop. The specification is specific about what a description must contain, and it names three elements.

Fiche complete disponible sur l'application Green Bridge

Installez l'application Green Bridge CBT sur votre telephone ou votre ordinateur pour acceder a toute la bibliotheque IGCSE : sujets d'examen, baremes, cartes mentales, fiches memo et lecons audio.

Notes de cours complètes avec diagrammes
Assistant d'apprentissage piloté par l'IA
Des examens blancs chronometres, corriges des que vous terminez
Disponible sur Android, Windows, macOS et Linux Application iOS bientot disponible

Évaluation de la leçon

Félicitations, vous avez terminé la leçon sur Structured Programming. Maintenant que vous avez exploré le concepts et idées clés, il est temps de mettre vos connaissances à lépreuve. Cette section propose une variété de pratiques des questions conçues pour renforcer votre compréhension et vous aider à évaluer votre compréhension de la matière.

Vous rencontrerez un mélange de types de questions, y compris des questions à choix multiple, des questions à réponse courte et des questions de rédaction. Chaque question est soigneusement conçue pour évaluer différents aspects de vos connaissances et de vos compétences en pensée critique.

Utilisez cette section d'évaluation comme une occasion de renforcer votre compréhension du sujet et d'identifier les domaines où vous pourriez avoir besoin d'étudier davantage. Ne soyez pas découragé par les défis que vous rencontrez ; considérez-les plutôt comme des opportunités de croissance et d'amélioration.

  1. Which of these is NOT part of the structured approach as described in the specification? A. Clear, well documented interfaces B. Modularised programming C. Return values D. Using global variables to share data between modules Answer: D
  2. What is a module? A. A file that stores program data B. A self-contained part of a program that performs one identifiable task C. A variable that can be seen throughout a program D. A loop that repeats a fixed number of times Answer: B
  3. Which term does the specification say examinable material will use for both arguments and parameters? A. Argument B. Interface C. Parameter D. Variable Answer: C
  4. Why does the structured approach make errors easier to find? A. Programs written this way contain fewer statements B. A local variable can only have been changed inside its own module C. The compiler checks structured programs more thoroughly D. Structured programs run more slowly, so faults are visible Answer: B
  5. A module can be rewritten without affecting any of the code that calls it, provided that: A. It is called only once B. It contains no loops C. It uses only global variables D. Its interface is unchanged Answer: D

Travaillez ces questions dans l'application

Travaillez ces questions dans l'application

Pratiquez des questions blanches

Vous voulez vous entraîner sur des questions blanches sur Structured Programming ? Téléchargez lapplication Green Bridge CBT pour accéder à des questions blanches et à des évaluations complètes sur ce sujet.

Téléchargez l'application sur Google Play.

Tout ce dont vous avez besoin pour exceller au JAMB, WAEC et NECO.

Green Bridge CBT Mobile App
Assistant de chat d'apprentissage personnalisé par IA
Plus de 200 000 questions d'examen IGCSE, JAMB, WAEC et NECO.
Plus de 1200 notes de cours
Assistance Hors Ligne - Apprenez à Tout Moment, Partout
Horaire du Pont Vert
Résumés littéraires et questions potentielles
Suivez vos performances et votre progression
Explications Approfondies pour un Apprentissage Complet