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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the significance of Python's readability?
2. Which of the following best describes the output of a program that reads student details (Name, USN, Marks in three subjects) and displays the student details, total marks, and percentage with suitable messages?
3. Name one use case of Python.
4. To stop the turtle drawing you need to use which of the following commands?
5. What is the correct way to create a variable in Python?
6. Module-2:Dictionaries and Structuring Data are covered in which chapters of Textbook 1?
7. Where can you download PyCharm?
8. Why is Python called Python?
9. Which one of the following is the correct extension of the Python file?
10. What is the purpose of syntax in text-based programming languages?
11. A location in memory used to store data that can be changed.
12. Python is a text-based programming language
13. The second part of if, that is executed when the condition is false
14. What will be the value of 'x' after executing the following code? "'pythonx = 5x = x + 2 "'
15. This data type is used to store whole numbers
16. What does the double-slash // do in Python?
17. What is the result of the following expression:$7 // 2$
18. B = 24a = 10print(a, b)When this program is executed, what will be displayed on the screen?
19. What is the output of print('OK')?
20. What is recursion in programming?
21. Which of the following is a correct while loop in Python?
22. Web scraping is used in Data analytics.
23. What is the output of the expression '5' * 2?
24. ..... function is an anonymous function in python.
25. Which of the following is NOT a data type in Python?
26. What is one feature that makes Python suitable for AI?
27. Which statement will display square of number (n)?
28. In the line of code below, what does input() do?firstname = input( "What is your name?" )
29. In Python list indexes start at which number?
30. Which of the following is a reserved word in Python?
31. True or False:Indentation in Python is for readability only.
32. What symbol do we use when we want to add comments to a python program?
33. For nums = (4, 7, 4, 9, 4). Which expression gives the position of the first 4?
34. What keeps a record of every version of a file that has been saved to your Google Docs cloud account?
35. What is the output of the below code snippet?num1=10num2=7//2num2*=num1print(num2)
36. What happens when 'time.sleep()' is executed in a program?
37. Name numeric data types in Python?
38. X, y=5, 6print(x==5 and y==6)
39. They expect to see 10, but they see the word score instead. Why?
40. What is the output of the following code?print("The answer is", 3 + 2)
41. Statement below 'function definition' begin with spaces called .....
42. Which statement is used to stop a loop in Python?
43. Is a comment ignored or followed by a program?
44. What is pseudocode?
45. What will print('school'[0]) output?
46. What is the index of the last element in a list called 'items' with 5 elements?
47. How can you make the turtle pen up and stop drawing?
48. What is the purpose of the 'input' subprogram in PLS?
49. What type of error is returned by the following statement? def abc(a):print(a)
50. Answer = 2 + 12 * 2 print("The Answer is", answer)When this program is executed, what will be displayed on the screen?
51. How do you handle errors in Python to prevent your programme from crashing?
52. What will the following code output?for i in range(2, 7, 2):print(i)
53. How many types of switch cases are there in total?
54. Which operator returns True if target string is somewhere in the search string; otherwise it returns False.
55. Which data type than can have one of two values:True or False?
56. Is print a predefine function in Python?
57. Which of the following is not a token?
58. What is the purpose of the else block in a loop?
59. What is the purpose of the getPixel function?
60. What will the following Python program print if the user enters 20 as their age? age = int(input('Enter your age:'))if age >= 18:print('Adult')else:print('Child')