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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What software do you use to write a program in Python?
2. What will be the output of print('Hello' + ' World')?
3. How would you convert a string input to an integer in Python?
4. What is the correct way to start a for loop in Python?
5. Library Pandas digunakan untuk .....
6. A person who writes a python program is called a-
7. Which of the following is NOT a valid way to concatenate strings in Python?
8. What does print(10 % 3) output?
9. What is a Python class?
10. In game development, what role can Python play?
11. How do you access a value in a dictionary?
12. Name = "teacher kim"new ..... name = nameFollowing variable declaration above, we created how many objects and how many references?
13. Manakah di antara berikut ini yang merupakan tipe data yang dapat diubah (mutable) di Python?
14. Which of the following is used to format strings in Python?
15. Which of these pieces of code would return the name "Harry" from the following list?nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
16. What does an if statement do?
17. An ordered set of instructions to be executed by a computer to carry out a specific task is called .....
18. Which statement about variable naming is correct?
19. How do you close the file?
20. Explain the concept of operator precedence in Python.
21. What will be the output of the following code? "'pythonname = "Sam"print("Hello, '' + name) "'
22. Which of the following function can be used to find the data type of a variable?
23. How do you import a module in Python?
24. Which of the following is a high-level programming language?
25. Which string subprogram is used to replace all occurrences of a certain string within another string?
26. What will be the data type of x after the following statement if input entered is 18? x = input('Enter a number:')
27. What is the correct syntax for assigning the value 10 to a variable named x in Python?
28. Python programming use COMPILER to translate the source code
29. Which symbol represents multiplication?
30. Which of the following is a valid variable name?
31. Which of the following is the correct syntax for a for loop in Python?
32. What is a commenting line?
33. What will be the output of the following code?x = 2y = 3print(x)x = x + yprint(x)
34. In programming, a (n) ..... is a value that can change, depending on conditions or on information passed to the program
35. What is the output for ' ' in 'python'?
36. Both the print statement will return same output (T/F)
37. What does PLS use for the conversion between data types?
38. Which of the following is the correct way to write a multi-line comment in Python?
39. Which of the following keywords is used to create a loop in Python?
40. What is a loop in Python?
41. A CONDITION in Python always evaluates to
42. None in Python has which data type?
43. Which of the following is NOT a numeric type in Python?
44. Why must programs written in high-level programming languages be converted to machine code?
45. Which keyword starts a conditional in Python?
46. What is the result of the following code? "'pythonweight = 12print(weight, "kg") "'
47. In Python, a variable must be declared before it is assigned a value:
48. How do you add data in SQL?
49. How do you access a specific cell in a DataFrame?
50. Pernyataan if digunakan untuk .....
51. What does the string subprogram .isalpha() return?
52. Which collection will any() consider truthy?
53. What is selection?
54. Is the comparison operator in python
55. What is the output of print(2 ** 3)?
56. What command is used in python to display output?
57. Write the output of the following code:7+2//1**2 > 5+2**2//3
58. Which of the following are valid identifiers?
59. What language do we use?
60. What is the purpose of the 'def ():' syntax in Python?