Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Question 1 (20 marks): /20
1.a: ( /2)
Mark the following statements true or false:
(a) python includes a compiler
(b) a programming function can accept no input and produce an output
(c) the code f(x+1, y) = 1 will return the correct value of x and y in order to
produce the value 1
(d) There are only three data types in Python3: string, int and float
1.b: ( /2)
Mark the following statements true or false:
(a) when running a python program from the command line, the arguments include
the command python
(b) if x is assigned to an object, and y is assigned to x, then there are two copies of
the object in memory
(c) only a number can be used to represent an error
(d) an array is a contiguous region of memory for the same data type