Week 1 Flashcards
What is data
Values without context or structure
What does information mean in relation to data?
values with context or structure
What is a “type”; give examples
a category for values (int, str, float, bool)
What does value mean in relation to python
objects / words / number - data that python works with.
What are compound values; give examples
combinations of data values (lists, tuples, dictionaries
Name 5 types of simple data used in python
int, str, float, bool, complex numbers, bytes
What is programming
a sequence of instructions that specify how to perform a computation
What are the characteristics of pseudo code
- written in simple English.
- describes how the program works.
- can not be executed by a computer.
- easy for humans to read and understand.
What is an algorithm
step by step instructions that will solve a problem, when followed exactly.
What is meant by bugs in programming
programming errors
What is debugging
tracking down and correcting errors
What is a syntax error
errors in the structure of the program, this is checked first.
What is a run time error
errors that occur only when the program is running (i.e. after syntax errors have been checked)
What is a semantic error
you will not get the result you wanted, but the program will run.
What is meant by input
to get data from a keyboard, file or network
What is meant by output
displaying data on a screen, save to a file or send over the network.
What is a conditional statement
the program checks for certain conditions and runs the code according.
What is meant by repetition
performs an action repeatedly, usually with a variation.
Name 5 basic operators (and the symbols)
- addition - +
- subtractions -
- multiplication *
- division /
- exponentiation (to the power of) **
What is a “list” and name 2 features
[a collection of data] / always sits inside [] square brackets / first value is always recognised a 0.
What is meant by “range” in relation to for x in range function. Name 2 features.
Makes the loop start from the lowest value and finish on the highest. However the highest value is always - highest value - 1.