ANY MANY MORE PROJECTS COMING IN PREMIUM GROUP WITHIN WEEKS
Hr interview question and answer
https://drive.google.com/file/d/1XQSq0ZqXP5qHft3WOK_hs6JoTtGsunhH/view?usp=share_link
https://drive.google.com/file/d/1XQSq0ZqXP5qHft3WOK_hs6JoTtGsunhH/view?usp=share_link
👍1
What will be the output of the code
Anonymous Quiz
9%
5
24%
6
34%
9
9%
12
19%
Error
5%
None of these
👍6
What will be the output of the code?
❌ 5
❌ 6
✅ 9
❌ 12
❌ Error
❌ None of the above
Explanation:
The function my_func takes two arguments, x and y, with a default value of 2 for y. The function returns the value of x raised to the power of y.
In the code snippet, my_func is called with the argument 3, but no value is specified for y, so the default value of 2 is used. Therefore, my_func calculates and returns 3 ** 2, which equals 9.
As a result, the correct answer is 9.
❌ 5
❌ 6
✅ 9
❌ 12
❌ Error
❌ None of the above
Explanation:
The function my_func takes two arguments, x and y, with a default value of 2 for y. The function returns the value of x raised to the power of y.
In the code snippet, my_func is called with the argument 3, but no value is specified for y, so the default value of 2 is used. Therefore, my_func calculates and returns 3 ** 2, which equals 9.
As a result, the correct answer is 9.
👍9
👍7👏5😁2