Computer Science AS OCR
-
1-1-structure-and-function-of-the-processor as5 主题
-
1-2-types-of-processor as3 主题
-
1-3-input-output-and-storage as2 主题
-
2-1-systems-software as8 主题
-
2-3-software-development as5 主题
-
2-4-types-of-programming-language as4 主题
-
3-1-compression-encryption-and-hashing as3 主题
-
3-2-databases as3 主题
-
3-3-networks as8 主题
-
3-4-web-technologies as13 主题
-
html as
-
css as
-
css-styling as
-
javascript as
-
variables-and-constants-in-javascript as
-
outputs-in-javascript as
-
selection-in-javascript- as
-
for-loops-in-javascript- as
-
while-loops-in-javascript- as
-
strings-in-javascript- as
-
operators-in-javascript- as
-
nested-statements-in-javascript as
-
functions-and-procedures-in-javascript as
-
html as
-
4-1-data-types as8 主题
-
4-2-data-structures as4 主题
-
4-3-boolean-algebra as1 主题
-
5-1-computing-related-legislation as4 主题
-
5-2-moral-and-ethical-issues as9 主题
-
6-1-thinking-abstractly as3 主题
-
6-2-thinking-ahead as1 主题
-
6-3-thinking-procedurally as3 主题
-
6-4-thinking-logically as2 主题
-
6-5-thinking-concurrently as2 主题
-
7-1-programming-techniques as9 主题
-
8-1-standard-algorithms-and-big-o-notation as8 主题
capturing-selecting-managing-and-exchanging-data as
Exam code:H046
Capturing Data
How can data be captured?
-
Data can be captured by a computer in many forms, these include:
-
Forms
-
OMR (Optical Mark Recognition)
-
OCR (Optical Character Recognition)
-
Sensors
-
Barcodes
-
Data Mining
-
Forms
-
Collect user input
-
Organise data in structured format
-
Common in web applications

A data capture form
OMR (Optical Mark Recognition)
-
Detects marked areas on paper by using a special machine to read the marks
-
Used for exams, surveys, lottery tickets
-
Automates data collection and entry

An OMR form being filled in
OCR (Optical Character Recognition)
-
Converts printed or handwritten text into digital format
-
Useful for digitising documents
-
Assists in searching and editing text
Sensors
-
Devices that detect and respond to changes in environment
-
Convert physical signals into digital data
-
Facilitates automated data collection and real-time monitoring
-
Used in various applications:
-
Temperature sensors
-
Pressure sensors
-
Proximity sensors
-
Light sensors
-
Motion sensors
-
Humidity sensors
-
Gas sensors
-
Force sensors
-
Acoustic sensors
-
Magnetic sensors
-
![]() |
![]() |
![]() |
Different Types of Sensor
Barcodes
-
Machine-readable representation of data using parallel lines of varying widths and spacings
-
Commonly used for tracking items, inventory management, and point-of-sale systems
-
Two main types:
-
1D (One-dimensional) barcodes: represent data using parallel lines (e.g. on products in shops)
-
2D (Two-dimensional) barcodes: use geometric patterns like squares, dots, or hexagons to store data (e.g. QR code)
-
-
Advantages of Barcodes
-
Fast and accurate data entry
-
Reduces human error
-

A Typical Barcode Scanner
Data Mining
-
Process of discovering hidden patterns, correlations, and insights from large datasets
-
Involves techniques and algorithms from fields like machine learning, statistics, and artificial intelligence
-
Supports decision-making by transforming raw data into valuable information
-
Applications of data mining
-
Marketing: Customer segmentation, market basket analysis, and targeted advertising
-
Finance: Fraud detection, credit scoring, and portfolio management
-
Healthcare: Disease prediction, patient clustering, and drug discovery
-
Manufacturing: Quality control, predictive maintenance, and supply chain optimisation
-
Telecommunications: Network monitoring, customer analysis, and service improvement
-
Selecting Data
Query By Example (QBE)
-
User-friendly method for constructing database queries using a visual interface
-
Allows users to search for data by providing an example of the desired output
-
Key Features
-
Visual representation: QBE uses a grid or form-based interface, where users can enter criteria in columns representing database fields
-
Intuitive: Users don’t need to learn complex query syntax, making it accessible for non-technical users
-
Flexible: Allows for simple to complex queries, including filtering, sorting, and joining multiple tables
-
-
How QBE Works
-
Users enter criteria in the appropriate columns or fields in the QBE grid or form
-
The QBE system translates the user’s input into an equivalent SQL query or other query language
-
The query is executed against the database, and the results are displayed to the user
-
Common Query Operations
-
Filtering: Users can specify conditions or criteria in the QBE grid to retrieve specific records (e.g., all customers from a particular city)
-
Sorting: Users can indicate the desired sorting order for the results (e.g., ascending or descending by last name)
-
Joining: Users can combine data from multiple related tables by specifying relationships between the tables in the QBE grid
-
Aggregation: Users can perform calculations or summaries on the data (e.g., counting the number of records, calculating averages, or summing values)
Benefits and Drawbacks of Query By Example (QBE)
|
Benefits |
Drawbacks |
|---|---|
|
Easy to learn and use, even for non-technical users |
Less powerful and flexible than SQL for complex queries and data manipulation |
|
Visual interface makes it simple to understand and modify queries |
May not support advanced database features, such as stored procedures or triggers |
|
Provides a more accessible way to perform database searches compared to writing SQL queries |
Can be slower than SQL queries for large datasets or complex operations |
Managing & Exchanging Data
Managing data
-
After a database has been created, there must be easy ways of being able to manage the data, this includes:
-
Add new data
-
Edit/modify existing data
-
Delete data
-
-
This can be achieved by:
-
A database manipulation language (DML) such as SQL
-
Built in facilities of a Database Management System (DBMS)
-
Exchanging data
CSV (Comma Separated Values)
-
Simple data exchange format
-
Stores tabular data in plain text
-
Uses commas to separate values
-
Widely supported and easy to parse



Responses