PYTHON VIVA

CLASS 9th

  1. Variable – What is a variable in Python?
    Answer: A named memory location to store data.

  2. String – What is a string?
    Answer: A sequence of characters enclosed in quotes.

  3. Integer – What is an integer?
    Answer: A whole number without a decimal.

  4. Float – What is a float?
    Answer: A number with a decimal point.

  5. Boolean – What is a Boolean?
    Answer: A data type with True or False value.

  6. If – What does if do?
    Answer: Checks a condition and runs code if true.

  7. Else – What does else do?
    Answer: Runs code when the if condition is false.

  8. Elif – What is elif?
    Answer: “Else if” used for multiple conditions.

  9. Break – What is break used for?
    Answer: To exit a loop immediately.

  10. Continue – What is continue used for?
    Answer: To skip the current iteration of a loop.

  11. Import – What does import do?
    Answer: Includes a module in the program.

  12. Module – What is a module?
    Answer: A file containing Python code and functions.

  13. Comment – What is a comment?
    Answer: Text ignored by Python, used for explanations.

  14. Input – What is input()?
    Answer: A function to take user input.

  15. Output – How do you show output in Python?
    Answer: Using the print() function.

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.