top of page
Image by Alexander Grey

Programming Language

Unit 6 Summary - Part 2

Image by Krystal Ng
Image by Adrian Infernus
Image by Alexander Grey

Programming language is used by programmers to create software

Image by J Lee
Image by Pawel Czerwinski
Image by Alexander Grey

Programming Language Types

Candy Cotton
High level programming language

 

It's easier for humans to understand, widely used by programmers, but it needs a translator to translate it to machine code.

Image by Codioful (Formerly Gradienta)
Low level programming language

 

It's called assembly language (which is near machine code).

It's hard for humans to understand, but it's a language that computers understand.

Image by Alexander Grey

The Difference Between
Assembly Language vs Machine Code

  • Assembly language uses mnemonics/ short meaningful commands, it usually has 3 letters.

  • Assembly language must be translated.

Image by Codioful (Formerly Gradienta)
  • Machine code is in binary.

  • Machine code can be directly executed by CPU.

Image by Alexander Grey
Comp S 190-191 summary.png
Image by Pawel Czerwinski
Image by Kseniya Lapteva
Image by Alexander Grey
Assembler vs Interpreter vs Compiler
Image by Codioful (Formerly Gradienta)
  • Assembler uses machine code.

Image by MagicPattern
  • ​Interpreter uses high programming language and interprets your coding. It works slowly, and stops if there's an error. It's easy to fix your coding if you make a mistake with an interpreter.

Image by Codioful (Formerly Gradienta)
  • ​​Compiler uses high programming language and has its own executables, so it takes time to build. It runs fast, and if there's an error it tells you. It's hard to fix a compiler.

Image by Pawel Czerwinski
Comp S 192-193 summary.png
Image by Alexander Grey

Oxford AQA IGCSE 2019

Image by Pawel Czerwinski

05.1.

Figure 4 shows three computer programs. One has been written in a high-level language, one in assembly language and one in machine code.

 

Figure 4

Programming Language 2019a.png

 

Tick (√) one box to indicate which program in Figure 4 has been written in assembly language.

Programming Language 2019b.png
Answer:

C

Image by eberhard 🖐 grossgasteiger

05.2.

Explain two differences between assembly language and machine code. [2 marks]

__________________________________________________________________________________

 
Alternative answers:
  • Assembly language commands written using mnemonics / short meaningful commands, while machine code instructions written in binary.

  • Machine code commands can be directly executed by processor/CPU, while assembly language commands must be translated (before they can be executed).

  • Assembly language allows the use of labels for branching/jumps, while machine code uses memory addresses for branching/jumps.

05.3.

Explain why most computer programs are written in high-level languages. [2

marks]

__________________________________________________________________________________

Alternative answers:
  • Faster development time.

  • Code is easier to understand / easier to learn.

  • Code is easier to debug / easier to avoid/spot input errors.

  • Portability of code // code not processor-oriented.

  • Availability of additional features (over low-level languages); examples: data structures, subroutines, built-in functions, libraries.

  • high-level programming expertise more widely available.

  • high-level languages can be problem-oriented.

Image by Alexander Grey

Oxford AQA IGCSE Specimen Paper

Image by Nareeta Martin

02.1.

State the name of a high-level programming language. [1 mark]

__________________________________________________________________________________

Alternative answers:
  • Python,

  • (Visual) Basic,

  • C#,

  • Java,

  • Pascal

  • etc.

Image by Annie Spratt

02.2.

Explain the main differences between high-level and low-level programming languages. [3 marks]

__________________________________________________________________________________

Alternative answers:
  • HLL problem-oriented;

  • LLL processor/machine-oriented;

  • HLL uses English-like keywords;

  • LLL uses mnemonics;

  • HLL provides data structures (A example eg arrays);

  • HLL provides mechanism for calling subroutines;

  • HLL code must be translated before it can be executed;

Image by Alexander Grey

Oxford AQA IGCSE Mock Paper

Image by Kenrick Mills

04.1.

Figure 4 shows three computer programs.

One has been written in a high-level language, one in assembly language and one in machine code.

Figure 4

Pseudocode4 AQA IGCSE Mock.png

Shade in one circle to indicate which program in Figure 4 has been written in machine code. [1 mark]

Pseudocode41 AQA IGCSE Mock.png
Image by Scott Webb

04.2.

A program written in a high-level language can be translated into machine code using either a compiler or an interpreter.

 

Explain two differences between a compiler and an interpreter. [2 marks]

__________________________________________________________________________________

04.3

Describe a situation for which it would be more appropriate to use an interpreter than a compiler to translate a high-level program.

 

Explain why an interpreter would be more appropriate. [2 marks]

__________________________________________________________________________________

Image by Pawel Czerwinski

More of Unit 6

Visconsio Nekoland Logo.jpg
PT. Visconsio Kaya Jaya Masyhur

© 2020-2023 by Miana Kitty

bottom of page