Site icon codemaniacstudio

PYTHON VIVA

PYTHON VIVA

Class 10th

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

  2. Loop – What is a loop?
    Answer: A block of code that repeats multiple times.

  3. Tuple – What is a tuple?
    Answer: An ordered, unchangeable collection of items.
  4. String – What is a string?
    Answer: A sequence of characters enclosed in quotes.

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

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

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

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

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

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

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

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

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

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

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

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

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

Exit mobile version