COMPSCI 61A Study Guide - Midterm Guide: Init, Breakfast Cereal, Linked List
zogo39484755 and 6 others unlocked
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents
Document Summary
Midterm 2: you have 2 hours to complete the exam, the exam is closed book, closed notes, and closed electronics, except two 8. 5 11 cheat sheets, and the. Environment diagram rules: mark your answers on the exam itself. Answers outside of the space allotted to problems will not be graded. If you are not sure of your answer you may wish to provide a brief explanation. Ducks are cool! p = pet(4) p. self. name p. sleep() q = rubberduck() p. name + q. name print(q. debug()) 3: (12 points) environment diagrams (a) (6 pt) saturday morning. 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. You may want to keep track of the stack on the left, but this is not required. Fill in the enviroment diagram that results from executing the code below until the entire program is nished, an error occurs, or all frames are lled.