Worksheetsgrade 10 A
Total questions: 10
Worksheet time: 5mins
1. Which of the following is a correct variable name in Python?
A) my-var
B) 2ndVar
C) my_variable
D) variable name
2. What is the output of the following code ?
print("Hello" + "World")
A) Hello World
B) HelloWorld
C) Hello+World
D) Error
3. Which symbol is used for single-line comments in Python?
A) //
B) #
C) /*
D) --
5. What is the result of the expression 3 *2 ** 3 in Python?
A) 24
B) 64
C) 48
D) 27
What is the output of the following code snippet?
print(10 // 3)
A) 3
B) 3.33
C) 3.0
D) 10/3
10. Which operator is used for exponentiation in Python?
A) ^
B) **
C) %
D) //
what is the data type of the result of 3 / 2?
A) int
B) float
C) str
D) error
Which of the following is the correct way to write a comment in Python?
A) // This is a comment
B) /* This is a comment */
C) # This is a comment
D) -- This is a comment
+, -, *,/ are ........operators
arithmetic
relational
comparison
Assignment
python is used for......
web development
software development
system scripting.
all the previous
