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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following is the correct way to check if a number is NOT equal to 10 in Python?
2. Aturan penamaan variabel Python yang benar adalah .....
3. What will the following code print? print('Name:', name)
4. What is the correct code to print 'Hello World' in Python?
5. What would be the output of the following code snippet?a ..... dict = {'color':'blue', 'fruit':'apple', 'pet':'dog'}for key in a ..... dict:print(key)
6. Data type for a whole number
7. What is the purpose of a computer program?
8. What does print("Good Job!") do?
9. How can you change the turtle's color?
10. How are constants conventionally named in PLS?
11. What is the output of the following code? "'pythonprint(2 ** 3) "'
12. What role has Python started to play in the field of IT project testing, as mentioned in the passage?
13. Name one fun thing you can do with Python.
14. Which of the following is used to import a module in Python?
15. What is the purpose of the 'input()' function in programming?
16. Manakah dari berikut ini yang merupakan nama variabel yang valid di Python?
17. What is the purpose of the print() function?
18. Which keyword is used to create a conditional statement in Python?
19. Which function from the random module returns a random integer between two given integers, inclusive?
20. Which of these is a valid comment line in Python?
21. Is the not equal operator in python
22. Which of the following is a built-in function in Python?
23. ..... are written with a decimal point that seprate the integer from the fractional number.
24. What is data input?
25. What type of programming language is Python classified as?
26. What is the purpose of combining variables in Python?
27. What does len() do?
28. Apa ekstensi file yang benar untuk file Python?
29. Whitespace adalah .....
30. What is the output of print('Python' * 2)?
31. Computer languages that are designed to be used and understood by humans are .....
32. What file extension do Python programs have?
33. Which statement creates an empty set in Python?
34. How do you create a list in Python?
35. The CIE marks for the theory component of the IC shall be ..... marks and for the laboratory component ..... marks.
36. What is Python's logo?
37. Which of the following Python commands will display the text "Hello, World!" on the screen?
38. What Python keyword is used to define (create) a new function?
39. What is the output of the following code?def multiply (x, y = 2):return x * yprint (multiply (4) )
40. What does the term "debugging" mean?
41. Which of the following is the correct way to declare a variable in Python?
42. What is the purpose of the 'forward 20' command in the program?
43. What is a input?
44. How many times will the following loop execute?for i in range(3):print(i)
45. What happens if you use the 'forward' command without parentheses?
46. What data type is used to represent whole numbers in Python?
47. A program written in a high-level language is called ..... code
48. What is the output of the expression 20-7 in Python?
49. How do you call a function named hello()?
50. What type of loop is a 'while' loop in repetition constructs?
51. What is a statement in programming?
52. The punctuation requirements for printing a string in Python are:
53. For i in range(-3), how many times this loop will run and print the next statement?
54. Which of the following is a correct for loop in Python to iterate over a list called numbers?
55. Which statement about computer memory is correct?
56. What is the purpose of PyCharm?
57. The shortcut for integer is ..... ?
58. What does the print() function do?
59. What is the correct way to get input from a user?
60. What does Python's "interpreted language" feature mean?