Problem 1
True or false problems with wrong-answer penalties:
· We can put a keyword argument before a non-keyword argument.
· If a recursive program runs out of memory while executing, then it’s non-recursive version also run out of memory while executing with the same input data set.
· Python keeps only one instance of each unique value of a primitive-type if the size of the value is more than a machine word.
Problem 2
Please fix the bug in the following Python program which copy the input test.py to another file named output.
inf = open("test.py")
outf = open("output.py", "w")
line = inf.readline()
while line;
outf.write(line)
inf.close()
Problem 3
Please implement a Python program which takes two string, e.g., “abc” and “lmn”, and generates a list ['al', 'am', 'an', 'bl', 'bm', 'bn', 'cl', 'cm', 'cn'] .