Instructions
- 1. Your final score will reflect your grasp of the concepts—approach each question with precision.
- 2. Thoroughly review each solution before proceeding to ensure full understanding.
- 3. Final results will be available after submission to provide insights into areas for further improvement.
- 4. Maintain academic integrity—plagiarism undermines learning and professional growth.
- 5. Once submitted, responses are final, so ensure you’re confident in your answers.
- 6. These challenges are designed to test practical knowledge; apply your skills as you would in real-world scenarios.
All Problems
Question
Action
What is the default scope of a variable declared inside a Python function?
What will happen if you modify a global variable inside a function without declaring it as global?
Which of the following best describes a global variable?
How do you declare a variable as global inside a function?
Which of the following is true for variables in Python?
What is shadowing in Python?
Which of the following keywords is used to delete a variable in Python?
Which of the following variable names is correctly written in Python?
What will happen if a variable is not used in Python?
How can you check the data type of a variable in Python?