Back to marketplace

Unit 2

No description yet. This curated deck is ready for daily study.

Total cards: 4•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (4)

#1
Front (Question)

What are the data structure table column names?

Back (Answer)

• field name • keyfield • data type • field length • validation

#2
Front (Question)

What requirements could there be in a given scenario?

Back (Answer)

• interface: would a GUI or CLI be more suitable? • data structures: Would arrays (short term) or files (long term) be more suitable for storing the data needed? • file handling: How should the files be stored? Serially? • validation: what fields can you apply what validation techniques to? Specific fields? • variables: what are the advantages and disadvantages of local and global variables? • data types: How would the user input each data type? remember to be specific to the scenario and the programming language (python)

#3
Front (Question)

How do you open a file in python?

Back (Answer)

file = open(“filename.txt”)

#4
Front (Question)

What parameters can be passed into the “open()” function?

Back (Answer)

• “x” creates the file • “r” opens the file for read only • “w” overwrites the file • “a” adds to the end of the file • “r+” reads and overwrites • “a+” reads and adds to a file