Computer Science - 9210 OxfordAQA

Arithmetic Operations In A Programming Language

Overzicht

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.

Doelstellingen

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

Mindmap

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

Open de mindmap in de app

Lesnotitie

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.

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 Arithmetic Operations In A Programming Language. 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. 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

Maak deze vragen in de app

Maak deze vragen in de app

Oefen Proefexamenvragen

Wilt u proefexamenvragen over Arithmetic Operations In A Programming Language 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