Course objectives
- Write, compile, and run programs in C and Python 2. Use variables, operators, and control flow to solve simple problems 3. Write and use functions; understand arrays and basic string operations 4. Get familiar with Python built-in data types 5. Apply Python to a small task in an emerging domain — data, automation, or IoT
Course content
Unit Language Topics Weightage
Unit I
- Structure of a C program; compilation and execution
- Data types, variables, constants, operators (arithmetic, relational, logical)
- C
- Input/output — scanf/printf in C
- Type conversion; simple expressions Real connect: C powers embedded systems, microcontrollers, and OS kernels.
Programming Basics (C):
Unit II
- Control Statements
- Loops — for, while, do-while; break and continue
- C
- Functions — definition, call, return; call by value
- Recursion — factorial and Fibonacci (simple examples only) Real connect: Control flow is the brain of every program — from traffic signal logic to drone autopilot decision-making.
Decision Making and Control Flow (C):
Unit III
- Simple operations — find max, min, sum, average
- Strings in C — gets/puts, strlen, strcpy, strcmp
- Pointer — concept of address and pointer
- C variable (concept only, not deep)
- Structures,
- File Handling Real connect: Arrays store sensor readings, image pixels, and stock prices. Pointers are the foundation of memory management in embedded systems.
Advanced Programming Concepts (C): 1. 1D array — declaration, input, output, traversal