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

Quiz Instructions

Select an option to see the correct answer instantly.

1. When did its development begin?
2. Y = 4z = lambda x:x ** yprint z(3)
3. What does a function do?
4. What is the purpose of the 'def' keyword?
5. What will the following code output if the input is 13?lucky = 13print("Guess my number:")guess = int(input())if guess == lucky:print("Amazing, you guessed it")else:print("Sorry, it's not", guess)
6. Out of addition(+) and Subtraction (-) operator, which has more precedence?
7. Which of the following will cause an error in Python?
8. What does Find() do in Beautifulsoup.
9. What is the output of print(3.14 * 2) in Python?
10. What do you use Python for?
11. Which of the following will print the string '"The weight is 25 kgs"' using the variable 'weight = 25'?
12. Which keyword is used to start an if statement?
13. What is a dictionary in Python?
14. What is the keyword used to define a function in Python?
15. How do you remove the value '3' from a list called 'numbers'?
16. How do you take user input and store it in a variable called 'name' in Python 3?
17. What is the output of print(3 * 'Hi')?
18. What is the output of the following code:print(f'7 x 3 = {7 * 3}')?
19. What is the purpose of lesson closure in teaching?
20. What is automation?
21. What is the programming word to rework something to vary the original?
22. How do you get the length of a string 'sentence'?
23. The "Zen of Python" states that readability counts. In Python, which character is used to denote the start of a single-line comment, which helps improve readability?
24. Which of these is a correct variable name in Python?
25. The output of the programx = 4x = "Sally"print(x)
26. Salah satu alasan Python populer untuk Data Science adalah karena .....
27. What is the correct function to take input from a user in Python?
28. Which of the following is a correct way to name a variable?
29. For the tuple t = (1, 5, 7, 10), which expression returns the largest value?
30. In Python we can get a part of a list with a
31. Which of the following translators converts high level language into low level language atonce?
32. What is the data type of the variable 'x' when 'x = 3.14' in Python?
33. Which tool can be used to write and run Python code?
34. What is the result of the following operation in Python:my ..... list = [1, 2, 3] followed by my ..... list.append(4)?
35. By default, the Python scripts are saved with ..... extension.
36. What is the input name for 'true/false' inputs?
37. Salah satu alat yang dapat digunakan untuk menulis kode Python adalah .....
38. In the statement 'x = 5', what is '5'?
39. Which built-in function is used to write output to the screen?
40. Which of the following is invalid variable name?
41. Write the output of the following code:a=9; x=str(a); b=5; y=str(b); x+y
42. What is the output of the following code? number = int("10") + 5 print(number)
43. You have to buy Python.
44. What will be the output of the following code? "'pythonname = input("Enter your name: ")print("Hello, ", name) "'
45. What is the significance of the '#' symbol in Python?
46. What is the purpose of arithmetic expressions in programming?
47. Which keyboard key is used to run Python programs?
48. What is the significance of human-readable code in programming?
49. What will be the output of the following code? print("My favourite colour is '' + "blue")
50. What will be the output of the following code?x = 10y = 3print (x % y)
51. What is the output of the following code:print(5 + 3)?
52. What is the difference between a string and an integer in Python?
53. Which of the following has only unique values?
54. What will happen if indentation is not used properly in Python?
55. What is the output of the expression 3 * 4 + 5?
56. You use ..... blocks to program Scratch
57. Which of the following is true about the subprograms in the turtle graphics library module?
58. What does input() do in Python?
59. What should you do to repeat the drawing of the Slinky circles?
60. Which of these is a number in Python?