TEST.
Python is named after - CORRECT ANSWER a British comedy group
Python can be used as - CORRECT ANSWER both a scripting and programming language
Python 3 is intentionally incompatible with Python 2. (T or F) - CORRECT ANSWER True
To install Python on Windows - CORRECT ANSWER a) download and run an installer from python.org
b) download the Python source code from python.org, then download and install a compiler, then build
and install Python
Answer) either a or b
To install Python on Linux - CORRECT ANSWER is likely unnecessary if you want a 2.x version since most
versions of Linux pre-install Python
Python is a strongly typed language. - CORRECT ANSWER False
What is printed by the following script?
a=2
b=3
print (a/b) - CORRECT ANSWER 0
If
,a = 'Bob'
b=2
then
print(a+b)
produces - CORRECT ANSWER an error
If
a = 'Bob'
b = 'Smith'
then
print (a+b)
produces - CORRECT ANSWER BobSmith
If
a = 'Bob'
b=2
, then
print(a*b)
produces - CORRECT ANSWER an error
What is the difference between a list and a tuple? - CORRECT ANSWER a tuple is immutable and a list is
not
If
a = (1, 2, 3)
b = (4, 5, 6)
then
c=a+b
print(c)
produces - CORRECT ANSWER (1, 2, 3, 4, 5, 6)
if
a = (1, 2, 3)
b = (4, 5, 6)