Skip to content

Computer Programming syllabus

ENCT 10110 units · 89 topicsAcademic year 2083/84
Browse the units

1Introduction to Computer Programming (3 Hrs)

  1. 1.1
    1.1 Definition of a computer program and programming language
  2. 1.2
    1.2 Types and generations of programming languages
  3. 1.3
    1.3 Problem-solving using a computer
    1. 1.3.1
      1.3.1 Problem analysis
    2. 1.3.2
      1.3.2 Algorithm and flowchart
    3. 1.3.3
      1.3.3 Programming
    4. 1.3.4
      1.3.4 Compilation, linking and execution
    5. 1.3.5
      1.3.5 Debugging and testing
    6. 1.3.6
      1.3.6 Documentation

2Overview of C Programming (3 Hrs)

  1. 2.1
    2.1 Introduction to C programming
  2. 2.2
    2.2 History and importance of C
  3. 2.3
    2.3 C headers and library functions
  4. 2.4
    2.4 Basic structure of a C program
  5. 2.5
    2.5 Preprocessor directives
  6. 2.6
    2.6 Tokens in C (Character set, keywords and identifiers)
  7. 2.7
    2.7 Type casting (Implicit and explicit)
  8. 2.8
    2.8 Data types, variables and constants
  9. 2.9
    2.9 Compiler and IDE for C programming

3Operators and Expressions (4 Hrs)

  1. 3.1
    3.1 Introduction to operators and expressions
  2. 3.2
    3.2 Arithmetic, relational and logical operators
  3. 3.3
    3.3 Assignment, increment and decrement operators
  4. 3.4
    3.4 Conditional, bitwise and special operators
  5. 3.5
    3.5 Comma operator, size of operator
  6. 3.6
    3.6 Evaluation and type conversion in expressions
  7. 3.7
    3.7 Operator precedence and associativity

4Input and Output (3 Hrs)

  1. 4.1
    4.1 Introduction to data I/O in C
  2. 4.2
    4.2 Unformatted I/O
    1. 4.2.1
      4.2.1 Character I/O
    2. 4.2.2
      4.2.2 String I/O
  3. 4.3
    4.3 Formatted I/O
    1. 4.3.1
      4.3.1 Control string (Flags, field width, precision, and specifier)
    2. 4.3.2
      4.3.2 Formatted I/O (scanf(), printf())

5Control Structures (8 Hrs)

  1. 5.1
    5.1 Introduction to simple and compound statement
  2. 5.2
    5.2 Sequential statement
  3. 5.3
    5.3 Branching statement
    1. 5.3.1
      5.3.1 Simple if statement
    2. 5.3.2
      5.3.2 if-else statement
    3. 5.3.3
      5.3.3 Nested if-else statement
    4. 5.3.4
      5.3.4 else-if ladder
    5. 5.3.5
      5.3.5 switch statement
    6. 5.3.6
      5.3.6 go to statement
  4. 5.4
    5.4 Looping statement
    1. 5.4.1
      5.4.1 for loop
    2. 5.4.2
      5.4.2 while loop
    3. 5.4.3
      5.4.3 do while
    4. 5.4.4
      5.4.4 Nested loop
  5. 5.5
    5.5 Loop interruption
    1. 5.5.1
      5.5.1 break
    2. 5.5.2
      5.5.2 continue

6Array and Pointer (7 Hrs)

  1. 6.1
    6.1 Introduction to an array
  2. 6.2
    6.2 One-dimensional array
  3. 6.3
    6.3 Two-dimensional array
  4. 6.4
    6.4 Multidimensional array
  5. 6.5
    6.5 Introduction to string
  6. 6.6
    6.6 String handling functions
  7. 6.7
    6.7 Definition of a pointer
  8. 6.8
    6.8 Pointer declaration
  9. 6.9
    6.9 Pointer arithmetic
  10. 6.10
    6.10 Relationship between pointer and arrays

7User-defined Functions (6 Hrs)

  1. 7.1
    7.1 Introduction to function
  2. 7.2
    7.2 Advantages of function
  3. 7.3
    7.3 Elements of user-defined function
    1. 7.3.1
      7.3.1 Function definition
    2. 7.3.2
      7.3.2 Function prototype
    3. 7.3.3
      7.3.3 Function parameters
  4. 7.4
    7.4 Storage class
  5. 7.5
    7.5 Scope rules
  6. 7.6
    7.6 Category of functions
    1. 7.6.1
      7.6.1 Functions with no arguments and no return values
    2. 7.6.2
      7.6.2 Functions with arguments and no return values
    3. 7.6.3
      7.6.3 Functions with arguments and return values
    4. 7.6.4
      7.6.4 Functions with no arguments and return values
  7. 7.7
    7.7 Recursive functions
  8. 7.8
    7.8 Function call by values and reference
  9. 7.9
    7.9 Passing array and string to function

8Structures (5 Hrs)

  1. 8.1
    8.1 Defining a structure
  2. 8.2
    8.2 Declaring and accessing structure elements
  3. 8.3
    8.3 Initializing structure
  4. 8.4
    8.4 Array of structure
  5. 8.5
    8.5 Array as member to structure
  6. 8.6
    8.6 Pointer as member to structure
  7. 8.7
    8.7 Structure as a member to structure
  8. 8.8
    8.8 Passing and returning structures to/from function

9File Management (4 Hrs)

  1. 9.1
    9.1 Introduction
  2. 9.2
    9.2 Binary and text file in C
  3. 9.3
    9.3 File opening modes
  4. 9.4
    9.4 Defining, opening and closing file
  5. 9.5
    9.5 Input-output operations on files
    1. 9.5.1
      9.5.1 Character I/O (fputc(), fgetc())
    2. 9.5.2
      9.5.2 String I/O (fgets(), fputs())
    3. 9.5.3
      9.5.3 Formatted I/O (fscanf(), fprintf())
    4. 9.5.4
      9.5.4 Record I/O (fwrite(), fread())
  6. 9.6
    9.6 Overview of random file access
  7. 9.7
    9.7 Error handling

10Recent Trends in Programming (2 Hrs)

  1. 10.1
    10.1 Introduction to object oriented programming (OOP)
  2. 10.2
    10.2 Definitions of class, method and object in OOP
  3. 10.3
    10.3 Difference between procedure oriented and OOP
  4. 10.4
    10.4 Overview of other high level programming languages