Font size
WorksheetsPython Quiz
Total questions: 10
Worksheet time: 5mins
How many spaces is an indentation?
2 spaces
3 spaces
4 spaces
5 spaces
What will it print?
num 8
num8
8
nothing
How many errors are there in this code?
1
2
3
4
Where can a global var be used? Select all that apply.
They can be used inside a loop
They can be used in a function
They can be used in a conditional
They can be used only in a function.
Why is an indentation used in functions?
to make it look cool
to indicate the name of the function
to indicate the block of code in a function
to make it indented
What will be the result?
3
256
512
256
1
512
1
512
256
512
256
3
What will be the answer?
23 89
112
xy
x + y
Who created python?
Just Van Rossum
James Gosling
Guido Van Rossum
Monty Python
What type of variable is cricket?
string
float
number
tuple
What do " " mean in python?
They are used to create numbers
They are a math operator in python
They are used to make the code attractive
They are used to string objects
