WEEK 2 Practice Quiz
What is the result of the following: "Hello Mike".split() ["Hello","Mike"] ["HelloMike"] ["H"]
["Hello","Mike"]
What is the result of the following operation? [1,2,3]+[1,1,1] [2,3,4] TypeError [1, 2, 3, 1, 1, 1]
[1, 2, 3, 1, 1, 1]
Consider the following list B=[1,2,[3,'a'],[4,'b']], what is the result of the following:B[3][1] "b" "c" [4,"b"]
"b"
Consider the following tuple: say_what=('say',' what', 'you', 'will') what is the result of the following say_what[-1] ' what' 'you' 'say' 'will'
'will'
Consider the following tuple A=(1,2,3,4,5). What is the result of the following: A[1:4]: (2, 3, 4,5) (3, 4,5) (2, 3, 4)
(2, 3, 4)
What is the length of the list A = [1] after the following operation: A.append([2,3,4,5]) 5 2 6
2
Consider the following tuple A=(1,2,3,4,5), what is the result of the following: len(A) 6 4 5
5
