1. What is Python?
Explanation: Python is a high-level programming language used for various software development tasks.
Report for correction2. Who created Python?
Explanation: Guido van Rossum is the creator of the Python programming language.
Report for correction3. Which of the following is not a feature of Python?
Explanation: Python is an interpreted language, not a compiled language.
Report for correction4. What is the extension of Python source code files?
Explanation: Python source code files have the ".py" extension.
Report for correction5. How do you print "Hello, World!" in Python?
Explanation: In Python, you use the print() function to display text.
Report for correction6. What is the correct way to declare a variable in Python?
Explanation: In Python, variables are declared by assigning a value to them.
Report for correction7. Which of the following is not a valid variable name in Python?
Explanation: Variable names cannot start with a number in Python.
Report for correction8. What is the purpose of comments in Python?
Explanation: Comments in Python are used to provide explanations and document code.
Report for correction9. Which data type is used to store whole numbers in Python?
Explanation: Integer data type is used to store whole numbers in Python.
Report for correction10. What is the result of adding two strings in Python?
Explanation: In Python, adding two strings concatenates them.
Report for correction11. Which operator is used for exponentiation in Python?
Explanation: The ** operator is used for exponentiation in Python.
Report for correction12. What is the purpose of the if statement in Python?
Explanation: The if statement is used for conditional execution of code based on a condition.
Report for correction13. What is the output of 5 == 5 in Python?
Explanation: 5 == 5 is a comparison that evaluates to True because 5 is equal to 5.
Report for correction14. Which loop is used for iterating over a sequence of elements in Python?
Explanation: The for loop is used for iterating over a sequence of elements in Python.
Report for correction15. In Python, how do you define a function?
Explanation: In Python, functions are defined using the def keyword.
Report for correction16. What is the purpose of the return statement in a function?
Explanation: The return statement is used to specify the value that a function returns.
Report for correction17. How do you open a file in Python?
Explanation: You use the open() function to open a file in Python.
Report for correction18. Which library is commonly used for data manipulation and analysis in Python?
Explanation: The pandas library is commonly used for data manipulation and analysis in Python.
Report for correction19. What is the purpose of the import statement in Python?
Explanation: The import statement is used to include external libraries or modules in Python.
Report for correction20. Which data structure is used to store multiple values in Python?
Explanation: A tuple is used to store multiple values in Python.
Report for correction21. What is the purpose of the len() function in Python?
Explanation: The len() function is used to determine the length of a sequence or collection in Python.
Report for correction22. Which operator is used for list slicing in Python?
Explanation: The : operator is used for list slicing in Python.
Report for correction23. What is the purpose of the append() method in Python lists?
Explanation: The append() method is used to add an element to the end of a list in Python.
Report for correction24. What is the output of list(range(3)) in Python?
Explanation: list(range(3)) generates a list containing the numbers from 0 to 2.
Report for correction25. What is the purpose of the pop() method in Python lists?
Explanation: The pop() method is used to remove and return the last element from a list in Python.
Report for correction