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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which statement correctly describes all(tuple)?
2. What will be the data type of the following variable? A = '101'
3. What other name do Errors in Python have?
4. What does print("hello) display?
5. What is one of the key features of Python as a programming language?
6. What is the output of the following Python code? a = "7" b = int(a) print(b + 3)
7. In the expression (x + y) / 4, which symbols are the operators?
8. How do you count rows in SQL?
9. Which of the following environments can be used to write Python code?
10. For strings, the + operator represents
11. Which of the following is a primitive data type in Python?
12. Which of the following is a NOT a characteristic of a Lambda function?
13. Which data structure allows duplicate elements?
14. What is the output of print(len('Hello'))?
15. What will be the output of the following code? "'pythonprint("Python" .lower()) "'
16. Which operator is used for logical operations in Python?
17. What does the else statement do?
18. Which operator is used for subtraction?
19. What will be the output of the following code?print("Welcome to", "Python", "Programming!")
20. Which of the following is the correct way to output the value of a variable called 'height' in Python?
21. What is the name of the data type of True?
22. Which statement prints I am 10 years old?
23. How does high-level get translated into low-level?
24. Name=input("What is your name? ")print("Your name is '' + name)What will be displayed if the user types in "Bob" ?
25. The ..... loop is used when you are sure about how many times a loop body is executed.
26. Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?
27. How do you create an empty list in Python?
28. What is the correct syntax to take user input?
29. Tipe data list pada Python ditandai dengan tanda .....
30. How do you make the turtle invisible on the screen?
31. What is the purpose of the 'continue' statement in a loop?
32. What type of loop is 'for'?
33. What data type will the variable 'weight' have after this code runs? "'pythonweight = input("Enter your weight in pounds: ") "'
34. True and False are sample of ..... ?
35. Colors = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]Choose the answer that will output True.
36. Print (Today is Monday !) will display
37. Which of the following is an example of Python's use in Artificial Intelligence (AI)?
38. Start with items = ("pen", "book"). To add "eraser" using tuple concatenation, which code is correct?
39. Which subprogram is used to remove certain characters when reading from and writing to files in Python?
40. What will be the output after the following statements?x = 8 y = 2 print(x // y)
41. Which of the following data types can store decimal numbers?
42. How do you install a package in Python using pip?
43. How do you convert a string "123" to an integer in Python?
44. What is the purpose of the 'return' statement?
45. When naming a variable what must be taking into consideration?
46. To make decisions in our code we can use which statement
47. Which of the following is a lambda function in Python?
48. What command can you use to check if Python is installed?
49. How did Python, the programming language, get its name?
50. How to create a dictionary?
51. Which symbol is used in variable length arguments to specify more arguments than specified?
52. Why is the space important in "in '' when concatenating?
53. Which of the following is a valid print statement in Python?
54. Which of the following will correctly take a user's input and store it in a variable called name?
55. A while loop while run as long as its condition is
56. Which one of these is another programming language?
57. Which of these is used to join two strings?
58. Which of the following is not a type of argument?
59. Reserved word or "name" that identifies built-in operations, functions, I/O operations, or conditionals that may not be used to name variables, functions, or any other type of identifier.
60. What will be the output of range(5)?