Final answer:
A cookie is stored as a text file on a device's memory or disk. It contains information such as website preferences and login information.
Step-by-step explanation:
A cookie is stored on your device's memory or disk in a text file format. Cookies are small pieces of data that websites send to your browser and are saved on your device. They contain information such as your website preferences, login information, and browsing history.
Learn more about Storage of cookies