Wednesday, April 6, 2:00-3:15pm, PM 153
Test 2 will cover all material from the beginning of the semester through testing but with an emphasis on material covered since Test 1 (including system integration). This material includes everything discussed in lectures and covered in assignments, and aligns with chapters 1-6 and 8-10 from the recommended text. We have covered some additional topics the text has not, and we did not cover the data science additions to each chapter. Because this is a programming principles course, there will be questions related to principles as well as questions that involve syntax. You may be asked to write, analyze, and/or debug code.
if __name__ == "__main__"
in a script?sys.argv
? Suppose
you are writing a script that takes two arguments and computes their
sum; what may do you need to do before adding the arguments?obj
which has initialized instance
fields var1
, _var2
, and __var3
,
which reference does not work? obj.var
,
obj._var2
, obj.__var3
?p = "/path/to/file.txt"
, how
do compute the output path "/output/path/file.json"
?