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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the difference between '==' and '!=' in Python?
2. What does the logical/Boolean operator 'and' do?
3. What is the minimum passing mark for the Continuous Internal Evaluation (CIE) as a percentage of the maximum marks?
4. Is a, b = 6 statement will return an error (T/F)
5. What is a tuple in Python?
6. What will be the output of the following code? "'pythonprint(7 + 3 * 2) "'
7. What would print (10 + 16) produce?
8. What is the output of the following code:num = (11, 12, 13, 14)num[-4:-3]
9. If a function contains more than one argument, how are the arguments separated?
10. What is the purpose of an assignment in programming constructs?
11. What is the output of print(type(3.14))?
12. How do you print the string 'Welcome to Python!' using double quotes?
13. The only language a computer and other electronic devices understand is:
14. What is the correct way to take user input in Python?
15. Python adalah bahasa pemrograman yang .....
16. The default return value of any function in Python is .....
17. Which of the following statements will not work properly within a while loop?
18. What is Python named after, and who created it?
19. Which of the following is a valid way to define a variable in Python?
20. Which mode of using the Python interpreter allows for immediate code execution?
21. What command do you use to display text in Python?
22. What is the output of the following code?print(type(10.5))
23. What will be the result of the following code?def add ..... numbers (a, b):return a + bprint(add ..... numbers (5) )
24. What is the output of the following code? print(10 / 2)
25. Connecting 2 strings in Python with the + Operator is called
26. What does SQL stand for?
27. Which code snippet correctly creates a tuple containing three integers?
28. Which symbol is used to comment in Python?
29. What is the purpose of the 'else' clause in a try-except block?
30. Which keyword is used to start an if statement in Python?
31. Which of the following applications is NOT commonly developed using Python?
32. What is the purpose of comments in Python code?
33. Square brackets in an assignment statement will create which type of data structure?( s=[] )
34. What will be the output of the following code? "'pythonfor i in range(3):print(i) "'
35. Which construct is used to handle exceptions in Python?
36. What is a correct syntax to return the first character in a string?
37. What is the primary feature of a Python set?
38. How do you update data in SQL?
39. Which of the following is a control structure in Python?
40. Which of the below is the code for creating a variable?
41. The result of this program:Friday = Falseif Friday:print("Jeans day!")else:print("Uniform day")
42. Why is indentation important in 'if' statements?
43. Which keyword is used to import specific functions from a module?
44. What is the next topic to be covered in the following class?
45. What type of data does the 'str' data type represent?
46. The default IDE that comes with Python is called:
47. What is the function of a variable in Python?
48. What is a loop used for?
49. Arrange this in order of Precedence.1. Exponentiation2. Parentheses3. Multiplication and Division4. Addition and Subtraction
50. Which of the following is not correct for naming an identifier in Python?
51. The course demonstrates the use of built-in functions to navigate the file system.
52. Which method is used to find the memory location of a variable?
53. What is the answer to? print(10 % 4)
54. In the following code, "city" is an example of a what?city= "Exeter"
55. How does Python support community engagement?
56. Which control flow statement is used for decision making?
57. What will be the output of the following code?x = 10x = "Hello" print(x)
58. Teaching-Learning Process:Which online tool is suggested for visualizing Python code?
59. Which method converts a string to lowercase in Python?
60. What is the correct file extension for Python files?