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

Quiz Instructions

Select an option to see the correct answer instantly.

1. False is an example of what data type?
2. Which of the following can not be used as an identifier?
3. Which statement is used to skip the current iteration and move to the next one?
4. What is the main objective of the Python programming class?
5. Which of these stores a piece of data, and gives it a specific name?
6. What does the Python 'print()' function automatically add to ensure that console output appears on separate lines?
7. Which job might involve using Python to build robots?
8. What data type is "67" ?
9. Python is a popular programming language used for .....
10. Which symbol is the assignment operator in Python?
11. How do you define a list in Python?
12. If else statement
13. Which function is used to read a CSV file into a Pandas DataFrame?
14. In the expression a + b, what are a and b called?
15. Which keyword is used to define a function?
16. What is the official website to download Python?
17. Is python an interpreted language?
18. Which of the following is a valid comment in Python?
19. Which of these is a Python list method?
20. Which of the following is an invalid variable?
21. How many times will the following loop execute?for i in range(5):print(i)
22. Your program asks people how much money something costs and saves it as a variable named "price" . Assuming users enter the amount correctly, which command will result in the value containing dollars BUT NO cents.
23. Which of the following is used to create a list in Python?
24. What will the following code output if diceroll equals 4?from random import randintdiceroll = 4if diceroll > 3:print(diceroll, "is a large roll")else:print(diceroll, "is a small roll")
25. What is the correct function to display output to the console in Python?
26. Identify the keyword that accesses an instance's attributes when three objects are created.
27. What is the output of the following code?for i in range(3):print(i)
28. Which data type stores True or False?
29. What is the output of the following code:print(type(5) is int)?
30. Read the Python program below:location = "Leeds" print("I live in", location)When this program is executed, what will be displayed on the screen?
31. Which of the following store data in pair?
32. Is "You were born in" a string?
33. What is the correct syntax to make Tracy move forward 100 pixels?
34. Which variable correctly stores a string value?
35. Which of the following is used to define a class in Python?
36. True is a boolean
37. How do you handle exceptions in Python?
38. Which statement is true regarding how computers communicate?
39. What is the minimum passing mark for the Semester End Exam (SEE) as a percentage of the maximum marks?
40. Used in python to make decisions
41. What will be the output of the following Python program? x = 5 x = x + 10 print(x)
42. What is the result of the expression 10 // 3?
43. Which of the following Python code snippets asks the user to enter their name and greets them?
44. Which of the following is an example of a famous application developed using Python?
45. A, b, c=10, 20, 30p, q, r=c-5, a+3, b-4print ('A, B, C:', a, b, c)print ('P, Q, R:', p, q, r)
46. Which of the following makes Python easy to learn?
47. Which of the following is not a mode of interacting with Python?
48. How do you print a variable 'x' in Python?
49. Which of the following is the correct way to display the word "Hello" on the screen in Python?
50. Which of the following is a valid way to create a list in Python?
51. A note to the programmer that tells about the code is called a-
52. What symbol is used for multiplication in Python?
53. What does len('apple') return?
54. Which of the following is a characteristic of Python?
55. Read the Python program below:number = 13if number == 0:print("zero")else:print(number)number = 0When this program is executed, what will be displayed on the screen?
56. What is the default package manager for Python?
57. What is the purpose of the subprogram turtle.Turtle() in the turtle library module?
58. Consider the list:myList=["r", "o", "y", "g", "b", "i", "v"]What prints from the following statement?print(myList[0:3])
59. How can Python help in robotics?
60. PyCharm needs Python interpreter installed to work.