Computer Science - 9210 OxfordAQA

Arithmetic Operations In A Programming Language

Resumen

A vending machine has 287 cents to give back and a hopper of coins. It cannot hand over 2.87 of anything. It has to work out how many dollars, then how many fifties, then how many twenties, and it does that with two operations that a calculator does not have a button for: whole-number division, and the remainder that whole-number division leaves behind. Almost every time a program has to split a quantity into units, those two do the work.

This lesson covers the five arithmetic operations the specification names: addition, subtraction, multiplication, real division, and integer division including remainders. Four of them behave exactly as they do in mathematics. The fifth is the one that earns marks and solves problems, and the specification devotes its whole additional-information column to explaining it. You will learn what DIV and MOD produce, why the pair of them is usually used together, and the handful of standard tricks that MOD makes possible.

Objetivos

  1. Be familiar with and be able to use:
  2. addition
  3. subtraction
  4. multiplication
  5. real division
  6. integer division, including remainders.

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

The specification requires you to be familiar with and able to use addition, subtraction, multiplication, real division, and integer division including remainders. The first four hold no surprises: they mean what they mean in arithmetic, and in pseudocode they are written with the ordinary symbols.

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 Arithmetic Operations In A Programming Language. 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. What is the value of 23 DIV 4? A. 3 B. 5 C. 5.75 D. 6 Answer: B
  2. What is the value of 23 MOD 4? A. 0 B. 1 C. 3 D. 5 Answer: C
  3. Which expression tests whether the integer N is a multiple of 3? A. N DIV 3 = 0 B. N MOD 3 = 0 C. N / 3 = 0 D. 3 MOD N = 0 Answer: B
  4. What is the value of 5 + 10 DIV 5? A. 3 B. 7 C. 11 D. 15 Answer: B
  5. A variable Turn holds 2 and is updated by Turn ← (Turn + 1) MOD 3. What does it hold afterwards? A. 0 B. 1 C. 2 D. 3 Answer: A

Resuelve estas preguntas en la aplicacion

Resuelve estas preguntas en la aplicacion

Practica preguntas simuladas

¿Quieres practicar preguntas simuladas sobre Arithmetic Operations In A Programming Language? 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