Python basics

Priya S.ComputingGrades 9–126 questionsGameshow template7790 playsEnglish
Copy & edit
Gameshow
Which function prints text tothe screen?15Aprint()Becho()Cwrite()Dsay()

Game options Saved per activity

Questions and answers

· 6 questionsShow answers
  1. 1. Which function prints text to the screen?
    • Correct answer: print()
    • echo()
    • write()
    • say()
  2. 2. What does len('chalk') return?
    • Correct answer: 5
    • 4
    • 6
    • 'chalk'
  3. 3. Which keyword starts a loop over a list?
    • Correct answer: for
    • loop
    • each
    • repeat
  4. 4. What is the result of 7 // 2?
    • Correct answer: 3
    • 3.5
    • 4
    • 1
  5. 5. Which symbol starts a comment?
    • Correct answer: #
    • //
    • --
    • /*
  6. 6. What type is the value True?
    • Correct answer: bool
    • str
    • int
    • list

Leaderboard

No scores yet. Play it live or set it as homework and the top scores appear here.