Class 11 Computer Science Chapter 2 Introduction To Python Quiz 14 (60 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following is a string in Python?
2. How do you access the first element of a list named 'colours'?
3. Why is it called 'Python'?
4. How do you handle errors in Python?
5. A set of instructions a computer follows to do a task is called a-
6. Which of the following is a reserved keyword in Python?
7. What will print("Hi" + '' there") show?
8. What is one of the uses of Python mentioned in the text?
9. What is programming?
10. What will be the output of the following code? x = 5 if x > 3:print("Greater") else:print("Smaller")
11. What does IDE stand for in Python programming?
12. Which statement is true about variable names in Python?
13. What makes Python a versatile programming language?
14. Define the term algorithm
15. How many times does the following program print the word 'computer':word= "computer" for num in range(1, 6):print(word)
16. Given fruits = ('apple', 'banana', 'cherry'), what does the expression 'cherry' in fruits evaluate to?
17. What must you start your line of code with so that the program knows what code you are using?
18. Write the output of the following:x = int(7) + int('9'); print(x)
19. Why was Python (TM) developed?
20. Which of following language is called as interpreter language .
21. Which of the following is an example of a Python string?
22. The term which describes errors in a programme
23. What does the Python Turtle Library allow you to do?
24. Used to add annotation to the code:
25. Python is an example of which type of programming language?
26. What is the radius of a circle as used in Tracy's commands?
27. Low-level languages are more efficient that high-level ones.
28. What will the output be from the following code?print("Hello world!")
29. What will be the output of the following code? 'print("Learning", "Python", "is fun!")'
30. Which of the following statements about variables is true?
31. What is an error in programming?
32. What is the primary purpose of a computer program?
33. Python (TM) is owned and managed by
34. Which of the following is NOT a Python data type?
35. Which of the following is not correct about Python?
36. L = [1, 3, 5, 7, 9]print(L.pop(-3), end = ' ')print(L.remove(L[0]), end = ' ')print(L)
37. Which of these professions might use Python?
38. Which is the most appropriate data type for: "13th December"
39. What command is used to start drawing a circle?
40. Which of the following is a programming language?
41. What keyword is used to exit a loop early?
42. Which errors are detected by the Python IDLE?
43. What will print(len('Python')) output?
44. Which of these is the correct code for creating a list of names?
45. What is the purpose of importing the randint function from the random module?
46. What will the following code do? "'pythontry:print(1 / 0)except ZeroDivisionError:print("Cannot divide by zero") "'
47. Number1 = 15number2 = 10total = number1 + number2What is total?
48. What will the following code output?if not 0:print("True")else:print("False")
49. What is the purpose of the 'return' statement in a function?
50. Smallest element of Python coding is called .....
51. What does the following code do? "'pythonname = "Sam"print(name) "'
52. Which line of code will display the message 'Hello World!' on the screen when it is run in Python?
53. Which keyword is used for decision making?
54. How do you take input from the user?
55. A disadvantage of Python is it is harder to debug than other higher level programming languages.
56. What are python comments?
57. What is the name of the programming language we are learning?
58. What is the output of the expression 8 * 2 in Python?
59. Which of the following is NOT a type of variable in Python?
60. Tuples in Python have a limited set of methods. Which statement is accurate?