JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
8_1_6
Create and use data structures in a programming language
Sign in to Google
to save your progress.
Learn more
TRUE or FALSE: The first location in an array is labelled as [0]
1 point
True
False
Clear selection
Which is the correct syntax for creating an array?
1 point
myArray = "One","Two","Three"
myArray = ["One","Two","Three"]
myArray - ["One","Two","Three"]
myArray ["One","Two","Three"]
Clear selection
An array is created in Python like this:
myArray = ["ONE","TWO","THREE","FOUR"]
Which piece of code would print the word FOUR?
1 point
print (myArray[4])
print (myArray[4]
print (myArray[3])
print (myArray[3]
Clear selection
Which piece of code would swap ONE and FOUR around?
1 point
myArray[0], myArray[4] = myArray[4], myArray[0]
myArray[0], myArray[4] - myArray[4], myArray[0]
myArray[0], myArray[3] - myArray[3], myArray[0]
myArray[0], myArray[3] = myArray[3], myArray[0]
Clear selection
TRUE or FALSE: Arrays are a good way to organise data.
1 point
True
False
Clear selection
Submit
Clear form
Forms
This content is neither created nor endorsed by Google.
Report Abuse
Terms of Service
Privacy Policy
Help and feedback
Contact form owner
Help Forms improve
Report