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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following variable names is invalid?
2. The term which describes errors in a programme which are due to programmers making typing mistakes or spelling mistakes
3. What will print([1, 2, 3][0]) output?
4. What is the output of print('Welcome to Python')?
5. What is the purpose of the as keyword when importing a module?
6. What is the process of developing and implementing various sets of instructions to enable a computer to do a certain task?
7. What will be the output of print("Python"[::-1])?
8. Apa tujuan dari pernyataan 'if ..... name ..... == " ..... main ..... ":'?
9. What is the output of the following code?for i in range(3):if i == 2:breakprint(i)
10. The input() function in Python can be used to
11. An escape sequence represents how many characters?"t"
12. What is the end after if statements?
13. What will the following code output?if 5 > 3:print("True")else:print("False")
14. What is the function to exit the turtle graphics window?
15. Write the output of the following:print(range(0, 8, 2))
16. Which of the following declarations is incorrect in python language?
17. Which of the following is NOT a built in module in Python?
18. What is the output of the following code?for i in range(5):if i == 2:continueprint(i)
19. Which of the following is a valid tuple declaration?
20. What does len("Python") return?
21. What will be the output of the following code? "'python# This is a commentprint(2 ** 3) "'
22. What will be the output?name = 'Dave'greeting = "Good morning" + nameprint (greeting)
23. What character is used to indicate a comment in PLS?
24. What will the below Python code will return?list1=[0, 2, 5, 1]str1="7"for i in list1:str1=str1+iprint(str1)
25. What is the output of the following code? "'pythonprint(type(3.14)) "'
26. What is the main purpose of the Python Software Foundation?
27. What is the correct full form of IDLE in Python?
28. Python keywords are:
29. Where to write explanatory text in Google Colab?
30. Python files are saved with which extension?
31. Which operator is used for concatenation in the slides?
32. A set of precise instructions that is meant to solve a problem is .....
33. What is the correct way to write a comment in Python?
34. What is the purpose of adding Python to PATH?
35. What data type is used to represent whole numbers(eg . 11, 213, ) in Python?
36. What will the following code print? "'pythonx = 7if x > 5:if x < 10:print("A") else:print("B")else:print("C") "'
37. Output of print(7 % 21) is .....
38. What is the command to verify if Python is installed successfully on your system?
39. ..... keyword is used for creating a function in Python.
40. Which step comes first in the Data Science process?
41. Which command is used to install Jupyter Notebook using pip?
42. What is the result of the following operation in Python? print(15 // 4)
43. What is the output of this code?def multiply (a, b = 2):return a * bprint (multiply (3, 4) )
44. What group of blocks controls movement of the Sprite?
45. What is the purpose of the Python interpreter?
46. Returning a range of characters (part of a string) is done using which syntax?
47. What does the 'sorted()' function do in Python?
48. What will the following code return? a='Hello World'print(a[0:8])
49. Koje su glavne vrste podataka u Pythonu?
50. What language does Tracy the turtle understand?
51. X, y=20, 60y, x, y=x, y-10, x+10print (x, y)
52. Convert the decimal number (345)10 to Octal:
53. Is python case sensitive?
54. Consider scores = (10, 15, 25). What is the result of sum(scores)?
55. In which year was Python officially made available to the public?
56. What will be the data type of y after the following statements?x = 48 y = str(x)
57. What does the range() function do in a for loop?
58. What exciting tool can Python create that we use on the internet?
59. What will the following code print? print('Hello, Universe!')
60. Given t = ('x', 'y', 'z'), what does list(enumerate(t)) produce?