4.21 - Programming Language Classification

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

Last updated 1:16 PM on 6/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

What is the typical format of machine code?

  • Each instruction is split into two parts: the opcode and the operand

  • The first few bits hold the opcode, the remaining bits hold the operand

  • The number of bits allocated to each varies between processor designs

2
New cards

What is meant by opcode?

  • Specifies the type of operation the CPU should perform

  • e.g. ADD, LOAD, STORE, JUMP

3
New cards

What is meant by operand?

  • The data to be operated on, or the memory address where that data is held

  • A single instruction can have one or more operands

4
New cards

What is meant by low-level programming language?

Code that closely reflects how the CPU actually executes instructions

5
New cards

What is meant by high-level programming language?

Code written closer to natural language, describing what to do rather than how the CPU should do it

6
New cards

How is assembly language an improvement to machine code?

  • Mnemonics replace binary opcodes - short, descriptive codes that are easier to remember and read

    • e.g. STO instead of 0001, ADD instead of 0010

  • Symbolic addresses/labels replace binary operands, making code easier to follow

    • e.g. STO 2 instead of 0001 0010

7
New cards

What is an advantage of writing code in an low-level language?

  • Fast and Memory efficient as it directly controls hardware

  • Useful for time-critical or memory-constrained systems e.g. embedded systems, device drivers

8
New cards

What is an disadvantage of writing code in an low-level language?

  • Difficult to write, read and debug

  • Requires lots code for simple tasks

  • Code written for one processor will not work on a different processor architecture

9
New cards

What is an advantage of writing code in an high-level language?

  • Easier to write, read, debug and maintain

  • The same code can run on different hardware with little or no modification

10
New cards

What is an disadvantage of writing code in an high-level language?

  • Less control over hardware

  • Generally slower than low-level

  • A compiler or interpreter is needed before the CPU can execute it