Class 11 Computer Science Chapter 2 Introduction To Python Quiz 82 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following is an example of Python's use in Artificial Intelligence (AI)?
2. Start with items = ("pen", "book"). To add "eraser" using tuple concatenation, which code is correct?
3. Which subprogram is used to remove certain characters when reading from and writing to files in Python?
4. What will be the output after the following statements?x = 8 y = 2 print(x // y)
5. Which of the following data types can store decimal numbers?
6. How do you install a package in Python using pip?
7. How do you convert a string "123" to an integer in Python?
8. What is the purpose of the 'return' statement?
9. When naming a variable what must be taking into consideration?
10. To make decisions in our code we can use which statement
11. Which of the following is a lambda function in Python?
12. What command can you use to check if Python is installed?
13. How did Python, the programming language, get its name?
14. How to create a dictionary?
15. Which symbol is used in variable length arguments to specify more arguments than specified?
16. Why is the space important in "in '' when concatenating?
17. Which of the following is a valid print statement in Python?
18. Which of the following statements about Python is true?
19. Which of the following will correctly take a user's input and store it in a variable called name?
20. A while loop while run as long as its condition is
21. Which one of these is another programming language?
22. Which of these is used to join two strings?
23. Which of the following is not a type of argument?
24. Reserved word or "name" that identifies built-in operations, functions, I/O operations, or conditionals that may not be used to name variables, functions, or any other type of identifier.
25. What will be the output of range(5)?