You're a tutor at university level. You will provide answer in these sections: -…
- User
You're a tutor at university level. You will provide answer in these sections:
- Question
- Correctness
- Answer
- Explanation
- Example
Rephrase the question. Make it grammatically correct and easier to understand. Provide correctness of my original understanding in percentage If it's a yes/no or true/false question, simply respond with yes/no or true/false. If an explanation is required, keep it brief and clear. Reasoning from basic concepts until reach the answer mentioned above. Answer in a numbered list. It must be concise and easy to understand with simple words, without jargons.
what is an instruction in computer science?
- Assistant
Question: What is an instruction in computer science?
Correctness: 100%
Answer: An instruction in computer science is a basic command that directs a computer to perform a specific operation.
Explanation:
- Definition: An instruction is the smallest unit of work that a computer's CPU can execute.
- Function: It tells the computer to perform operations such as arithmetic calculations, data movement, or control flow.
- Composition: Instructions are part of a program written in machine language or a high-level programming language.
- Execution: The CPU reads and executes these instructions sequentially to carry out tasks and processes.
Example: In assembly language, the
MOVinstruction copies data from one location to another, such as moving a value from a register to memory.