Home / MCQ Bank / Computer
Computer Formatting And Decorators

What will be the output of the following Python code? def c(f): def inner(*args, **kargs): inner.co += 1 return f(*args, **kargs) inner.co = 0 return inner @c def fnc(): pass if __name__ == '__main__': fnc() fnc() fnc() print(fnc.co)

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • 3

Related Computer Questions

What is the meaning of the following R function? x <- c(4, 5, 1, 2, 3, 3, 4, 4, 5, 6) x <- as.factor(x) What is the primary role of the Oozie Action Executor? Each answer below shows example data from a table. Which answer is an example of the general-purpose remarks column problem? What is the purpose of a pure virtual function in C++? What is the speciality of cartesian sorting?