Class 12 Computer Science Chapter 2 Advanced Python Programming Quiz 3 (60 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. IN WHICH YEAR WAS THE PYTHON 3.0 VERSION DEVELOPED?
2. Which has integer data type?
3. Essential thing to create a window screen using tkinter python is .....
4. Which method can be used to return a string in upper case letters?
5. What is NIC used for?
6. What data type is the object below? D = [1, 23, 'hello', 1]
7. The use of the mainloop() in Python Tkinter is .....
8. Which of the following is not an IDE for Python?
9. Name some common data types in Python.
10. What will be the output of the following code? my ..... string = "Python"print(my ..... string[0])
11. Given a statement "All swan are white" . To falsify this statement, you need to travel around the world and find at least one non-white swan. Which one is a indispensable command in your coding?
12. What is the output of the following code:print 9//2
13. The correct way to use the config() function in tkinter is .....
14. What is the output:for i in range(2, , 2):print(i)
15. What is Python really?
16. Guess the Outputs={1, 2, 3, 5, 6, 7, 87, 8, 8}print(s[2:7])
17. Which of these collections defines a LIST?
18. What does encapsulation help with in Object-Oriented Programming?
19. Given a Pandas series called Marks, the command which will display the first 3 rows is .
20. What is the file extension for Python scripts?
21. Predict the outpout z=[1, 2, 3, 4, 5]print(2*z)
22. Which of the following is the correct statement?z = {"x":0, "y":1}
23. What is the correct syntax to return the fourth element in a list named 'fruits'?
24. Which of the following is an example of string slicing in Python?
25. The method(s) to import a tkinter in python program is/are .....
26. Predict the output:s="SRGEC"v=" for i in s:v=v+iprint(v)
27. What is the main purpose of Python?
28. Find the output of the following program segments:for i in range(20, 30, 2):print(i)
29. What is the full form of SQL
30. Explain the concept of a dictionary in Python.
31. What does indentation in Python indicate?
32. What is the data type of print(type(10))
33. What is the scope of a variable in Python?
34. WHICH ONE OF THE FOLLOWING IS NOT SHOWN IN THE SYNTAX ERROR?
35. What is the output of the given below program?print("Know Program" .split())
36. . In a type of computer network, what does MAN stands for?
37. Explain the concept of 'recursion' in Python functions.
38. What is the output of len('Hello World')?
39. What are the different data types in Python?
40. How can you import a specific function from a module in Python?
41. ..... is a procedure or step by step process for solving a problem.
42. Series = pd.series({'jan':31, "feb':29, 'march':31})print(series) gives?
43. WHICH ONE OF THESE IS USED TO TAKE INPUT FROM THE USERS?
44. What will be the output?a = 25b = 4print (a%b)
45. Which of these tests whether the variable x is the same as 'Hello'?
46. Which of the following is true about the input() function in Python?
47. What will be the output? name = 'Python' print (type(name))
48. Which mathematical concept is fit to text data (e.g. words in documents)
49. How does the grid() function put the widget on the screen?
50. Why are comments important in programming?
51. Which of these collections defines a DICTIONARY?
52. Which function is used to create a cursor object?
53. Which of the following is not a core data type in Python programming?
54. What does % math operator do?
55. What does the abstraction in Python allow programmers to do?
56. Let's say we create a DataFrame df = pd.DataFrame({'A':[1, 2, 3], 'B':[4, 5, 6]})What will df.shape return?
57. Suppose t = (1, 2, 4, 3), which of the following is incorrect?
58. How do you add comments in Python code?
59. What is the return statement used for in Python functions?
60. The ..... symbol is used at the beginning of a flow chart.