wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ALB Basic Python Quiz

Total questions: 25

Worksheet time: 15mins

Name
Class
Date
1.

What is Python?

a)

Compiled

b)

Interpreted

c)

Static

d)

Dynamic

2.

Which mode allows you to enter Python commands interactively?

a)

Compile mode

b)

Edit mode

c)

Interactive mode

d)

Static mode

3.

What is the purpose of the print command in Python?

a)

Take input from the user

b)

Display output on the screen

c)

Define variables

d)

Concatenate strings

4.

How do you open and close a string in Python when using the print statement?

a)

Square brackets

b)

Parenthesis

c)

Quotation marks

d)

Curly braces

5.

What is the role of a variable in Python?

a)

Display output

b)

Store data in memory

c)

Concatenate strings

d)

Define constants

6.

How is a constant different from a variable in Python?

a)

Constants cannot be changed during program execution

b)

Variables cannot be changed during program execution

c)

Both can be changed during program execution

d)

Constants are used for mathematical operations

7.

Which symbol is used for concatenation in Python?

a)

Period (.)

b)

Exclamation mark (!)

c)

Comma (,)

d)

Question mark (?)

8.

What does the input function in Python do?

a)

Display output

b)

Concatenate strings

c)

Take input from the user

d)

Define variables

9.

How do you request the user to enter their name using the input function?

a)

input("Your name: ")

b)

get_input("Your name: ")

c)

input_name("Enter: ")

d)

enter_name("Input: ")

10.

What is the purpose of the comma in print statements?

a)

Multiply values

b)

Concatenate strings

c)

Separate arguments(variables)

d)

Define constants

11.

In Python, where can you use the split screen?

a)

Interactive mode

b)

Edit mode

c)

Both A and B

d)

None of the above

12.

Which symbol is used for concatenation in Python?

a)

Plus (+)

b)

Minus (-)

c)

Comma (,)

d)

Asterisk (*)

13.

How do you define a variable in Python?

a)

var x

b)

variable x

c)

x = value

d)

define x

14.

What is the purpose of the IDLE in Python?

a)

Input handling

b)

Code execution

c)

Integrated Development and Learning Environment

d)

Concatenation

15.

Which command is used to run a Python program?

a)

execute

b)

play

c)

run run module F5

d)

print

16.

What does the term "evidence" refer to in Python programming?

a)

Code documentation

b)

Debugging information

c)

Output display

d)

None of the above

17.

What is the purpose of the Chevron symbol in Python?

a)

Code indentation

b)

Concatenation

c)

Splitting strings

d)

Input handling

18.

When using the print statement, what must always be opened and closed?

4 lines
19.

Which command is used to print the value of a variable in Python?

a)

display

b)

show

c)

print

d)

output

20.

Python is a ‘general purpose’ programming language, used daily by Google, YouTube, NASA, CERN, and the New York Stock Exchange (to name but a few examples).

a)

True

b)

False

21.
  • Python is a freely available programming language

You can download it and run it at home.

a)

False

b)

True

22.
  • Python was invented by Guido van Rossum.

    • Born 31st January 1956

    • UK

Currently works for Dropbox
(as of early 2014)

a)

True

b)

False

23.

Python got its name from Monty Python’s Flying Circus ... Guido really liked Monty Python!

a)

True

b)

False

24.

Python Programming is coding in......

a)

High Level Programming Language

b)

Low Level Programming Language

25.

The # symbol is used in Python to add comments/explanations to the code. Comments are used to explain the code and make it more readable but not part of the code.

a)

True

b)

False