

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
print(a) x=90 fn(x) |
A. | The variables used inside function are called local variables. |
B. | The local variables of a particular function can be used inside other functions, but these cannot be used in global space |
C. | The variables used outside function are called global variables |
D. | In order to change the value of global variable inside function, keyword global is used. |
E. | |
Answer» C. The variables used outside function are called global variables | |
2. |
|
A. | x is the formal argument. |
B. | a is the actual argument. |
C. | fn(x) is the function signature. |
D. | x is the actual argument. |
Answer» E. | |
3. |
print(z(6)) |
A. | a |
B. | A |
C. | 97 |
D. | error |
Answer» B. A | |
4. |
Lambda is a function in python? |
A. | True |
B. | False |
C. | Lambda is a function in python but user can not use it. |
D. | None of the above |
Answer» B. False | |
5. |
Which operator is used in Python to import modules from packages? |
A. | . |
B. | * |
C. | -> |
D. | & |
Answer» B. * | |