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 6 for O Level M3-R5.1 — the last revision paper for Python. Use it a day or two before the theory exam to find the chapters that still need work.
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.
M3 R5.1 – PYTHON PROGRAMMING Practice Makes Logic Stronger Crack Python Exam Live MCQ Class
1. What is explicit typecasting in Python? · A. Python converts type automatically · B. Programmer manually converts type using functions · C. Only happens for numbers · D. Only happens for strings · Answer: B) Programmer manually converts type using functions
2 . Program link with other parts of program or connectors in flowchart are represented by__ · a) rectangle · b) parallelogram · c) circle · d) oval · Answer: c) circle
3. Which keyword is used for function in Python language? · a) Function · b) def · c) Fun · d) Define3 · Answer: b) def
4. What is the return type of the id() function in python? · a) int · b) float · c) bool · d) dict · Answer: a) int
5. What error occurs when you execute the following python code snippet?
apple=mango
a) Syntax errror
b) Name error
c) Value error
d) Type error
Answer: b) Name error
6. 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 · Answer: d) sys.version
7. What is the problem with the following statement?
100=grade
A) 100 is not a reasonable grade
B) 100 should be in quotes
C) Data types don’t mactch
D) Value on the left must be a variable name
Answer: D) Value on the left must be a variable name
8. What is the order of precedence in python? · a) Exponential, Parentheses, Multiplication, Division, Addition, · b) Exponential, Parentheses, Division, Multiplication, Addition, · c) Parentheses, Exponential, Multiplication, Addition, Division, · d) Parentheses, Exponential, Multiplication, Division, Addition, · Answer: d) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
9. What will be the output of the following Python code snippet if x=1? · Answer: a) 4
10. What does pip stand for python? · a) Pip Installs Python · b) Pip Installs Packages · c) Preferred Installer Program · d) All of the mentioned · Answer: c) Preferred Installer Program
11. Which of the following is not a keyword in python language? · A) True · B) and · C) switch · D) def · Answer: C) switch
12. What are the values of the following Python expressions?
print(2**(3**2))
print((2**3)**2)
print(2**3**2)
Answer: a) 512, 64, 512
13. Which of the following statements is used to create an empty set in Python? · d) set() · Answer: d) set()
14. To add a new element to a list we use which Python command? · a) list1.addEnd(5) · b) list1.addLast(5) · c) list1.append(5) · d) list1.add(5) · Answer: c) list1.append(5)
15. Which of the following Python statements will result in the output: 6? · Answer: b) A[1][2]
16. Which keywords are used for conditional branching? · a) For · b) if · c) when · d) Select · Answer: b) if
17. What is the default return value of the function with a return statement? · b) None · c) Null · d) error · Answer: b) None
18. What is the output of the set ([1,2,2,3])? · D) error · Answer: C) {1,2,3}
19. Which method removes an item from a dictionary? · a) delete () · b) pop () · c) remove () · d) discard () · Answer: b) pop ()
20. How do you import a module? · a) Include modules · b) Use module · c) import module · d) module · Answer: c) import module
21. What will be printed by the following code when it executes?
sum = 0 values = [1,3,5,7] for number in values:
sum = sum + number print(sum)
Answer: d) 16
22. What does the //= operator do? · A. Divides and assigns (float division) · B. Performs floor division and assigns · C. Modulus and assigns · D. Exponent and assigns · Answer: B) Performs floor division and assigns
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.
