WorksheetsOzaria: Python Basics
Total questions: 15
Worksheet time: 7mins
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
What is Algorithm?
Fixing bugs
Functions
A sequence of instructions
Game design
Fixing errors in programming is called ...
Optimization
Debugging
Looping
Cleaning
A command that lets us repeat an action multiple times in your code
Algorithm
Loop
Variable
Method
Which line of code is used to make a loop?
for i in range(5)
# Code normally executes in the order it's written.
hero.build("upArrow")
a = "door"
Find the object in the following code:
helper.build("upArrow")
helper
build()
upArrow
hero
Find the argument in the following code:
hero.moveUp(4)
hero
moveUp()
4
Up()
Find the method in the following code:
hero.use("door")
hero
use()
door
" "
Which python operator means 'less than or equal to'?
>=
>
<
<=
Python uses indentation to block code into chunks
True
False
