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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What does IDLE stand for in Python?
2. What is the output of print('Hello', name, ', how are you today?')-Where name="Monty"
3. How do you create a user-defined function with default parameters?
4. The character that must be at the end of the line for if, while, for etc.
5. Which type of memory is volatile and loses its data when the power is turned off?
6. What is a DataFrame in Pandas?
7. To change a variable in the global scope from within a function we use which keyword?
8. Which of the following is the correct syntax to create a NumPy array?
9. Which data type represnts a whole number?
10. Identify the term that describes the creation of a new object.
11. A developer creates t = (3, 4, 5) and wants to replace 4 with 7. What is the appropriate approach?
12. Which are the advantages of functions in python?
13. What type of data is stored in the variable below?x = "Hello, World!"
14. Loop while akan berhenti ketika .....
15. What will be the output of the following code? "'pythonprint(5 + 3) "'
16. How do you create a dictionary in Python?
17. Which statement best describes zip() when used on tuples of different lengths?
18. ..... are special words that are used by Python interpreter to recognize thestructure of program.
19. If you want to store multiple values in a single variable, which data type would you use?
20. What is the output of the following code:print(3 * 'Python')?
21. Python can be used to design games and 3D graphics
22. Is the result of 9 + 4 * 2
23. Keyword check:In the statement age = 13, what is the value?
24. What word means creating instructions to solve a problem?
25. What do we call a loop within a loop?
26. Which mode would you typically use in Python to write larger programs and save them as .py files?
27. The symbol for checking equality is:
28. Which keyword is used to skip the current iteration of a loop in Python?
29. What is the result of 2 + 3 * 4 in Python?
30. What will be the output of the following code snippet?print("Hello, World!")
31. Which symbol is used to print something in Python?
32. Which translator converts a HLL program into machine language by converting and executing line by line
33. The integer and float data types are used to represent
34. What is mentioned as the seed from which Python sprouted?
35. The Boolean operator that returns true if EITHER of its operands are true
36. For var1=input(); var2 = var1 + var1; print(var2). If the user enters 6, what is printed?
37. What will be the output of the following Python code?x = ['ab', 'cd'] for i in x:i.upper() print(x)
38. Who created Python and when was it released?
39. Which of the following statements will correctly assign the value "blue" to a variable called 'colour'?
40. What is the output of the following code? "'pythonprint(12 / 4) "'
41. Which function is used to convert a float to a string in Python?
42. List items have an index number. In the following list, which item has the index number of 3?["John", "Harry", "Jesse", "John", "Harry", "Harry"]
43. What does the statement 'print' do?
44. TRUE or FALSE:Python is a high level language
45. Which of the following is a built-in data structure in Python?
46. Which programming concept is implemented in Python as per the course objectives?
47. What will be the output of the following code? "'pythonprint(7 + 3.5) "'
48. Who might use Python to make websites?
49. When you have an error in your code what is the term to summarise finding and fixing that error?
50. Which of the following is immutable (values that cannot be changed)?
51. What is one advantage of Python's syntax?
52. Suppose listExample is ['h', 'e', 'l', 'l', 'o']what is len(listExample)?
53. Who developed Python programming?
54. Which of the following is a valid way to create a dictionary in Python?
55. Can we add backdrops and sprites from the internet or our device?
56. Which arithmetic operator would you use to find the product of two numbers?
57. Which of the following is used to check the identity of two objects in Python?
58. Which of the following is a valid way to define a function in Python?
59. Which of these is a string?
60. Variables in python are case sensitive?