CSE MCQs :: Python MCQs
- How are keyword arguments specified in the function heading?
- How many keyword arguments can be passed to a function in a single function call?
- Which module in the python standard library parses options received from the command line?
-
What is the output of the code shown below?def f1():x=100print(x)x=+1f1()
- On assigning a value to a variable inside a function, it automatically becomes a global variable. State whether true or false.
- What happens if a local variable exists with the same name as the global variable you want to access?
- Which of these is false about recursion?
-
What is the output of the code shown below?l1=[1, 2, 3, [4]]l2=list(l1)id(l1)==id(l2)