Javaexercise.com

Python Variable Quiz for Beginners


1. What is a variable in Python?

  •   
  •   
  •   
  •   

2. Why does Python use variables?

  •   
  •   
  •   
  •   

3. Where is the variable used in Python?

  •   
  •   
  •   
  •   

4. What is a static variable in Python?

  •   
  •   
  •   
  •   

5. What is a global variable in Python?

  •   
  •   
  •   
  •   

6. What is a local variable in Python?

  •   
  •   
  •   
  •   

7. How to declare an integer variable in Python?

  •   
  •   
  •   
  •   

8. What is the default value of an integer variable in Python?

  •   
  •   
  •   
  •   

9. Can an integer variable hold a string value in Python?

  •   
  •   
  •   
  •   

10. Why does a variable not use type while declaring a variable in Python?

  •   
  •   
  •   
  •