WJEC A-Level Computer Science 601-5345-3
Hardware: Architecture, Memory and Storage
Networks and Data Transmission
Logic Gates and Boolean Algebra
Data Representation and Data Types
Data Structures
Organisation of Data: Files and Records
Database Systems
The Operating System
Algorithms and Programs
Principles of Programming
Systems Analysis
Software Engineering and Program Construction
Types of Software System
Practical Programming
Data Security and Integrity
Computing, Society and the Law
Advanced Data Structures and Logic
Recursion, Sorting and Searching
Programming Paradigms and Translators
System Design and Human-Computer Interaction
Software Engineering Tools and Professional Practice
Advanced Architecture and Assembly Language
Communication Networks and File Organisation
Number Representation and Floating Point
Databases and Distributed Systems
Operating System Management
Software Systems and Applications
Data Security, Cryptography and Attack
Algorithms and Programs
Mathematical and logical operations
- 3 things to know
- AS Unit 1
Overview
Four arithmetic operations used in algorithms and why the order of operations matters, using an example.
What you need to know
Answer each one before you reveal it.
Name four arithmetic operations used in algorithms.
What does the DIV operator return?
Questions from this subtopic
Each one with the model answer underneath.
- 1
Name four arithmetic operations used in algorithms.
Model answer
Addition, subtraction, multiplication and integer division are four, alongside ordinary division and the remainder operation.
- 2
What does the DIV operator return?
Model answer
DIV returns the whole number part of a division, discarding any remainder.
- 3
What does the MOD operator return?
Model answer
MOD returns the remainder left after one whole number is divided by another.
- 4
State the value of 17 DIV 5.
Model answer
The value is 3, because 5 goes into 17 three whole times.
- 5
State the value of 17 MOD 5.
Model answer
The value is 2, because 17 is 5 × 3 with 2 left over.
- 6
How is MOD used to test whether a whole number is even?
Model answer
The number is even when n MOD 2 evaluates to 0, since division by 2 then leaves no remainder.
Other ways to work this
The same content, four other ways.
What is inside Levo
Six ways to work the same material.
Every question in Algorithms and Programs, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.