Zed-King Institute
    All Notes

    O Level · Previous Year Practical Questions

    Practical Set 7

    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

    Third smallest distinct number in a list, vertical and horizontal stacking of NumPy arrays, and an even-or-odd check.

    This is part of the free O Level PR-3 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
    PR3 — PR-3: M3-R5.1 Python Programming — Practical
    Section
    Previous Year Practical Questions
    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.

    O Level (PR-3)Practical Question Set – 7

    Question 1.

    Write a Python program to find the third smallest distinct number in a list of integers. If there are fewer than 3 distinct numbers, print -1.

    Examples:

    Input: 5 4 3 2 1 Output:3 Input: 1 2 2 3 4 Output:3 Input: 0 0 0 0 Output:-1 Input: 1 1 1 Output:-1

    Question 2.

    Create two 1-dimensional arrarys:

    Stack them: Vertically & Horizontally

    Question 3.

    Write a program to check number is even or odd.

    More previous year practical questions for PR-3

    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!