Final Exam
| Save program with good file name right at the start. |
| Populate program with needed objects. |
| Give objects meaningful names. |
| Code (methods) belongs to objects, the object which the code (methods) manipulates. |
| Methods are lanuched through an event, or from other methods. |
| Loops are programming structures which repeat blocks of code. |
| variables store data for further processing. |
| If then statements check for conditions. |
| Lists and Arrays are collections of Variables. |
| A Method imparts action to an object. (a method is code) |
| Methods can receive information about how to run through parameters. |
| syntax is object.method(parm1, parm2, etc) |
| index is the number which identifies the position of a storage box in a list or array. |
| functions return calculations, which can be used to supply needed information to a method via a parameter. |
| Variables are either local (belong to a method) or global (belong to an object) |
| methods may require parameters, but not always. |
AND operator OR operator |
| ****************************************************************************************************** |
| The following is the final exam: |
| ******************************************************************************************************* |
| What useful things did we learn in 1794 for going forward: |
| What is the name of programming software you would recommend for children?.................................Scratch |
| Where would you download that program from?...................................................................................scratch.mit.edu |
| What software would you use to visualize programming concepts (for learning purposes)...................Alice. |
| Where would you download that software from?...................................................................................www.alice.org |
| Regarding the statement cow1.move(up, 5), answer the following: |
| ......What type of construction is "cow1"?...........................................................object |
.......What type of construction is "move"?..........................................................method |
| .......What type of construction is "Up"?.............................................................paramter |
| Explain how the following works in a programming language: x = x +1......................................the new value of x is the old value of x +1. |
| What is a string value?......................................................................characters, either letters, numbers, or symbols. When numbers, math operations cannot be performed upon them. |
| What is the difference between the following two statements: |
| ................x = 23 .............................................This is a number value. X can be used in a math operation. |
| ................Y = "23"............................................The double quotes make it a string. |
| Using the above X and Y values, which of the following statements will result in an error: |
..............z = x + 67 ..............z = y + 67 ...........................................................(this one is invalid) |
| What statement is used to execute code only when some condition is true or false?............................If statement |
| What programming construction is used to repeat blocks of code?......................................................Loops. |
| What are 2 loops that are available in Python?....................................................................................While, For |
| What is a list? |
| .................A special kind of variable that contain more than one value? E.g. the fruits list, containing apple, pear, etc. |