NEW
Font size
WorksheetsPython PRIMM Recap L1/L2
Total questions: 11
Worksheet time: 6mins
What will be the output of the following Python code? ```python print("Hello, World!") ```
Hello, World!
"Hello, World!"
Hello World
"Hello World"
Which of the following is the correct way to concatenate the strings "Good" and "Morning" in Python?
"Good" + "Morning"
"Good" & "Morning"
"Good" "Morning"
"Good".concat("Morning")
What will be the result of the following operation in Python: 5+3 ?
53
8
15
35
If you want to print the result of 7×6 using the print function, which of the following is correct?
print(7 * 6)
print("7 * 6")
print(7 x 6)
print("7 x 6")
What will be the output of the following code? ```python print("The sum of 2 and 3 is", 2 + 3) ```
The sum of 2 and 3 is 5
The sum of 2 and 3 is 23
The sum of 2 and 3 is 2 + 3
The sum of 2 and 3 is
Which of the following will correctly print the string "Python is fun"?
print("Python is fun")
print(Python is fun)
print('Python is fun')
Both A and C
What will be the result of the following operation: 10−4 ?
6
14
104
40
How can you print the result of 9÷3 in Python?
print(9 / 3)
print(9 // 3)
print(9 ÷ 3)
print("9 / 3")
What will be the output of the following code? ```python print("I have", 2, "apples and", 3, "oranges.") ```
I have 2 apples and 3 oranges.
I have 2apples and 3oranges.
I have 2, apples and 3, oranges.
I have 2 apples and 3 oranges
Which of the following expressions will correctly concatenate the strings "Python" and "3.9"?
"Python" + "3.9"
"Python" & "3.9"
"Python" "3.9"
"Python".concat("3.9")
What will be the result of the following operation: 15÷2 in Python using integer division?
7.5
7
8
15
