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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the purpose of the PyCharm IDE?
2. What is the output of the following code:print(type(5))?
3. Given tuple t = (1, 5, False, 3, 9), what does any(t) return and why?
4. Which of the following statements will print the value of variable 'score'?
5. Which of these is NOT a Python data type?
6. Module-2:Example Program:Magic 8 Ball with a .....
7. In the interactive mode, the value of a variable x can be found by:
8. What will be the output of the following code? "'pythonprint("The temperature is", 22, "degrees Celsius.") "'
9. Which print statement correctly prints the value stored in score?
10. What is the result of the following expression:$3^2 + 4^2$
11. X = 50def func():global xprint('x is', x)x = 2print('Changed global x to', x)func()print('Value of x is', x)
12. Which of these is a valid string in Python?
13. Find the output.print(80+20*4//2)
14. In Python, what must you put at the end of an 'if' line?
15. What symbol comes before a comment?
16. You need to insert and remove items from a tuple, then restore it to an immutable form. What is the most appropriate workflow?
17. Which subprogram is used to make the turtle move backward?
18. What will print('Hello' + 'World') show?
19. Which of the following is wrong in reference to naming of variable?
20. In python programming, we DO NOT need to declare the type of data for variable
21. What is the purpose of the 'break' statement in the code snippet provided?
22. What is the difference between a statement and an expression?
23. Which of these is a computer coding program?
24. An instruction is written to determine if the value in a is equal to the value in b.Choose the correct operator to complete the instruction:if a ..... b:
25. How do you write a comment in Python? Why are comments important?