Zed-King Study app · Free
O Level students across India practise here, free
Google login · no Play Store needed
About this PDF
Model test paper 5 for O Level M3-R5.1 — a harder Python paper including file processing and NumPy. Solve it in exam time and check every answer against the key.
This is part of the free O Level M3-R5.1 study material in the Zed-King Study Zone. You can read every page above in your browser, or download the file and study offline. Zed-King Group of Institute is a NIELIT Study Centre in Kaithal, Haryana, and all of this material follows the current NIELIT syllabus.
- Course
- O Level — NIELIT Foundation Diploma
- Module
- M3 — M3-R5.1: Programming and Problem Solving through Python
- Section
- Model Test Papers
- Format
- PDF — read online or download
- Price
- Free, no sign-up required
Text from this PDF
The opening pages as plain text — open the reader above for tables, diagrams and the full file.
M-3 MODEL TEST PAPER-5
1. Who developed Python Programming Language? · a) Wick van Rossum b) Rasmus Lerdorf · c) Guido van Rossum d) Niene Stom
2. Which type of Programming does Python support? · a) object-oriented programming · b) structured programming · c) functional programming · d) all of the mentioned
3. Is Python case sensitive when dealing with identifiers? · a) no b) yes · c) machine dependent d) none of the mentioned
4. Which of the following is the correct extension of the Python file? · a) .python b) .pl · c) .py d) .p
5. Is Python code compiled or interpreted? · a) Python code is both compiled and interpreted · b) Python code is neither compiled nor interpreted · c) Python code is only compiled · d) Python code is only interpreted
6. All keywords in Python are in _________ · a) Capitalized b) lower case · c) UPPER CASE d) None of the mentioned
7. What will be the value of the following Python expression?
print(4 + 3 % 5)
8. Which of the following is used to define a block of code in Python language? · a) Indentation b) Key · c) Brackets d) All of the mentioned
9. Which keyword is used for function in Python language? · a) Function b) def · c) Fun d) Define
10. Which of the following character is used to give single-line comments in Python?
11. What will be the output of the following Python code?
while True:
break print(i)
a) 1 2 3 b) SyntaxError
c) 1 2 d) none of the mentioned
12. Which of the following functions can help us to find the version of python that we are currently working on? · a) sys.version(1) b) sys.version(0) · c) sys.version() d) sys.version
13. Python supports the creation of anonymous functions at runtime, using a construct called __________ · a) pi b) anonymous · c) lambda d) none of the mentioned
14. What is the order of precedence in python? · a) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction · b) Exponential, Parentheses, Division, Multiplication, Addition, Subtraction · c) Parentheses, Exponential, Multiplication, Addition, Division, Subtraction · d) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
15. What will be the output of the following Python code snippet if x=1?
16. What does pip stand for python? · a) Pip Installs Python b) Pip Installs Packages · c) Preferred Installer Program d) All of the mentioned
17. Which of the following is true for variable names in Python? · a) underscore and ampersand are the only two special characters allowed · b) unlimited length · c) all private members must have leading and trailing underscores · d) none of the mentioned
18. What are the values of the following Python expressions?
print(2**(3**2))
print((2**3)**2)
print(2**3**2)
19. Which of the following is the truncation division operator in Python?
20. What will be the output of the following Python code?
print(list(filter(bool, l)))
a) [1, 0, 2, ‘hello’, ”, []] b) Error
21. Which of the following functions is a built-in function in python? · a) factorial() b) print() · c) seed() d) sqrt()
22. Which of the following is the use of id() function in python? · a) Every object doesn’t have a unique id · b) Id returns the identity of the object · c) All of the mentioned · d) None of the mentioned
23. The following python program can work with ____ parameters.
def f(x):
def f1(*args, **kwargs):
print("Sanfoundry")
return x(*args, **kwargs)
return f1
a) any number of b) 0
24. What will be the output of the following Python function?
print(min(max(False,-3,-4), 2,7))
c) 2 d) False
25. Which of the following is not a core data type in Python programming? · a) Tuples b) Lists · c) Class d) Dictionary
26. What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
27. Which of these is the definition for packages in Python? · a) A set of main modules · b) A folder of python modules · c) A number of files containing Python definitions and statements · d) A set of programs making use of Python modules
More model test papers for M3-R5.1
Run these Python programs yourself — free
Reading code is not the same as writing it. Type any program from these notes into our free online Python compiler (real Python 3 with NumPy, input() works), or study one of the explained programs with its output.
Prepare for O Level with expert guidance
Classroom training, practical labs and exam registration at Zed-King Institute, Kaithal.
