diff --git a/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/04-machine-interpretation-of-program/README.md b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/04-machine-interpretation-of-program/README.md new file mode 100644 index 0000000..fc5db1d --- /dev/null +++ b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/04-machine-interpretation-of-program/README.md @@ -0,0 +1,29 @@ +# 1.1.4 Machine Interpretation of a Program + +## Session Overview + +This lecture introduces the notion of decomposition and abstraction by specification. It also covers Python modules, functions, parameters, and scoping. Finally, it uses the Python assert statement and type 'str'. + +## Session Activities + +### Lecture Videos + +* [Lecture 4: Machine Interpretation of a Program](http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/unit-1/lecture-4-machine-interpretation-of-a-program/) (00:50:18) + * **About this Video** - Topics covered: Decomposition, module, function, abstraction, formal parameter, actual parameter, argument, assert, scope, mapping, stack, last in first out, LIFO, strings, slicing. + * **Resources**: + * [Lecture Code]() + * [Lecture code handout (PDF)](http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/unit-1/lecture-4-machine-interpretation-of-a-program/MIT6_00SCS11_lec04.pdf) + +## Check Yourself + +### What is decomposition? + +Decomposition breaks a problem into self-contained, manageable parts. + +### What is abstraction? + +Abstraction allows us to ignore the details of a piece of code, and use it as a black box - input x, get y. + +### What is the difference between formal and actual parameters? + +Formal parameters are the names of variables used inside a procedure; actual parameters (or arguments) are the values to those names.