Assistant (2021) PPSC
The basic language of a computer consists of:
Show answer
Correct answer: C) Both A & B
The most basic language of a computer is machine language, written in binary. Each machine instruction is made of two parts: the opcode (operation code), which tells the processor what operation to perform, and the operand, which is the data or address the operation acts on.
Related facts:
Machine language is the only language the CPU executes directly.
Assembly language is a low-level language one step above machine language.
Compilers translate high-level languages into machine code.
Exam tip: Opcode = what to do, operand = what to do it on — keep the pair together.
Explanation
The most basic language of a computer is machine language, written in binary. Each machine instruction is made of two parts: the opcode (operation code), which tells the processor what operation to perform, and the operand, which is the data or address the operation acts on.
Related facts:
Machine language is the only language the CPU executes directly.
Assembly language is a low-level language one step above machine language.
Compilers translate high-level languages into machine code.
Exam tip: Opcode = what to do, operand = what to do it on — keep the pair together.