COMPSCI 61A Study Guide - Midterm Guide: Cheat Sheet, Iter, Binary Logarithm
zogo39484755 and 6 others unlocked
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents
Document Summary
If you are not sure of your answer you may wish to provide a brief explanation. All the work on this exam is my own. (please sign) 2: (12 points) the call express is delayed. For each of the following call expressions, write the value to which it evaluates and what would be output by the interactive python interpreter. The rst two rows have been provided as examples. 3: (12 points) protect the environment (a) (6 pt) fill in the environment diagram that results from executing the code below until the entire program is nished, an error occurs, or all frames are lled. Global frame mask = lambda horse: horse(2) f1: horse horse(mask) horse mask horse mask func horse(mask) func (horse) 4 (b) (6 pt) fill in the environment diagram that results from executing the code below until the entire program is nished, an error occurs, or all frames are lled.