wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

The Lightbulb Project- Python

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

The Basic Elements of Python can be described as...

a)

Boring, Confusing, Overcomplicated, Unnecessary

b)

Versatile, Readable, Compatible, & Resourceful

c)

Slow, Unreliable, Unpleasant, Awful

d)

Only-for-nerds, Standard, Tedious, Uninteresting

2.

What is the name of the storage units in computer memory?

a)

Bytes

b)

Digits

c)

Bits

d)

Memory Unit (MU)

3.

How many bits create a byte?

a)

64

b)

8

c)

32

d)

4

4.

What isn’t an example of a main hardware component?

a)

CPU

b)

Memory

c)

Peripheral Devices

d)

Software

5.

Is a File hardware?

a)

False, it is a software concept to store computational info.

b)

True, it is a physical component on the computer to store info.

6.

How are numbers and characters represented in computer memory?

a)

A series of on and off switches.

b)

101010101

c)

Binary Number System

d)

Arabic Number and Latin Alphabet Systems

7.

What is the main function of a CPU?

a)

Loads programs into RAM from secondary storage and runs them.

b)

To interpret and execute computer programs, or sequences of instructions stored in the memory.

c)

Establishes and maintains file systems in storage.

d)

Writes computer software.

8.

Transistors in the CPU only recognize two states of a signal, which are

a)

green or red

b)

good or bad

c)

1 or 0, on or off, true or false

d)

correct or incorrect

9.

To display something on the screen, use this command:

a)

print()

b)

Print()

c)

screen()

d)

write()

10.

Operators used in python:


divide, multiply, add, subtract

a)

/, *, +, -

b)

\, x, +, -

c)

div, mul, +, -

d)

~, *, +, -

11.

What is the word (command) used to display numbers and text on the screen?

a)

print

b)

input

c)

output

d)

command

12.

What is a variable?

a)

A box (memory location) where you store values

b)

a type of graphics

c)

Data type (ex- .jpg, .html, .java)

d)

a type of memory

13.

Python is an example of a....

a)

Text-based programming language

b)

Object oriented programming language

c)

Language written in javascript

d)

Visual-based programming language

14.

Python is _____ sensitive which means you must use the same indentation every time.

a)

space

b)

colour

c)

code

d)

word

15.

Which of the following are NOT applications of python?

a)

Game Development

b)

Web Development

c)

Desktop GUI

d)

None of the listed options

16.

A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly.

a)

False

b)

True

17.

What is the correct definition for a VARIABLE?

a)

a value that cannot be changed

b)

a changeable value, such as a score in a computer game.

18.

What symbol do you use to make a comment in Python?

a)

@

b)

#

c)

%

d)

:

19.

What syntax can you use to insert a line break between strings so that they appear over multiple lines?

a)

\

b)

/n

c)

\n

d)

n

20.

What does the term 'debug' mean?

a)

Identify errors and fix them.

b)

Making a calculation

c)

A set of instructions

d)

Looking at code