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
Data Representation and Data Types
Primitive data types and storage requirements
- 3 things to know
- AS Unit 1
Overview
Primitive data type, range of a sixteen-bit signed integer and range of an eight-bit unsigned integer.
What you need to know
Answer each one before you reveal it.
What does the real type hold, and how is it stored?
Why use an integer rather than a real whenever the data allows it?
Questions from this subtopic
Each one with the model answer underneath.
- 1
What is a primitive data type?
Model answer
A primitive data type is one of the basic types built into a language, out of which larger structures such as arrays and records are assembled.
- 2
What values can a Boolean hold, and how much space does it take?
Model answer
It holds only true or false, which needs one bit in principle, but it is usually given a whole byte because a byte is the smallest unit that can be addressed.
- 3
What does the character type hold, and how much space does it need?
Model answer
It holds one symbol stored as its code, taking one byte under extended ASCII, or between one and four bytes under UTF-8 depending on the character.
- 4
How is a string stored, and what determines its size?
Model answer
A string is stored as a sequence of character codes, and its size is the total for those characters plus a small overhead holding either a length count or an end marker, so it varies with how many characters it holds.
- 5
What does the integer type hold, and how much space is typical?
Model answer
It holds a whole number, which may be positive or negative, and it is commonly given two or four bytes.
- 6
What does the real type hold, and how is it stored?
Model answer
It holds a number that may have a fractional part, and it is stored in two pieces, a mantissa carrying the significant digits and an exponent giving the scale, usually in four or eight bytes altogether.
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 Data Representation and Data Types, 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.