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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What will be the output of the following Python code?d = {"john":40, "peter":45}d["john"]
2. What is the purpose of the 'type' function in Python?
3. What command do we use to tell Python to accept an input?
4. Which programming language would a professional programmer be most likely to use in their jobs?
5. Which of the following is a method to remove an element from a dictionary in Python?
6. Which one is a string in Python?
7. What is a logic error?
8. What is the output of print("Python is fun")?
9. What is a punctuator?
10. What will this program do?print("Hello world")
11. Who developed the Python language?
12. Operators of same precedence are executed from .....
13. Which symbol is used for 'not equal to' in Python?
14. What is the default return type of the input() function?
15. How do you correctly name the rules of a programming language?
16. What is the purpose of 'else' in an 'if-else' statement?
17. Which of these is used to repeat actions?
18. Which of the following statements will display the temperature in Celsius entered by the user?
19. In programming, a LIBRARY is a set of important functions and methods that you can access to make your programming easier
20. In which situation would you prefer recursion over iteration?
21. A=1a, b=a+1, a+1print(a, b)a, b=a+2, a+3print(a, b)
22. High and low-level programming languages can be understood by a computer.
23. A testing environment that users can test code, run programs or files without impacting the system, application, or machine used.
24. What should you do every time you make a change to your Python program?
25. Which of the following is used to display output in Python?
26. What will be printed by the following code? "'pythonx = 5y = "5"print(x + int(y)) "'
27. What data type is used to represent true or false values in Python?
28. Which function is used to get input from the user in Python?
29. Python was named after the British television show, .....
30. Which of these is correct in Python?
31. What is the radius of the circles used to draw a slinky?
32. If you have a syntax error will the code run?
33. What is the purpose of the 'input()' function in Python?
34. What is the purpose of the 'break' statement in a loop?
35. How do you start a function in Python?
36. What is the output of print('I will become a Python Pro')?
37. What is the mode available in Python?
38. How to insert elements at the last in list?
39. Which statement about sequential condition checking is correct?
40. What is a run time error?
41. Why is indenting used?
42. How many libraries are available for Python?
43. What is the type of []?
44. The function used to find the length of a string is:
45. What does the following loop do?for i in range(3):print(i)
46. Which of the following statements will print "Hello, World!" to the console in Python?
47. The process of linking one thing to another
48. An application that contains all the necessary tools needed to write a program is called:
49. How many tests are conducted for the theory component of the IC and what is the mark for each test?
50. Which symbol is used for comments in Python?
51. The result of this code is print ("Welcome to programming")
52. The operators and, or, not are called
53. What is the output of 'series.head()' in Pandas?
54. What is the full form of IDLE
55. Which operator symbol is used for addition in Python?
56. What is the purpose of the 'else' statement in Python?
57. What is the main advantage of Python being an interpreted language?
58. What does Python use to do math?
59. Which operator is used for division in Python that returns a float?
60. Select the correct flow of execution for the below program1. #program to add two numbers through a function2. def calc ..... Sum (x, y):3. s = x + y4. return s5.6. num1 = int (input ( "Enter first number:'' ) )7. num2 = int (input ( "Enter second number:'' ) )8. sum = calc ..... Sum (num1, num2)9. print ( "Sum of two given numbers is" , sum)