WorksheetsPython logical operator
Total questions: 22
Worksheet time: 23mins
Python is a __________ language.
Low-level
High-level
Machine
Assembly
Which function is used to display output?
show()
output()
print()
display()
Which of the following is a valid variable name?
1num
my number
my_number
@value
What does a variable do?
Stores data
Deletes data
Prints data
Converts data
What is the output ?
x = 5
print(x)
x
5
print(x)
Error
What is the data type of 25?
String
Float
Integer
Boolean
What is the data type of "Python"?
Integer
Float
String
Boolean
What is the data type of True?
Integer
Boolean
String
Float
Which function is used to take input from the user?
get()
read()
input()
scan()
What will be the output?
print("Hello")
Hello
"Hello"
Error
What does % operator give?
Quotient
Product
Remainder
Power
What will be the output?
print(10 % 3)
3
4
1
2
Which operator is used to check if two values are equal?
=
==
!=
>=
Which operator checks if one value is NOT equal to another?
==
!=
=
<=
Which operator means “greater than”?
>
<
=
!
Which operator means “less than or equal to”?
>=
!=
<=
==
What will be the output?
print(10 > 5)
True
False
Error
None
What will be the output?
print(4 == 5)
True
False
Error
None
What is the output?
x = 12
print(x >= 10)
(a)
What is the output?
x = 6 print(x < 5)
True
False
Yes
No
What is the output?
a = 10 b = 10 print(a == b)
True
False
Yes
No
What is the output?
print(15 != 20)
True
False
Yes
No
