Syllabus
Unit I
Introduction to Programming & Problem Solving. What is a program? Programming vs Problem-solving. Characteristics of a good program. Program development life cycle. Problem analysis and decomposition. Introduction to Algorithms. Characteristics of algorithms. Writing algorithms using pseudocode. Flowcharts: Symbols and conventions. Flowchart for simple problems.
Unit II
Basics of Programming Concepts. Overview of high-level languages. Structure of a simple program. Variables and Constants. Data Types. Integer, floating point, character, Boolean. Operators: Arithmetic, relational, logical, assignment. Expressions and type conversion. Input and output concepts.
Unit III
Control Structures. Need for control flow. Decision Making: if, if–else, nested if. switch/case. Looping Constructs: for loop, while loop, do–while loop. Loop control statements (break, continue – idea level). Common programming logic patterns.
Unit IV
Modular Programming. Need for modularization. Function concept. Function definition and call. Parameters and return values. Scope of variables. Advantages of functions. Recursion.
Unit V
Arrays: One-dimensional arrays, Two-dimensional arrays, Common operations on arrays. Strings: String representation, Basic string operations. Introduction to Files. Purpose of file handling. Reading and writing data (conceptual level). Debugging & Testing. Common programming errors. Logical vs syntax errors.