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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What does the message 'Setup was successful' indicate in the Python installation process?
2. Which of these is not a component of a variable
3. What is the output of the following code? "'pythonnumbers = [10, 20, 30]numbers[2] = 50print(numbers) "'
4. What is the result of the following code:fname= "Esslam "lname= "Fahmi "print ("Hi" , lname + fname)
5. What is the correct way to take input from a user in Python?
6. How do you create a list in Python with the elements 1, 2, and 3?
7. Given t = (10, 20, 30, 40), which expression retrieves the second element using zero-based indexing?
8. Which command is used to display a message on the screen in Python?
9. What is the significance of indentation in Python?
10. Which loop is used to iterate over a sequence in Python?
11. Identify the invalid identifier.
12. In Python values that can not be changed after they are created are called
13. Identifiers in Python must start with which of the following?
14. A data type than can have one of two values:True or False
15. Which of the following variable names is invalid?
16. Karel can
17. Which of the following is used to get input from a user in Python?
18. The term which describes errors in a programme which are due to programmers making typing mistakes or spelling mistakes
19. What will print([1, 2, 3][0]) output?
20. What is the output of print('Welcome to Python')?
21. Which python operator means 'less than or equal to'?
22. What is the purpose of the as keyword when importing a module?
23. What is the process of developing and implementing various sets of instructions to enable a computer to do a certain task?
24. What will be the output of print("Python"[::-1])?
25. Apa tujuan dari pernyataan 'if ..... name ..... == " ..... main ..... ":'?