WorksheetsPython Basic
Total questions: 12
Worksheet time: 11mins
What is Python ?
Python is text-based programming
Python is a kind of snake
Python is block-based programming
Python is human language
What is the result of not(true or false) ?
true
false
What is the difference between 10 / 3 and 10 // 3 ?
10 / 3 is division. 10 // 3 is subtraction.
10 / 3 is floor division. 10 // 3 is subtraction.
10 / 3 is floor division. 10 // 3 is division.
10 / 3 is division. 10 // 3 is floor division.
Assignment Operator is ...
used to assign values to variables
and, or, not
+, -, %
+=, <<=, %=
==, <=, !=
Is this code true or false?
number = int(input("Input your number:"))
if number % 3 == 0:
if number % 5 == 0:
print ("FizzBuzz")
else:
print("Fizz")
elif number % 5 == 0:
print("Buzz")
else:
print(number)
True
False
How many errors in this image?
1
2
3
4
What line is error?
4
5
6
7
8
What is the result of 10 == “10”? and Why?
False. Cause 10 is integer & "10" is string
True. Cause 10 == "10" is same integer.
How many Python divides the operators ?
4
5
6
7
What is operator?
someone who operates equipment or a machine
special symbol that carry out arithmetic or logical computation
someone that engages in or runs a business
Given (x = 100), what will be the value of after we run (x //= 3)?
34
33.33
33
Python Data Types :
Text type : str
Numeric type : int, float, double
Text type : string
Numeric type : int, float, complex
