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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Is python case sensitive?
2. Consider scores = (10, 15, 25). What is the result of sum(scores)?
3. What is the output of the following code? "'pythondef add(a, b):return a + bprint(add(3, 4)) "'
4. In which year was Python officially made available to the public?
5. What will be the data type of y after the following statements?x = 48 y = str(x)
6. What does the range() function do in a for loop?
7. What exciting tool can Python create that we use on the internet?
8. What will the following code print? print('Hello, Universe!')
9. What will the output be from the following code? Print ( "Hello world!" )
10. Given t = ('x', 'y', 'z'), what does list(enumerate(t)) produce?
11. What are the rules for naming variables?
12. What does string concatenation mean?
13. Which of the following is used to handle exceptions in Python?
14. What is the correct extension of a Python file?
15. In which of the following mode, the interpreter executes the statement and displays the result as soon as we press 'Enter' key?
16. Look at the code below and identify which of the statements below are true:for loopCounter in range(10, 101, 10):print(loopCounter)
17. Which of the following is a command to have a message appear on the screen?
18. What does the following code print? "'pythonx = 5if x > 3:print("High")else:print("Low") "'
19. What's the output of the below code?D = \{1:1, 2:'2', '1':1, '2':3\} D['1'] = 2print(D[D[D[str(D[1])]]])
20. What is the difference between a tuple and a list in Python?
21. Which of the following functions display an output to the screen?
22. What does the following code output? 'print("Bananas", 3, "Peaches", sep="-")'
23. How do you create a string in Python?
24. Comments are executable statement in Python
25. Course Objective:The course aims to appraise the need for working with various documents like ..... , PDF, Word and Others.