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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Why is it called 'Python'?
2. How do you handle errors in Python?
3. A set of instructions a computer follows to do a task is called a-
4. Which of the following is a reserved keyword in Python?
5. What will print("Hi" + '' there") show?
6. What is one of the uses of Python mentioned in the text?
7. What is programming?
8. What will be the output of the following code? x = 5 if x > 3:print("Greater") else:print("Smaller")
9. What does IDE stand for in Python programming?
10. Which statement is true about variable names in Python?
11. What makes Python a versatile programming language?
12. Define the term algorithm
13. How many times does the following program print the word 'computer':word= "computer" for num in range(1, 6):print(word)
14. Given fruits = ('apple', 'banana', 'cherry'), what does the expression 'cherry' in fruits evaluate to?
15. What is a string?
16. What must you start your line of code with so that the program knows what code you are using?
17. Write the output of the following:x = int(7) + int('9'); print(x)
18. Why was Python (TM) developed?
19. Which of following language is called as interpreter language .
20. Which of the following is an example of a Python string?
21. The term which describes errors in a programme
22. What does the Python Turtle Library allow you to do?
23. Used to add annotation to the code:
24. Python is an example of which type of programming language?
25. What is the radius of a circle as used in Tracy's commands?