Zed-King Institute
    All Notes

    O Level · Model Test Papers

    Model Test Paper 1

    Zed-King Study app · Free

    O Level students across India practise here, free

    Daily M1–M4 quizFull 100-question mocksAll-India rank
    Open the free app

    Google login · no Play Store needed

    🏆 Free All-India Sunday Mock · Sun, 29 Nov, 11 AM · CCC + O LevelRegister

    About this PDF

    Model test paper 1 for O Level M3-R5.1 Programming and Problem Solving through Python — a full-length practice paper across the whole module, with the real exam pattern.

    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.

    1. What will be the output of the following code?

    print("Hello)

    A) Hello

    B) SyntaxError

    C) NameError

    D) ValueError

    Answer: B) SyntaxError Unclosed string literal causes a SyntaxError.

    2. What type of error is raised when dividing by zero in Python? · A) ValueError · B) ArithmeticError · C) ZeroDivisionError · D) TypeError · Answer: C) ZeroDivisionError

    3. Which error occurs if you try to add an integer and a string like 5 + "5"? · A) NameError · B) TypeError · C) ValueError · D) SyntaxError · Answer: B) TypeError Model Test Paper 1

    4. Which of the following will raise a ValueError? · A) int("abc") · B) print(10/0) · C) len(42) · D) mylist[5] (if list has 3 elements) · Answer: A) int("abc")

    5. Which of the following is a high-level programming language? · A) Assembly · B) Python · C) Machine Code · D) Binary · Answer: B) Python

    6. What type of language is directly understood by the computer’s CPU? · A) Assembly language · B) High-level language · C) Machine language · D) Python · Answer: C) Machine language

    7. What is the main role of a linker in program execution? · A) Translate high-level code · B) Execute code · C) Combine object files and resolve symbols · D) Compile the source code · Answer: C) Combine object files and resolve symbols

    8. What is the function of a loader? · A) Edits source code · B) Loads machine code into memory · C) Compiles high-level language · D) Translates bytecode to source code · Answer: B) Loads machine code into memory

    9. Which Python module is used for debugging purposes? · A) test · B) debugpy · C) pdb · D) pydoc · Answer: C) pdb pdb is the built-in Python debugger.

    10. What kind of error is typically caught during debugging? · A) Logical errors · B) Syntax errors · C) Compilation errors · D) Hardware errors · Answer: A) Logical errors

    11. What is the purpose of documentation in software development? · A) To debug code · B) To translate code · C) To explain code functionality for users and developers · D) To compile source code · Answer: C) To explain code functionality for users and developers

    12. What does a rectangle symbol in a flowchart represent? · A) Start/End · B) Input/Output · C) Process · D) Decision · Answer: C) Process A rectangle represents a process or instruction like a calculation or assignment in Python (e.g., x

    13. What does a diamond symbol in a flowchart represent? · A) Loop · B) Function · C) Decision/Condition · D) Input · Answer: C) Decision/Condition Used to represent conditional logic (e.g., if, elif, else in Python).

    14. Which flowchart symbol is used to represent input/output operations? · A) Rectangle · B) Diamond · C) Parallelogram · D) Oval · Answer: C) Parallelogram For example, Python's input() and print() correspond to this.

    15. What type of Python structure is commonly used to represent a loop in a flowchart? · A) Function · B) Condition · C) Recursion · D) while or for loop · Answer: D) while or for loop

    16. Which Python keyword corresponds to a decision symbol (diamond) in a flowchart? · A) for · B) def · C) if · D) print · Answer: C) if

    17. In a flowchart, what does an oval represent? · A) Loop · B) Input/Output · C) Start/End · D) Condition · Answer: C) Start/End

    18. What does the following flowchart logic describe in Python?

    Start Input number Check if number % 2 == 0 o If True: print "Even" o Else: print "Odd"

    A) Prime number checker

    B) Odd/Even checker

    C) Range validator

    D) Factorial calculator

    Answer: B) Odd/Even checker

    19. Which of the following can not be represented by a simple flowchart? · A) If-else logic · B) Looping constructs · C) Recursion · D) Input/output · Answer: C) Recursion Flowcharts are not ideal for visualizing recursion as it can be complex and repetitive.

    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.

    Drag me!