MockExams

Computer Programming in C (BIT105CO)

Semester 13 credits45 teaching hours

Procedural programming fundamentals in C — control flow, arrays, functions, pointers, structures, and file handling.

  1. Unit 1: Problem Solving with Computer3 hrs

    • 1.1. Problem analysis, algorithms, and flowchart design
    • 1.2. History and importance of C language
    • 1.3. Structure of a C program
    • 1.4. Coding, compilation, and execution process
    • 1.5. Debugging, testing, and program documentation
  2. Unit 2: Elements of C3 hrs

    • 2.1. C tokens: keywords, identifiers, and character set
    • 2.2. Escape sequences and comments
    • 2.3. Variables, fundamental data types, qualifiers, and constants
  3. Unit 3: Input and Output3 hrs

    • 3.1. Formatted input and output: printf, scanf, and conversion specifications
    • 3.2. Unformatted input and output: getchar, putchar, gets, and puts
  4. Unit 4: Operators and Expression4 hrs

    • 4.1. Arithmetic, relational, and logical operators
    • 4.2. Assignment, increment/decrement, and conditional ternary operators
    • 4.3. Bitwise and special operators: sizeof and comma
    • 4.4. Operator precedence, associativity, and type conversion/casting
  5. Unit 5: Control Statements5 hrs

    • 5.1. Decision making: if, if-else, nested if, and else-if ladder
    • 5.2. Selection control: switch-case statement
    • 5.3. Looping statements: while, do-while, and for loops
    • 5.4. Jump and termination statements: break, continue, goto, and exit
  6. Unit 6: Arrays5 hrs

    • 6.1. Introduction to arrays, declaration, memory representation, and 1D arrays
    • 6.2. Multidimensional arrays: 2D arrays and matrix operations
    • 6.3. Sorting and searching in arrays
    • 6.4. Character arrays, strings, and standard string-handling functions
  7. Unit 7: Functions5 hrs

    • 7.1. Modular programming: library vs. user-defined functions, prototyping, definition, and calling
    • 7.2. Parameter passing mechanisms: call by value and call by reference
    • 7.3. Storage classes and variable scope: auto, register, static, and extern
    • 7.4. Recursion in C
    • 7.5. Passing 1D and 2D arrays to functions
  8. Unit 8: Pointers6 hrs

    • 8.1. Pointer fundamentals: address-of (&) and dereference (*) operators
    • 8.2. Pointer arithmetic and pointer comparisons
    • 8.3. Pointers and arrays: 1D arrays and multidimensional arrays
    • 8.4. Pointers and strings, arrays of pointers
    • 8.5. Dynamic memory allocation: malloc, calloc, realloc, and free
  9. Unit 9: Structure and Union5 hrs

    • 9.1. Structure definition, variable declaration, initialization, and member access (.)
    • 9.2. Arrays of structures
    • 9.3. Nested structures
    • 9.4. Pointers to structures and arrow operator (->)
    • 9.5. Passing structures to functions
    • 9.6. Unions: definition, memory allocation, and differences from structures
  10. Unit 10: Files and File Handling in C4 hrs

    • 10.1. File concept, streams, text vs. binary files, and file modes
    • 10.2. Opening and closing files: fopen, fclose
    • 10.3. Character and line I/O: fgetc, fputc, fgets, fputs
    • 10.4. Formatted file I/O: fprintf, fscanf
    • 10.5. Block / record I/O: fread, fwrite
    • 10.6. Random file access: fseek, ftell, rewind, and error handling with feof/ferror
  11. Unit 11: Introduction to Graphics2 hrs

    • 11.1. Graphics modes, graphics drivers, and initialization: initgraph, closegraph
    • 11.2. Basic 2D graphics functions: line, circle, rectangle, and text output

Reference books

  • Balagurusamy, E., Programming in ANSI C, Tata McGraw-Hill.
  • Kanetkar, Yashavant, Let Us C, BPB Publications.
  • Kernighan, Brian W. & Ritchie, Dennis M., The C Programming Language, Prentice Hall.
  • Gottfried, Byron S., Programming with C (Schaum's Outlines), McGraw-Hill.

BIT105CO

Switch Course

Course Units

Past Exam Questions

No past exam questions for this topic.

Search BIT105CO

Reading

Theme
Reading mode
Text size
Default
Font
Line width
Line spacing