MCS-201 · Unit 1

Programming Fundamentals

9 sections

Block 1 · Unit 1Programming Fundamentals117 min · 9 sections

Unit 1Programming Fundamentals

Follows IGNOU MCS-201, Unit 1

Before you can write a program in any language, you need a precise plan for solving the problem and an understanding of how a computer turns your code into something it can run. This unit builds that foundation. It starts with problem solving, algorithms and flowcharts, which do not depend on any language, then introduces programming languages and the C language, and ends with the full journey of a C program from source file to running program, including every kind of error you can meet on the way.

In this unit you will learn to

  • Follow a systematic approach to understanding and solving a problem.
  • Write an algorithm and check it against the five properties every algorithm must have.
  • Break a large problem into smaller tasks using top-down design.
  • Draw a flowchart with the standard symbols and the three control structures.
  • Explain machine, assembly and high-level languages, and the job of assemblers, compilers and interpreters.
  • Describe structured programming, the history of C and its main features.
  • Identify the parts of a C program and write, compile, link and run one.
  • Recognise syntax, semantic, linker, runtime and logical errors, and fix them.

Sections in this unit

  1. 1.1Problem Solving with a ComputerLearn a systematic approach to understanding a problem and the five steps for developing a program to solve it on a computer.10 min
  2. 1.2Algorithms: Definition and PropertiesDefine an algorithm, apply its five properties, read assignment notation and trace algorithms step by step to catch mistakes.15 min
  3. 1.3Top-Down DesignBreak a large problem into smaller sub-tasks with top-down design (stepwise refinement) and compare it with bottom-up design.10 min
  4. 1.4FlowchartsDraw flowcharts with standard symbols, recognise sequence, selection and iteration, and convert an algorithm into a flowchart.17 min
  5. 1.5Programs and Programming LanguagesCompare machine, assembly and high-level languages, and explain how assemblers, compilers and interpreters translate programs.10 min
  6. 1.6Structured Programming and the History of CUnderstand structured programming and why it replaced goto-based code, and trace how the C language developed from ALGOL to C23.10 min
  7. 1.7Features of C and the Structure of a C ProgramLearn the main features of C, why it is called a middle-level language, and the standard layout of a C program with main().11 min
  8. 1.8Writing and Compiling a C ProgramWrite a C program, compile it with a modern compiler, and recognise syntax errors, semantic errors and warnings.14 min
  9. 1.9Linking, Running and DebuggingUnderstand why C programs are linked, how to run them, and how to recognise and fix linker, runtime and logical errors, including integer division.20 min
↑ ↓ move↵ openTab switch type