Computer Science - 9210 OxfordAQA

Programming Concepts

Aperçu

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.

Objectifs

  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.

Carte mentale

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

Ouvrez la carte mentale dans l'application

Note de cours

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.

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 Programming Concepts. 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 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

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 Programming Concepts ? 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