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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the purpose of the "import requests" statement in a Python file?
2. Which of the following is a valid way to assign the value 25 to a variable named 'age' in Python?
3. What operator would I need to take 5 from 10?
4. What is an interpreted language?
5. What does the 'sequence' in programming constructs refer to?
6. Keyword mana yang digunakan untuk mendefinisikan fungsi di Python?
7. What is the output of the following code?x = 10; print(x + 5)
8. What does the string subprogram .find() return if the is not found in?
9. Who created Python?
10. What does the turtle library subprogram 'penup()' do?
11. A syntax error means your code has a 'grammar' mistake or you used symbols/operationsincorrectly
12. Which data structure stores elements as key-value pairs?
13. What is the output of the following code snippet?my ..... list = [1, 2, 3, 4, 5] print(len(my ..... list))
14. Which function is used to get user input?
15. In which year was Python created?
16. List are the simple definition of Python Programming, EXCEPT .....
17. Which of the following is the correct way to assign the value 25 to a variable called 'distance'?
18. Read the Python program below:b = 42 a = 13print(a, b)When this program is executed, what will be displayed on the screen?
19. What will print(type(5)) output?
20. What is the purpose of the 'pass' keyword in exception handling?
21. What is a variable in Python?
22. Which of the following is valid operator?
23. Which extension is used for Python files?
24. Which command allows the user to type answers?
25. If the PRINT function is correct it appears as .....
26. The terms used to refer to variable's address in the memory and value to which a variable is bound
27. What is debugging in programming?
28. Language translator convert ..... code to ..... code.
29. Which of the following is a key feature of PyCharm for Python?
30. What does the = operator do in Python?
31. Can we use reserved names as variable name
32. What is the output of:print(2 + 3)?
33. Which field uses Python to analyze large sets of data?
34. What will this code print?x = 2y = 3print(x ** y)
35. Koji je izlaz za print('Hej' + ' Svijete')?
36. What is the correct way to define a string in Python?
37. The correct way to write a variable in Python?
38. According to Guido van Rossum's goals for Python in 1999, what did he envision for the language?
39. Which of the following is a correctly-formatted comment?
40. What will be the output of the following code?def add(a, b):return a + bprint(add(2, 3))
41. Which of these is a Boolean value?
42. Which statement is used to exit a loop in Python?
43. What does 'input()' do?
44. Which line correctly creates the variable shown in the slides?
45. Which loop is used when the number of iterations is known?
46. What is the output of the following code? "'pythonprint("5" + "3") "'
47. What is a function in Python?
48. Which of the following is a feature of Python's cross-platform compatibility?
49. KEYWORDS ARE ALSO CALLED .....
50. What does term 'debug' mean:
51. An escape sequence is represented by ..... slash followed by one or two characters.
52. Which line is correct?
53. How do you write a single-line comment in Python?
54. Which of the following combinations accurately matches mathematicalsymbols with their respective operations?
55. Which of the following is a valid way to assign the value 5 to a variable named 'length' in Python?
56. What can you create using Python?
57. How do you create a variable with the numeric value 5?
58. Python is an interpreted language.When the code is run. What happens?
59. Which of the following is a valid variable name in Python?
60. What is the purpose of using 'try' and 'except' in Python?