WorksheetsPython 1
Total questions: 12
Worksheet time: 6mins
Which is an example of a function in python?
def myFunction():
myfunction()
function myFunction = {}
What is the expected output of this code?
Error
John Wick
Wick John
Wick , John
An Arduino is a ______.
Programming is __________.
What is a variable?
This an example of a _____.
A loop
Conditional Statement
This is an example of a ______.
A loop
If/Then
code
Which of the following is an example of a string data type in python?
Suzie
"I like cats!"
int(input())
print(num_one, num_two)
Which operator is used to multiply numbers?
#
*
x
%
Which operator can be used to compare two values?
><
<>
==
=
How do you start writing an if statement in Python?
if( x > y)
if x >y:
if x > y then:
What is the output of the following code
Salary: 12000 Salary: 8000
Salary: 8000 Salary: 12000
The program failed with errors
