course_id: "104"
title: "Programming Concepts and Programming Methodology (PCPM)"
degree: "B.Sc. (Data Science & Analytics) — Semester I"
university: "Veer Narmad South Gujarat University (VNSGU), Surat"
academic_year: "2026-2027"
syllabus_effective: "A.Y. 2023-2024"
credits: "4 (Major Course, Level 200-299)"
teaching_hours: "Theory 2 Hrs/Week + Practical 4 Hrs/Week"
pipeline: "Problem ➔ Algorithm & Flowchart ➔ C (Compiler) ➔ Python (Interpreter)"
core_stack: ["C", "GCC / Turbo C", "Python 3", "VS Code"]
🧩 104: Programming Concepts & Programming Methodology (PCPM)
From Algorithms & Flowcharts to Compiled C and Interpreted Python
Department of Computer Science & Data Science
Sutex Bank College of Computer Applications and Science (SBCCAS)
Affiliated with Veer Narmad South Gujarat University (VNSGU), Surat, Gujarat, India
📘 Syllabus • 📝 Lecture Notes • 🚀 Programs • 📂 Assignments • 💡 Question Bank • 📚 eBooks • 📄 Past Papers
🌌 Course Architecture: From Problem to Program
Every program begins as a problem and an algorithm long before it becomes code. This course builds that methodology first, then implements it twice: in C, a compiler-based structured language, and in Python, an interpreter-based language — so students understand how languages execute, not just what to type. This repository houses the syllabus, lecture notes, sample programs, assignments, and question banks for 104 PCPM.
flowchart LR
subgraph S1["🧠 Stage 1: Programming Methodology"]
A["Problem Statement"] --> B["Algorithm & Flowchart"]
end
subgraph S2["⚙️ Stage 2: Compiler-Based (C)"]
B --> C["Source Code (.c)"]
C --> D["Compiler ➔ Object Code ➔ Executable"]
D --> E["I/O, Operators, Decisions, Loops,<br>Arrays & Pointers"]
end
subgraph S3["🐍 Stage 3: Interpreter-Based (Python)"]
B --> F["Python Script (.py)"]
F --> G["Interpreter ➔ Line-by-line Execution"]
G --> H["Variables, Conditions, Loops,<br>List / Tuple / Set / Dict"]
end
classDef s1 fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#fff;
classDef s2 fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#fff;
classDef s3 fill:#14532d,stroke:#4ade80,stroke-width:2px,color:#fff;
class S1 s1;
class S2 s2;
class S3 s3;
🎯 Course Outcomes (CO Matrix)
Upon successful completion of this syllabus, students achieve mastery across five primary dimensions:
| ID |
Course Outcome (CO) |
Key Competency |
Tools & Concepts |
| CO1 |
Learn the fundamental programming concepts of compiler-based and interpreter-based programming languages. |
Language Execution Models |
Compiler, Interpreter |
| CO2 |
Work proficiently with conditional statements, iterative statements and programming fundamentals using C and Python. |
Control Flow & Logic Building |
if, switch, for, while |
| CO3 |
Represent compound data using lists, tuples and dictionaries in Python programs. |
Data Structuring |
list, tuple, set, dict |
| CO4 |
Learn programming methodology — algorithms, flowcharts and structured problem solving. |
Problem Solving & Design |
Algorithms, Flowcharts |
| CO5 |
Understand an interpreter-based language (Python) and compare it with the C programming language. |
Comparative Programming |
C vs Python |
📑 Syllabus Breakdown: 5 Units
ℹ️ Note on handout numbering: The C lecture handouts (104_CPPM_Unit_*.pdf) were originally prepared for the BCA CPPM syllabus, where decisions and loops were separate units. The links below map each handout to the correct PCPM unit.
🧭 Unit 1: Introduction to Programming Concepts
- Programming Languages & Methodology:
- Source code, object code and executable code.
- Algorithms and flowcharts; concepts of structured programming.
- Compiler vs Interpreter:
- Introduction and comparison of compiler-based and interpreter-based languages.
- Program body structure in C and in Python.
- Character set, variables, constants, identifiers, literals and keywords in C and Python.
- Data types in C (signed / unsigned
int, short, long, float, double, char, void) and primitive data types in Python.
/* Basic structure of a C program */
#include <stdio.h> /* Pre-processor directive */
int main() /* Execution starts here */
{
printf("Hello, PCPM!\n");
return 0;
}
👉 Notes: Unit-1 Handout • Unit-1 Handout V2 • Basic Structure of C Programs
⌨️ Unit 2: Input/Output Statements and Operators (C)
- Header Files & Pre-processor:
- Concepts of header files (
stdio.h, conio.h); pre-compiler directives #include and #define.
- Input / Output Statements:
- Input:
scanf(), getc(), getch(), gets(), getchar().
- Output:
printf(), putc(), puts(), putchar().
- Format specifiers:
%d, %ld, %f, %c, %s, %lf.
- Operators:
- Arithmetic, logical, relational, bit-wise and assignment operators.
- Ternary operator and the
sizeof() operator.
- Built-in Functions:
- String:
strlen, strcmp, strcpy, strcat, strrev.
- Math:
abs(), floor(), round(), ceil(), sqrt(), exp(), log(), sin(), cos(), tan(), pow(), trunc().
#include <stdio.h>
#define PI 3.14
int main()
{
float r, area;
printf("Enter radius: ");
scanf("%f", &r);
area = PI * r * r;
printf("Area of circle = %.2f\n", area);
printf("Size of float = %d bytes\n", (int) sizeof(float));
return 0;
}
👉 Notes: Unit-2 Handout • Unit-2 Handout V2
🔀 Unit 3: Decision Making and Iterative Statements (C)
- Decision Making:
- Simple
if, if…else, if…else if…else, and nested if.
switch…case with break and default; difference between switch and if.
- Iteration:
- Use of
goto for iteration; while, do…while and for loops.
- Nested
while, do…while and for loops (pattern programs).
- Jumping statements:
break and continue.
#include <stdio.h>
int main()
{
int i, j, n = 5;
for (i = 1; i <= n; i++) /* rows */
{
for (j = 1; j <= i; j++) /* columns */
printf("* ");
printf("\n");
}
return 0;
}
👉 Notes: Decision Making Handout • Decision Making Handout V2 • Iterative Statements Handout
🧮 Unit 4: Arrays and Pointers (C)
- Single-dimensional Arrays:
- Numeric 1-D arrays; sorting in ascending / descending order (Bubble and Selection sort).
- Searching an element (Linear Search).
- Character 1-D arrays; use of
\0, \n and \t.
- Pointers:
- Concepts of pointers; declaring and initializing
int, float, char and void pointers.
- Pointer to a single-dimensional numeric array.
#include <stdio.h>
int main()
{
int a[5] = {10, 20, 30, 40, 50};
int *p = a, i, sum = 0;
for (i = 0; i < 5; i++)
sum += *(p + i); /* pointer arithmetic */
printf("Sum = %d\n", sum);
return 0;
}
👉 Notes: Arrays & Pointers Handout • Bubble Sort Algorithm • Selection Sort Algorithm • Pointer to Pointer
🐍 Unit 5: Interpreter-Based Programming using Python
- Getting Started:
- Concepts of an interpreter language; starting with Python code.
- Variables, data structures, data types and data conversion.
- Conditional & Iterative Statements:
if, elif, else; for and while loops; Python operators.
- In-built Collections:
- List, Tuple, Set and Dictionary.
# The same pattern program from Unit 3 — now in Python
n = 5
for i in range(1, n + 1):
print("* " * i)
# Python collections at a glance
marks = [78, 85, 92] # list (mutable)
point = (3, 4) # tuple (immutable)
langs = {"C", "Python"} # set (unique items)
student = {"name": "Asha", "sem": 1} # dict (key: value)
👉 Notes: Python Basics • Iterative Statements • Strings & Operators • Python Collections
🧪 Practical work: