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

Quiz Instructions

Select an option to see the correct answer instantly.

1. In the following code, "city" is an example of a what?city= "Exeter"
2. How does Python support community engagement?
3. Which control flow statement is used for decision making?
4. What will be the output of the following code?x = 10x = "Hello" print(x)
5. Teaching-Learning Process:Which online tool is suggested for visualizing Python code?
6. Which method converts a string to lowercase in Python?
7. What is the correct file extension for Python files?
8. Which of Python's collection types is ordered and changeable (elements can be modified)?
9. Which element type is considered falsy in Python when evaluating tuples?
10. When you want to print something to the screen you should use
11. Who conceived Python programming?
12. Which of the following will give "Simon" as output?If str1="John, Simon, Aryan"
13. What does the "turtle" represent in the Python Turtle Library?
14. Which of the following will convert the string '"3.5"' to a float?
15. Choose the operators to represent "not equal to" in PYTHON
16. What happens if you try to add a string and an integer?
17. What is the purpose of using quotes in a 'print()' statement?
18. What happens if you leave out some of the brackets in a Python command?
19. What will the output be from the following code?print(3*4+5)
20. What does 'if' statement do in Python?
21. What is the correct way to check if a number is greater than 17 in Python?
22. What is the output of the following code?name = Steveprint(len(Steve))
23. What is the best way to read an entire file into a single string?
24. ..... spaces should be left for indentation.
25. Who created the Python programming language and when?