Class 11 Computer Science Chapter 2 Introduction To Python Quiz 34 (56 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Name two features of Python.
2. What does the oval shape in a flowchart represent?
3. What is the result of print(10-3)?
4. How do websites use Python?
5. A collection of items stored in one variable is called:
6. Which of the following is not key feature of Python?
7. Str() can be used on a number to convert the number to
8. An expression like 2 + 2 in Python consists of .....
9. What widget would you use to display a single line of text input in Tkinter?
10. Can selenium be used for automation?
11. What does the keyword 'if' represent in Python?
12. Is this the correct code for a list?register = {"Sam", "Pheobe", Georgia", Richard"}
13. To execute a Python program, you need a Python interpreter.
14. What will the following code output if the variable 'age' is set to 12? 'print("You are '' + str(age) + '' years old.")'
15. Which one is the assignment operator?
16. Which keyword is used for function?
17. What is the output of the following code? "'pythonprint("The length is", 5, "metres.") "'
18. What is the purpose of the pass keyword in Python?
19. In programming, which word means to break something down into smaller chunks?
20. You can check code in the Python
21. Which expression converts numbers = (1, 5, 7, 1) into a mutable collection?
22. How do you write the number ten as a string in Python?
23. Which statement will print the temperature in Celsius entered by the user?
24. Which of the following keywords is used to create an anonymous function in Python?
25. For i in range(1, 4):print(i)#end loop
26. What will be the output of the following code? "'pythonprint("Python"[3]) "'
27. Which statement is used for decision making in Python?
28. Which of the following is true about the while loop?
29. Which mode of Python Interpreter allows to execute multiple statements saved in a file with extension .py ( can be Module/Script/Program file)
30. Which function is used to convert a number or string to an integer in Python?
31. What is the memory location name known as in Python. When using this high level language?
32. What is the result of the expression 5 + 3 in Python?
33. What will the following code output? "'pythontemperature = 20if temperature > 25:print("It's hot")else:print("It's cool") "'
34. Which of the following is a correct if statement in Python?
35. What will happen if you call a function with fewer arguments than required, but no default values are provided?
36. Which of the following is a correct way to assign strings with multiple lines in a variable?
37. Write the output of the following code:x=2; y=3; x+y+5; print(x+y)
38. What is keyword?
39. Which of the following is a valid way to create a tuple in Python?
40. Which one is a Python keyword?
41. Describe the use of the 'continue' statement in a loop.
42. How is Jython different from CPython?
43. What's the output of the below code snippet?from math import sqrtL1 = [x**2 for x in range(10)].pop()L1 += 19print(sqrt(L1), end = '' ")L1 = [x**2 for x in reversed(range(10))].pop()L1 += 16print(int(sqrt(L1)))
44. Apa output dari print(2 ** 3)?
45. What is the data type of x after the following statement?x = [7, 8, 9, 10]
46. What is the default mode for the PLS turtle when it is created?
47. Which function gives the length of a list?
48. What is the syntax used to ask something in Python?
49. Which of the following statements will display the value stored in the variable 'height'?
50. What is the correct rule for naming variables in Python?
51. Each line or instruction typed is interpreted and executed immediately and results are displayed each time you press ENTER.
52. Python is widely used in which specialized field due to its powerful libraries like Pandas and NumPy?
53. What is the output of the code:d1 = {"john":40, "peter":45} d2 = {"john":466, "peter":45} print d1 > d2
54. Which of these is a Python keyword?
55. Python uses ..... to convert its instructions into machine language.
56. What does the turtle.done() function do?