Computer Science - 9210 OxfordAQA

Programming Concepts

Overzicht

There is a startling fact hidden in this topic. Every program ever written, from a twenty-line homework exercise to the software flying an aircraft, is built out of three ways of combining statements and nothing else. Do this, then do that. Do this only if something is true. Do this again and again. Sequence, selection and iteration. Everything else is decoration on top of those three.

This lesson takes each of them apart. You will meet variable and constant declaration and learn why a program bothers to name things at all; you will learn assignment properly, including why the left-hand side and the right-hand side of an arrow are not interchangeable; you will learn definite iteration and both shapes of indefinite iteration, with the condition at the start of the iterative structure and with it at the end; you will nest selection inside selection and iteration inside iteration; and you will find out why an examiner cares what you call your variables.

Doelstellingen

  1. Use, understand and know how the following statement types can be combined in programs:
  2. variable declaration
  3. constant declaration
  4. assignment
  5. iteration
  6. selection
  7. subroutine (procedure/function).
  8. Use definite and indefinite iteration, including indefinite iteration with the condition(s) at the start or the end of the iterative structure.
  9. Use nested selection and nested iteration structures. An example of nested iteration would be:
  10. Use meaningful identifier names and know why it is important to use them.

Mindmap

Dit onderwerp is in kaart gebracht zodat je ziet hoe de ideeen samenhangen.

Open de mindmap in de app

Lesnotitie

A statement is one instruction in a program. On its own a statement does very little; the power comes from how statements are combined. The specification puts it plainly: the three combining principles, sequence, iteration or repetition, and selection or choice, are basic to all imperative programming languages. Imperative means a language built out of commands that change the state of the machine, which covers C#, Python 3 and Visual Basic and very nearly everything else you are likely to meet.

Volledige lesnotitie beschikbaar in de Green Bridge-app

Installeer de Green Bridge CBT-app op je telefoon of computer voor de volledige IGCSE-bibliotheek: examens uit voorgaande jaren, correctiemodellen, mindmaps, flashcards en audiolessen.

Volledige lesnotities met diagrammen
AI-gestuurde leerassistent
Proefexamens op tijd, nagekeken zodra je klaar bent
Beschikbaar voor Android, Windows, macOS en Linux iOS-app binnenkort beschikbaar

Lesevaluatie

Gefeliciteerd met het voltooien van de les op Programming Concepts. Nu je de sleutelconcepten en ideeën, het is tijd om uw kennis op de proef te stellen. Deze sectie biedt een verscheidenheid aan oefeningen vragen die bedoeld zijn om uw begrip te vergroten en u te helpen uw begrip van de stof te peilen.

Je zult een mix van vraagtypen tegenkomen, waaronder meerkeuzevragen, korte antwoordvragen en essayvragen. Elke vraag is zorgvuldig samengesteld om verschillende aspecten van je kennis en kritisch denkvermogen te beoordelen.

Gebruik dit evaluatiegedeelte als een kans om je begrip van het onderwerp te versterken en om gebieden te identificeren waar je mogelijk extra studie nodig hebt. Laat je niet ontmoedigen door eventuele uitdagingen die je tegenkomt; beschouw ze in plaats daarvan als kansen voor groei en verbetering.

  1. Which three principles are used to combine statements in all imperative programming languages? A. Assignment, declaration and output B. Compilation, interpretation and assembly C. Sequence, selection and iteration D. Variables, constants and subroutines Answer: C
  2. Which construct is used for definite iteration? A. FOR ... ENDFOR B. IF ... ENDIF C. REPEAT ... UNTIL D. WHILE ... ENDWHILE Answer: A
  3. Which statement about a REPEAT ... UNTIL loop is correct? A. Its body always runs at least once B. Its body may run zero times C. It runs a number of times known before it starts D. It cannot contain another loop Answer: A
  4. A FOR loop that runs 6 times contains a FOR loop that runs 5 times. How many times is a statement in the inner loop carried out? A. 11 B. 20 C. 30 D. 36 Answer: C
  5. Why are named constants used in programs? A. They make the program run faster B. They let a fixed value be changed in one place and cannot be altered by later code C. They use less memory than variables D. They are required by every programming language Answer: B

Maak deze vragen in de app

Maak deze vragen in de app

Oefen Proefexamenvragen

Wilt u proefexamenvragen over Programming Concepts oefenen? Download de Green Bridge CBT-app voor toegang tot proefexamenvragen en volledige oefentoetsen over dit onderwerp.

Download de app in de Google Playstore

Alles wat je nodig hebt om uit te blinken in JAMB, WAEC en NECO.

Green Bridge CBT Mobile App
Persoonlijke AI Leerchat Assistent
Meer dan 200.000 IGCSE-, JAMB-, WAEC- en NECO-examenvragen.
Meer dan 1200 lesnotities
Offline ondersteuning - Leer altijd en overal
Dienstregeling Groene Brug
Literatuursamenvattingen & Potentiële Vragen
Volg je prestaties en vooruitgang.
Diepgaande Uitleg voor Uitgebreid Leren