placeholder image to represent content

Tuples

Quiz by Amanda Oliver

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
5 questions
Show answers
  • Q1
    Which of the following is a tuple?
    tuple1 = boo, far, meow
    tuple1 = 'boofarmeow'
    tuple1 = (boo, far, meow)
    tuple1 = ('boo', 'far', 'meow')
    30s
  • Q2
    Which of the following is NOT a tuple?
    aye = (1, 2, 3)
    price = (10, )
    pokemon_battle = ('pikachu', 'meowth', 'bulbasaur')
    tupleduple = 'tuple' , 'far', 'john'
    30s
  • Q3
    Given tupleduple = (1, 2, 3, 4). Which code will display 1, 2 ?
    tupleduple = tupleduple(:-1)
    tupleduple = tupleduple(:3)
    tupleduple = tupleduple(:1)
    tupleduple = tupleduple(:2)
    30s
  • Q4
    Given tuple1 = (1, 2, 3, 4, 5). print(len(tuple1) ) will output
    4
    5
    Lemon
    3
    30s
  • Q5
    Which of the following ISN'T true about Tuples?
    Tuples are mutable
    Tuple syntax requires a parenthesis with each element separated by a comma
    Tuples can be nested to arbitrary depth and
    Tuples can contain any arbitrary objects and can be accessed by index
    30s

Teachers give this quiz to your class