COMP 1405 Study Guide - Midterm Guide: Scantron Corporation, Init
Document Summary
All code on this exam is written in the python programming language and you may assume that it is being run with the parameters -q new or, equivalently, that it has been preceded with from __future__ import division. In cases where there is more than once correct answer, select the most correct/precise answer. Write your name and student number on the top of this question sheet. Calling format_name("pat", "morin", "dr. ") will return (a) the triple ("dr. ", "pat", "morin") (b) the triple ("morin", "pat", "dr. ") (c) the string "dr. Pat morin" (d) the string "morin, pat, dr. " (e) none of the above: consider the following code: def in2ftin(i): return i//12, i%12. Calling in2ftin(74) will return (a) the pair (6, 2) (b) the string "6, 2" (c) the number 6. 2 (d) the number 6. 166666667 (e) none of the above. Calling bar([1, 2, 3, 4]) will return (a) the integer 100 (b) the list [1, 4, 9, 16] (c) the integer 100.