1. What is a program in computer science?
2. Which language is called machine language?
3. What is source code?
4. Which of the following uses an interpreter?
5. Which quote is attributed to Donald Knuth in the textbook?
6. Which of the following is NOT a feature of Python?
7. What is the symbol for the Python prompt in interactive mode?
8. What is the extension of Python source code files?
9. Which mode in Python allows the execution of individual statements instantaneously?
10. Which of the following is a Python keyword?
11. Which of the following is a valid identifier in Python?
12. What is a variable in Python?
13. Which symbol is used for comments in Python?
14. In Python, everything is treated as a(n):
15. Which function returns the identity of an object in Python?
16. What are the two execution modes in Python?
17. Which of the following is NOT a feature of Python?
18. Which of the following is NOT a keyword in Python?
19. What is the output of the following Python code: `print("Hello, World!")`?
20. Which of the following statements is true about Python?
21. What is the correct syntax for a single-line comment in Python?
22. Which of the following is NOT a Python data type?
23. How do you create a variable in Python?
24. Which of the following is used for indentation in Python?
25. What will be the output of the following code: `print(2 + 3 * 4)`?
26. Which Python function is used to get input from the user?
27. What does the following Python code do: `name = input("Enter your name: ")`?
28. Which of the following is an invalid variable name in Python?
29. What is the output of the following code: `print(10 / 3)`?
30. Which of the following is NOT an arithmetic operator in Python?
31. What is the correct way to create a string in Python?
32. Which of the following methods can be used to convert a string to a list in Python?
33. Which of the following is NOT a valid Python data type?
34. What is the output of the following code: `print("Hello" + " " + "World")`?
35. Which operator is used for exponentiation in Python?
36. Which of the following is a mutable data type in Python?
37. What is the output of the following code: `print(2**3)`?
38. Which function is used to read input from the user in Python 3.x?
39. Which of the following statements will create a tuple in Python?
40. What is the output of the following code: `print(type([]))`?
41. Which of the following operators is used for string concatenation in Python?
42. What is the correct way to declare a variable in Python?
43. What will be the output of the following code: `print(10 % 3)`?
44. Which method is used to remove an item from a list in Python by its value?
45. What is the output of the following code: `print(5 == 5)`?
46. Which method can be used to convert a list into a tuple in Python?
47. Which of the following is used to define a block of code in Python?
48. Which function is used to get the type of an object in Python?

No comments: