Important definitions Flashcards
Define ‘iteration’ (v.)
Iteration is the act of repeating a process with the aim of approaching a desired goal, target or result.
What are three levels of programming languages? (Roughly)
Binary (lowest)
Machine language and assembly (very low)
High level languages of varying power (eg Python)
Define ‘syntax’
The arrangement of words and phrases to create well-formed sentences in a language
Define ‘semantics’
The meaning of a word, phrase, or text.
What is function or method ‘overloading’? Give an example.
When different functions/methods have the same name but different implementations. Eg, print & +: >>> print(1 + 1) 2 >>> print(1.0 + 1) 2.0 >>> print(1 + 'a') TypeError
What is a ‘literal’?
A constant - fixed value with invariant semantics
What is a variable and how do we make one?
Stored value assigned using (=)
Python is an ‘imperative’ language - what does this mean?
Programming that uses statements that change a program’s state (eg x = 2). An imperative program consists of commands for the computer to perform and describes how a program operates.
Python is a ‘dynamically’ typed language - what does the mean?
Implicitly determines type of each literal and variable at runtime.