CSC108H1 Study Guide - Midterm Guide: Docstring, List Of Most Luminous Stars

75 views9 pages
7 Mar 2019
School
Course
Professor
yifanyang and 39659 others unlocked
CSC108H1 Full Course Notes
21
CSC108H1 Full Course Notes
Verified Note
21 documents

Document Summary

On the following page, show the ve lines of output that this code produces. Strong hint: use the blank space provided to trace the code using the memory model. Each of these subquestions contains a block of code. Treat each block of code independently (code in one question is not related to code in another), and ll in the blanks for each question. [1 mark] order of execution var_a = [5] var_b = var_a var_a[0] = 10. After this code is executed, the value of var b is _______________. The table to the right shows one way in which one might de- cide when to buy groceries. If you have an empty fridge, then you need to buy groceries, as is the case if you haven"t bought groceries for a week in which case you may need to replenish some of the things that go bad.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents