pencil-icon
Build your own quiz

Computers

9th -

12thgrade

Image

Python Lists

1.4K
plays

15 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    Which of these is the correct code for creating a list of names?

    nameList = John, Harry, Jesse, John, Harry, Harry

    nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

    nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

    nameList = [John, Harry, Jesse, John, Harry, Harry]

  • 2. Multiple Choice
    30 seconds
    1 pt

    List items have an index number. In the following list, which item has the index number of 3?

    ["Joe", "Harry", "Jesse", "John", "Harry", "Harry"]

    "John"

    "Harry"

    "Jesse"

    "John"

  • 3. Multiple Choice
    30 seconds
    1 pt

    Which of these pieces of code would return the name "Harry" from the following list?

    nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

    nameList()

    nameList[1]

    NameList(4)

    nameList["4"]

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?