Computer Science - 9210 OxfordAQA

Structured Programming

Visão Geral

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.

Objetivos

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

Mapa mental

Este tema esta mapeado para mostrar como as ideias se ligam.

Abra o mapa mental na aplicacao

Nota de Aula

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.

Apontamento completo disponivel na aplicacao Green Bridge

Instale a aplicacao Green Bridge CBT no telemovel ou computador para aceder a biblioteca IGCSE completa: exames anteriores, criterios de correcao, mapas mentais, cartoes de estudo e licoes em audio.

Notas de aula completas com diagramas
Assistente de aprendizagem com IA
Simulacros cronometrados corrigidos assim que termina
Disponível para Android, Windows, macOS e Linux Aplicacao iOS em breve

Avaliação da Lição

Parabéns por concluir a lição em Structured Programming. Agora que você explorou o conceitos e ideias-chave, é hora de colocar seu conhecimento à prova. Esta seção oferece uma variedade de práticas perguntas destinadas a reforçar sua compreensão e ajudá-lo a avaliar sua compreensão do material.

Irá encontrar uma mistura de tipos de perguntas, incluindo perguntas de escolha múltipla, perguntas de resposta curta e perguntas de redação. Cada pergunta é cuidadosamente elaborada para avaliar diferentes aspetos do seu conhecimento e competências de pensamento crítico.

Use esta secção de avaliação como uma oportunidade para reforçar a tua compreensão do tema e identificar quaisquer áreas onde possas precisar de estudo adicional. Não te deixes desencorajar pelos desafios que encontrares; em vez disso, vê-os como oportunidades de crescimento e melhoria.

  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

Resolva estas questoes na aplicacao

Resolva estas questoes na aplicacao

Pratique Questões Simuladas

Quer praticar questões simuladas sobre Structured Programming? Descarregue a aplicação Green Bridge CBT para aceder a questões simuladas e avaliações completas sobre este tópico.

Descarregar a aplicação na Google Play Store

Tudo o que precisas para te destacares no JAMB, WAEC e NECO.

Green Bridge CBT Mobile App
Assistente de Chat de Aprendizagem Personalizada com IA
Mais de 200.000 questões de exame do IGCSE, JAMB, WAEC e NECO
Mais de 1200 Notas de Aula
Suporte Offline - Aprenda a Qualquer Hora, em Qualquer Lugar
Horário da Ponte Verde
Resumos de Literatura & Possíveis Perguntas
Acompanhe o Seu Desempenho e Progresso
Explicações Detalhadas para uma Aprendizagem Abrangente