Font size
WorksheetsPython
Total questions: 21
Worksheet time: 11mins
What is python
The hardest language in the world
A type of block code
A type of code designed for readibilty and starters
JavaScript
What is the print statement used for?
To make a varible
To write something on the shell
To make a comment
Do operations
What does the input statment do?
Make a brand new varible
Write something on the shell
Send a sos message
Ask the user a question
What can function do? (Please choose all the correct answers)
To convert a python project to a JavaScript project.
Use muitiple lines of code to replace on line of code
Put together a series of code
Have add arguments for example: doing a math equation
Code for Hello, World!
print Hello, World!
print("Hello, World!)
print("Hello, World!")
What type of loop can make a forever loop
For loop
While loop
for each loop
do...while lopp
What does an if statment do?
Add two varibles
See if the condition is true or no
Makes a forever loop
Does the opposite of what you type
If loops are used when
When you want to activate a bomb
You want a statment to activivate when the statment is true
When you want the code to repeat
When you want to clear the console
What type of symbols are used for a list
| |
{ }
[ ]
\ \
What are class the most simalar to
A varible
A function
An if stament
A string
What does this equation mean =!
The remainder of something
Greater than
Equal to
Not equal to
What type of code is used to split a string
For loop
Input statements
While loop
If else stament
is integer a number
true
false
Can lists be a mix of string and intergers
Yes
No
What does this symbol mean %
Add a varible
Muiltiply a varible
The remainder of something
The answer of a divsion equation
If you want to create an empty list called colours in Python, which of the following is correct?
colours = [ ]
colours = ( )
colours = { }
colours = <>
e
a
w
Nothing prints
print(3+4)
