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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What does the keyboard shortcut CTRL+Z do?
2. What does syntax refer to in programming languages?
3. What is the importance of syntax in Python programming?
4. What is the output of the following Python code?a = 3b = a + 4print(a, b)
5. What is the purpose of the turtle.Screen() subprogram?
6. Evaluate the following expression:"dog" < "Dog"
7. What are variables used for?
8. Python teaches computers to think for themselves. What is this called?
9. What will the following code output? 'print("Hello, World!")'
10. Which of these platforms do we use for Python coding exercises?
11. What type of error is a syntax error in Python?
12. Is Python case sensitive language?
13. The Python programming language is named after
14. What does print() do in Python?
15. What is the purpose of the if statement in Python?
16. Which of the following is the correct way to write a comment in Python?
17. What does the APPEND procedure do in the following code:teams = [ "Man Utd" , "Man City" , "Arsenal"] teams.append( "Liverpool" )
18. What will the following code output if the user enters "Harry" ? "'pythonname = input("What is your name? ")print("Hello, '' + name) "'
19. How do you activate a virtual environment in Python (Windows)?
20. In a flowchart, which shape is used to represent a decision?
21. In Python, what is the term used to describe the names given to variables, functions, classes, and modules?
22. Why is Python often used in scientific computing?
23. Which of the following is not the category of token?
24. When does a SYNTAX error come?
25. Alasan utama menggunakan Jupyter Notebook adalah karena .....
26. Which tool is used in the class for writing Python code?
27. What is a variable in programming?
28. What is mentioned as an additional advantage of Python in terms of obtaining, installing, and deploying?
29. What will be the output after the following statements?a = 4*3**2 print(a)
30. What happens if you pass more arguments than the number of parameters in a function?
31. Apa fungsi yang digunakan untuk membaca input dari pengguna di Python?
32. Identify the control structure used in the following code:for i in range(5):print(i)
33. How do you rename a module during import?
34. How can you check for missing values in a Pandas DataFrame df?
35. Which value is an Integer?
36. Mengapa data scientist perlu belajar pemrograman?
37. What will the following code result in:name = "Alison" number = len(name) print(number)
38. What is the order of precedence in python?
39. Select the valid Octal integer literals
40. Loop for disebut counted loop karena .....
41. How is 2 represented in binary?
42. How do you define(assign) variables?
43. Python statements are put into a text file with a ".py" extension. The python interpreter is run, pointed at the file. The program is executed line-by-line and the output is displayed.
44. Which of the following is FALSE about compilers?
45. What is a Boolean value in Python? Give an example.
46. What will be the output of the following code?x = 5y = 2print(x ** y)
47. What is the output of the following Python code? print("2" + "5")
48. What is the purpose of the 'drop()' method in a DataFrame?
49. In the following, x = 7 the x would be considered a(n)
50. What does the message 'Setup was successful' indicate in the Python installation process?
51. Which of these is not a component of a variable
52. What is the output of the following code? "'pythonnumbers = [10, 20, 30]numbers[2] = 50print(numbers) "'
53. What is the result of the following code:fname= "Esslam "lname= "Fahmi "print ("Hi" , lname + fname)
54. How do you create a list in Python with the elements 1, 2, and 3?
55. Given t = (10, 20, 30, 40), which expression retrieves the second element using zero-based indexing?
56. Which command is used to display a message on the screen in Python?
57. Which loop is used to iterate over a sequence in Python?
58. Identify the invalid identifier.
59. In Python values that can not be changed after they are created are called
60. Identifiers in Python must start with which of the following?