python mcqs.

Joined September 2023
2 Photos and videos
1
5
The correct answer is 16 Explanation: The recursive function calculates the sum of odd numbers less than or equal to 7. So, it calculates 7 5 3 1 = 16.
4
Which operator is used for exponentiation in Python?
0% ^
0% %
0% **
0% !!
0 votes • Final results
1
8
In Python, the double asterisk ** operator is used for exponentiation. For example, 2 ** 3 equals 8.
7
The correct answer is in the comments with an explanation and a few extra notes.
1
8
There is practically no limit but it is highly recommended to limit the length to 79 characters. This question brings with itself some confusion but If 79 was an option. You must select that.
6