CBSE Class 12 Computer Science
Question 40 of 103
Working with Functions — Question 16
Back to all questions8
Reason — The code defines a function named print_double that takes one parameter x. Inside the function, it calculates 2 raised to the power of x using the exponentiation operator **, and then prints the result. So, when we call print_double(3), we're passing 3 as an argument to the function. The function calculates 2 ** 3, which is 8, and prints the result.