An online bookstore manages inventory using a computer program.
The system tracks books, their quantities, prices, and sales data.
Identify the most appropriate data type for each variable used by the program.
Each data type must be different.
| Variable | Example | Data type |
|---|---|---|
bookTitle | "The Great Gatsby" | |
quantityInStock | 45 | |
bookPrice | 8.99 |
26 exam-style questions on OCR GCSE Computer Science Data types. Each one has a worked solution and a mark scheme showing where the marks go.