



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Your Name: _______________________________________________________________ 1 / 5
____ Syntax error 1. The term describing a list that is an element of another list. ____ Runtime error 2. A name which refers to a value. ____ Semantic error 3. The term for when a function calls itself. ____ Linear search 4. A programming error which occurs when program is executed. ____ Element 5. The type of search which starts at the median of a sorted list and disregards half of the list with each search to find a certain number. ____ Mutable 6. The type of sort where the new array is built one element at a time and has O(n^2 ) time. ____ Variable 7. The type of search which looks at every element in a list until a certain number is found. ____ Merge sort 8. The term for a value in a list (or another type of sequence). ____ Nested list 9. A programming error which makes the program do something other than the programmer intended. ____ Recursion 10. The sort where a list is split in half; each sublist is recursively split. Lists with one element are sorted into a new list in O(n log n) time. ____ Insertion sort 11. A programming error which occurs when Python finds an error with the basic structure of code. ____ Binary search 12. The term describing compound data types which allow the programmer assign new values to elements. Your Name: _______________________________________________________________ 2 / 5
Write a program to create ascii art (looking at the green value of each pixel and determining whether to change to a โ. โ, a โ- โ, a โx โ or an โX โ by darkness). Write to a new file called โpic.txtโ. Your Name: _______________________________________________________________ 5 / 5
Write a function taking no parameters that could theoretically run forever. Extra Credit: