Python basics

Chalkplay teamComputer scienceGrades 9–126 questionsGame show quiz makerEnglish
Copy & edit
Gameshow
Which function prints text tothe screen?15Aprint()Becho()Cwrite()Dsay()

Options

Theme 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 and the class's scores appear here.