WEEK 2 Practice Quiz

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

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


Ensembles d'études connexes

Small Business Management Exam #1

View Set

Chapters 11, 12 & 13 Analysis of Variance ANOVA Quiz 9.2

View Set

Canadian Providence Facts, Holidays, Important Peeps

View Set

Texas Principles of Real Estate 2 - Chapter 2

View Set

Critical Care: Nervous System Alterations

View Set

Anatomy and Physiology: Chapter 12: The Central Nervous System

View Set