NEW
Font size
WorksheetsThe Lightbulb Project- Python
Total questions: 20
Worksheet time: 10mins
The Basic Elements of Python can be described as...
Boring, Confusing, Overcomplicated, Unnecessary
Versatile, Readable, Compatible, & Resourceful
Slow, Unreliable, Unpleasant, Awful
Only-for-nerds, Standard, Tedious, Uninteresting
What is the name of the storage units in computer memory?
Bytes
Digits
Bits
Memory Unit (MU)
How many bits create a byte?
64
8
32
4
What isn’t an example of a main hardware component?
CPU
Memory
Peripheral Devices
Software
Is a File hardware?
False, it is a software concept to store computational info.
True, it is a physical component on the computer to store info.
How are numbers and characters represented in computer memory?
A series of on and off switches.
101010101
Binary Number System
Arabic Number and Latin Alphabet Systems
What is the main function of a CPU?
Loads programs into RAM from secondary storage and runs them.
To interpret and execute computer programs, or sequences of instructions stored in the memory.
Establishes and maintains file systems in storage.
Writes computer software.
Transistors in the CPU only recognize two states of a signal, which are
green or red
good or bad
1 or 0, on or off, true or false
correct or incorrect
To display something on the screen, use this command:
print()
Print()
screen()
write()
Operators used in python:
divide, multiply, add, subtract
/, *, +, -
\, x, +, -
div, mul, +, -
~, *, +, -
What is the word (command) used to display numbers and text on the screen?
input
output
command
What is a variable?
A box (memory location) where you store values
a type of graphics
Data type (ex- .jpg, .html, .java)
a type of memory
Python is an example of a....
Text-based programming language
Object oriented programming language
Language written in javascript
Visual-based programming language
Python is _____ sensitive which means you must use the same indentation every time.
space
colour
code
word
Which of the following are NOT applications of python?
Game Development
Web Development
Desktop GUI
None of the listed options
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly.
False
True
What is the correct definition for a VARIABLE?
a value that cannot be changed
a changeable value, such as a score in a computer game.
What symbol do you use to make a comment in Python?
@
#
%
:
What syntax can you use to insert a line break between strings so that they appear over multiple lines?
\
/n
\n
n
What does the term 'debug' mean?
Identify errors and fix them.
Making a calculation
A set of instructions
Looking at code
