Simple Programming Programs Lab
Python List, Dictionary, Pandas, NumPy & DSA Programs →
Included Programs
- Add two numbers
- Paisa into rupees
- Rupees into paisa
- Area of rectangle
- Area of circle
- Print numbers from 1 to 100
- Sum of numbers from 1 to 100
- Print even numbers from 1 to 100
- Sum of even numbers from 1 to 100
- Factors of a number
- Factorial of a number
- Armstrong number
- Buddy pair numbers
- Reverse and palindrome number
- Largest of two numbers
- Largest of three numbers
- Five-subject total, percentage and CBSE grade
- Shopping mall payable amount and discount
- Store and print 10 marks using array
- Multiplication table
- Star and number patterns
- Prime number
- Fibonacci series
- HCF and LCM
- Number swapping
- Linear search
- Bubble sort
- String reverse
- Matrix addition
- Simple interest
- Leap year
- Vowel or consonant
How to prepare a practical file from these programs
- Choose 15–20 programs that match your syllabus list – most boards and universities ask for input/output, conditions, loops, arrays, strings and functions.
- Type each program yourself and run it. Change the input values and note the new output; examiners often ask “what happens if the input is 0 or negative?”.
- Write in this order for each program: aim, algorithm (4–6 steps), code, sample input, output, and one line of conclusion.
- Prepare for viva: be ready to explain why a loop starts at 1 or 2, the difference between
=and==, and the time complexity of searching and sorting programs.
Which language should you pick?
Use the language your syllabus names. If you are free to choose, Python gives the shortest code and is used in CBSE Class 11–12, while C builds the strongest base for B.Tech and BCA data-structure subjects. Java and C++ are best for object-oriented programming papers, and PHP when your project is a website with a MySQL database.
इन programs से practical file कैसे तैयार करें
- अपने syllabus की list से मेल खाते 15–20 programs चुनें – ज़्यादातर boards और universities input/output, conditions, loops, arrays, strings और functions माँगते हैं।
- हर program ख़ुद type करके चलाएँ। Input बदलकर नया output लिखें; examiner अक्सर पूछते हैं “input 0 या negative हो तो क्या होगा?”।
- हर program इस क्रम में लिखें: aim, algorithm (4–6 steps), code, sample input, output और एक line का conclusion।
- Viva की तैयारी: loop 1 या 2 से क्यों शुरू होता है,
=और==का अंतर, और searching व sorting programs की time complexity समझाने के लिए तैयार रहें।
कौन सी language चुनें?
जो language आपके syllabus में है वही चुनें। अगर चुनने की छूट है, तो Python का code सबसे छोटा है और CBSE Class 11–12 में इस्तेमाल होता है, जबकि C से B.Tech और BCA के data-structure subjects की सबसे मज़बूत नींव बनती है। Object-oriented programming papers के लिए Java और C++, और MySQL database वाली website project के लिए PHP सबसे अच्छी है।
