20 questions · 30 minutes · Python

Python Essentials Quiz 2 practice quiz

20 very simple questions on Python basics: variables, datatypes, operators, input/output, loops, conditionals, lists, tuples, strings and indexing.

Before you start

20 multiple-choice questions. 1 mark each. No negative marking. Time: 30 minutes.

You can take this without an account and you will still get the full marked review. Only signed-in attempts are saved — sign in first if you want this one kept in your history.

Questions
20
Time
30 minutes
Marks
20
Subject
Python
Marking
Server-side

What it asks

The first few questions

  1. Which symbol starts a single-line comment in Python?
  2. Which function reads a line of input from the user in Python 3?
  3. What is the output of: print(5 // 2)?
  4. Which of these is a valid variable name in Python?

16 more once you begin. Options are withheld until the attempt starts — the answer key never reaches the browser before you have been marked.