InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Are all parameters (arguments) in the Python language passed by reference. |
|
Answer» Yes,All parameters (arguments) in the Python language are passed by reference. |
|
| 2. |
How are arguments passed – by reference or by value ? |
|
Answer» In Python everything is an object and all variables hold references to objects. The values of these references are to the functions. As a result you can not change the value of the reference but you can modify the object if it is mutable. Remember, numbers, strings and tuples are immutable, list and diets are mutable. |
|