Computer Science - 9210 OxfordAQA

Programming Concepts

Resumen

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.

Objetivos

  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.

Mapa mental

Este tema esta esquematizado para ver como se conectan las ideas.

Abre el mapa mental en la app

Nota de la lección

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.

Apunte completo disponible en la aplicacion Green Bridge

Instala la aplicacion Green Bridge CBT en tu movil u ordenador para acceder a toda la biblioteca IGCSE: examenes anteriores, criterios de correccion, mapas mentales, tarjetas de estudio y lecciones en audio.

Notas de lección completas con diagramas
Asistente de aprendizaje con IA
Simulacros cronometrados que se corrigen en cuanto terminas
Disponible en Android, Windows, macOS y Linux App para iOS proximamente

Evaluación de la lección

Felicitaciones por completar la lección del Programming Concepts. Ahora que has explorado el conceptos e ideas clave, es hora de poner a prueba tus conocimientos. Esta sección ofrece una variedad de prácticas Preguntas diseñadas para reforzar su comprensión y ayudarle a evaluar su comprensión del material.

Te encontrarás con una variedad de tipos de preguntas, incluyendo preguntas de opción múltiple, preguntas de respuesta corta y preguntas de ensayo. Cada pregunta está cuidadosamente diseñada para evaluar diferentes aspectos de tu conocimiento y habilidades de pensamiento crítico.

Utiliza esta sección de evaluación como una oportunidad para reforzar tu comprensión del tema e identificar cualquier área en la que puedas necesitar un estudio adicional. No te desanimes por los desafíos que encuentres; en su lugar, míralos como oportunidades para el crecimiento y la mejora.

  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

Resuelve estas preguntas en la aplicacion

Resuelve estas preguntas en la aplicacion

Practica preguntas simuladas

¿Quieres practicar preguntas simuladas sobre Programming Concepts? Descarga la aplicación Green Bridge CBT para acceder a preguntas simuladas y evaluaciones completas sobre este tema.

Descarga la aplicación en Google Playstore.

Todo lo que necesitas para destacar en JAMB, WAEC y NECO.

Green Bridge CBT Mobile App
Asistente de Chat de Aprendizaje Personalizado con IA
Más de 200.000 preguntas de examen de IGCSE, JAMB, WAEC y NECO.
Más de 1200 notas de lecciones
Soporte sin conexión: Aprende en cualquier momento y lugar.
Horario del Puente Verde
Resúmenes de Literatura y Preguntas Potenciales
Controla tu rendimiento y progreso.
Explicaciones detalladas para un aprendizaje integral