Attribute: A-Level Computer Science Definition

James Woodhouse

Written by: James Woodhouse

Reviewed by: Robert Hampton

Last updated

What is an attribute?

In A Level Computer Science, an attribute is a characteristic or property of an object in programming and databases. It defines specific details about an entity, such as a user's name in a database or the colour of an object in object-oriented programming.

Attributes in databases vs. programming

  • Databases: Attributes correspond to columns in a table.

  • OOP: Attributes (also called fields or properties) store object-specific data.

Revision resources to ace your exams

Explore attributes in more detail and master other key related terms such as classes, methods, and objects in our revision note pages here:

Attributes (OOP) (OCR A Level Computer Science)

Challenge yourself with our expertly crafted topic questions and strengthen your understanding with our engaging past papers.

A Level Computer Science Revision Resources

Sign up for articles sent directly to your inbox

Receive news, articles and guides directly from our team of experts.

Share this article

James Woodhouse

Author: James Woodhouse

Expertise: Computer Science

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.

Robert Hampton

Author: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

The examiner written revision resources that improve your grades 2x.

Join now