Problem Solving Techniques Laboratory Notes
Subject Overview
The practical companion to Problem Solving Techniques, taking students from their first C program through arithmetic operations, area/
Subject at a glance
1
Units
11
Topics
2
Credits
1
Infographics
Unit-wise Syllabus
1 units — open any unit for detailed topic-wise notes, diagrams and important exam questions
- Basic I/O and arithmetic programs
- ASCII value and data type size programs
- conditional programs (largest/greater of numbers, even/odd, prime check)
- loop-based programs (multiplication tables, simple calculator using switch-case)
- function-based programs (largest of three, factorial, first 20 squares)
- matrix addition
- string functions (length, copy, compare, reverse)
- pointer-based programs
- structure/union memory demonstration
- student I-card using structures
- file read/write programs (employee details)
- 1Read the aim
Note inputs and expected output
- 2Write the logic
Flowchart or pseudocode first
- 3Code and compile
Fix syntax errors
- 4Test
Normal, boundary and invalid inputs
- 5Record
Aim, code, output and viva notes
Study guide
The laboratory is where the theory becomes working code. You write and run programs covering basic input and output and arithmetic, ASCII values and data type sizes, conditions (largest of numbers, even or odd, prime check), loops (multiplication tables, a switch-case calculator), functions (factorial, largest of three, squares), matrix addition, string functions (length, copy, compare, reverse), pointers, structures and unions, a student I-card using structures, and file read and write for employee details. Keep a neat record file with the aim, program, output and viva questions for each experiment.
Why Problem Solving Techniques Laboratory Matters
Programming is learned by doing, and the practical sessions are where most students gain real confidence. The programs in this lab are also the classic questions asked in beginner coding tests and campus interviews.
How to Prepare for Problem Solving Techniques Laboratory
- Write each lab program yourself before checking the answer, and run it with several inputs including edge cases.
- Keep your record file updated weekly instead of the night before submission.
- Prepare short viva answers on the logic of each program, not just the code.
- Learn to read compiler error messages; fixing errors is half of programming.
Problem Solving Techniques Laboratory: Frequently Asked Questions
What programs are asked in the C lab?
Typical programs include prime check, factorial, simple calculator with switch-case, matrix addition, string functions, structures, and reading and writing files.
How should I prepare for the practical exam?
Practise every lab program from memory, understand the logic well enough to answer viva questions, and keep your record file complete.
