COMPSCI 61A Study Guide - Midterm Guide: Cheat Sheet, Mos Technology 6502, Higher-Order Function

27 views6 pages
8 Jan 2019
School
Professor
zogo39484755 and 6 others unlocked
COMPSCI 61A Full Course Notes
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) For each of the expressions in the tables below, write the output displayed by the interactive python interpreter when the expression is evaluated. The rst two rows have been provided as examples of the behavior of the built-in pow and print functions. Recall: the interactive interpreter displays the value of a successfully evaluated expression, unless it is none. Expression pow(2, 3) print(4, 5) print(re(1+2), print(4)) cheap(3) cheap(seat(2)) 3: (14 points) supernatural (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. Remember: do not add a new frame when calling a built-in function (such as abs).