Past questions › sdd2022-q29
2022 3 marks Extended response The Software Engineering Project (Year 12) Data types
NESA 2022 HSC Software Design and Development (OLD syllabus) - Section II Question 29, with NESA Marking Guidelines
Using an example, explain why programmers need to use different data types in their | 3 code.
Marking criteria
[Question 29] Criteria | Marks • Explains why programmers need to use different data types, and provides an example • Provides a basic explanation of different data types | 2 • Demonstrates some understanding of data types | 1
Sample answer
Sample answer: Different data types are stored and used in different ways. By defining a variable as a particular data type, the programmer can make use of the data in an appropriate way. For example, text data types can have characters appended to them or extracted from them, and are stored in ASCII format with one byte per character, but cannot be used in arithmetic calculations.