wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PYTHON QUIZ

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

The <img> tag displays images ___ a webpage.

a)

on

b)

under

c)

between

d)

behind

2.

The <script> tag is usually placed ___ the <body> tag to ensure scripts load after the page content

a)

above

b)

at the end of

c)

next to

d)

inside

3.

The <header>

element is located ___ the top of a webpage.

a)

at

b)

under

c)

below

d)

beside

4.

The <footer>

tag is placed ___ the end of the HTML document to show footer information.

a)

in

b)

on

c)

at

d)

over

5.

5.    The <link> tag to connect a CSS file is placed ___ the <head> section.

a)

in

b)

beside

c)

below

d)

after

6.
  1. 6.     The <h1> heading is used ___ the main heading of a page..

a)

above

b)

for

c)

by

d)

with

7.

In Python, a variable is used to store ___.

a)

a function

b)

a class

c)

a value

d)

a module

8.

The def keyword is used in Python to define a ___.

a)

variable

b)

function

c)

class

d)

module

9.

In Python, the print () function is used to ___ output to the console.

a)

display

b)

hide

c)

save

d)

modify

10.

Python uses ___ for block indentation to define code structure.

a)

semicolons

b)

parentheses

c)

spaces or tabs

d)

colons