Home / MCQ Bank / Computer
Computer Functions In Python Difficulty: Medium

What will be the output of the following Python code? def f1(x): global x x+=1 print(x) f1(15) print("hello")

Select the correct option to test your answer:

More Computer Questions

Which of the following problems is equivalent to the 0-1 Knapsack problem? Output of XML document can be viewed in a Shortcut to insert new slide in the current presentation is ______________. What is the keyword used to create an instance of a class in C#? Which of the following operation is possible using a pointer char? (Assuming the declaration is char *a;)