SECTION 1: THEORY QUESTIONS (1–10)

  1. What is a variable in Python?

  2. What is dynamic typing in Python?

  3. What is the difference between int, float, and str?

  4. Is Python strongly typed or weakly typed? Explain briefly.

  5. What is type conversion? Why is it important?

  6. What is the difference between:

    int(5.9) and float(5)

  7. What happens if you try to add an int and a str?

  8. What is the difference between:

    "5" and 5

  9. Can a variable change its data type after assignment? Explain with example.

  10. What is the difference between:

    x = 10

    x = "10"


SECTION 2: GUESS THE OUTPUT (Explain Why) (11–20)

x=10
y=5
print(x+y)

What is the output? Why?

x=10
y=3
print(x/y)

What is the output and its data type?