On This Page

This set of Problem Solving and Python Programming Multiple Choice Questions & Answers (MCQs) focuses on Problem Solving And Python Programming Set 28

Q1 | What is a variable defined inside a function referred to as?
Q2 | , i = 2)
Q3 | ,2,3,4)
Q4 | If a function doesn’t have a return statement, which of the following does the function return?
Q5 | )
Q6 | ',B='2')
Q7 | What is the type of each element in sys.argv?
Q8 | What is the length of sys.argv?
Q9 | How are keyword arguments specified in the function heading?
Q10 | How many keyword arguments can be passed to a function in a single function call?
Q11 | , 2, 3])
Q12 | print(foo())
Q13 | ): print(foo(i))
Q14 | How are variable length arguments specified in the function heading?
Q15 | Which module in the python standard library parses options received from the command line?
Q16 | What is the type of sys.argv?
Q17 | What is the value stored in sys.argv[0]?
Q18 | How are default arguments specified in the function heading?
Q19 | Where are the arguments received from the command line stored?
Q20 | f1()
Q21 | san(12)
Q22 | ,2,3,4 f(5,10,15)
Q23 | (1,2) print(total)
Q24 | Which of the following data structures is returned by the functions globals() and locals()?