More Information and Communication Technology chapters

HSC Information and Communication TechnologyChapter 5

Programming Language

প্রোগ্রামিং ভাষা
Notes

Chapter overview

Learning goals

  • Distinguish machine language, assembly language and high-level language, and say what an assembler, compiler and interpreter do.
  • Describe the steps of developing a program and draw a simple flowchart with the correct symbols.
  • Write the structure of a C program and use variables, data types, operators, printf and scanf correctly.
  • Write C programs with if, if-else, switch, for, while and do-while.
  • Use one-dimensional arrays and functions in short C programs and trace their output.

Language levels and translators

Computers understand only machine language. It is fast but hard to write and differs from one CPU to another. Assembly language replaces binary with mnemonics, which is easier to read, but it is still tied to one machine and needs an assembler. High-level languages (C, C++, Java, Python) use English-like words and are portable, but their programs must be translated before the CPU can run them.

CompilerInterpreter
Works onthe whole programone line at a time
Errorslisted after translating everythingstops at the first error

The original program you write is the source code. A compiler turns it into object code; a linker joins object code with library code to make the executable file.

The full note continues in Khata, with every section, key-term cards and quick checks. Start free

Key terms

Machine language
instructions written in 0s and 1s that the CPU executes directly.
Assembly language
a low-level language that uses short symbolic codes (mnemonics) such as ADD instead of binary.
High-level language
a language close to human language, such as C; it is machine independent.
Compiler
translates the whole source program into machine code at once and reports errors afterwards.
Interpreter
translates and runs the source program line by line and stops at the first error.
Algorithm
a finite, ordered, unambiguous list of steps that solves a problem.

Sample MCQs

No sample MCQs for this chapter yet.

How review works

Practise the full chapter free

Sign up to practise every MCQ in this chapter, review the ones you miss, and follow a daily plan to your exam.

Practise this chapter

Start free