placeholder image to represent content

Floats & Strings

Quiz by Jessie Cunningham

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 code would I use if I wanted to print the 3rd letter in the variable bob.
    print bob[2]
    print
    print bob[3]
    print bob
    120s
  • Q2
    What variable type would store a decimal?
    string
    variable
    int
    float
    120s
  • Q3
    I have a variable named bob containing "hellobob". If I wanted to just print "hello" what would I do?
    print bob[0]
    print bob[0:5]
    print bob[5]
    print bob
    120s
  • Q4
    If I wanted to print out an entire string named str, how would I do it?
    print str
    print string
    print(string)
    str print
    120s
  • Q5
    If I wanted to know the length of a string named str, how would I find it?
    len[str]
    len(str)
    length(str)
    length
    120s

Teachers give this quiz to your class