Machine language vs. high-level language

Machine language vs. high-level language
-
Q: What is the instruction list?
A: The instruction list is the alphabet of machine language. -
Q: Why is machine language called the computer's mother tongue?
A: Because it is the simplest and most primary set of symbols used to give commands to a computer. -
Q: Why can't humans directly use machine language?
A: Machine language is very different from human language and not easy for humans to understand. -
Q: What do humans and computers need to communicate?
A: They need a common language or a bridge between the two. -
Q: What is a high-level programming language?
A: It is a language that humans can use to write complex programs in a way that's easier for them to understand. -
Q: What is a program written in a high-level language called?
A: It is called source code. -
Q: What is the file containing source code called?
A: It is called a source file. -
Q: What are some features of high-level programming languages?
A: They use symbols, words, and conventions readable to humans. -
Q: Why are high-level languages needed?
A: They allow humans to write complex commands that computers can execute. -
Q: What does a computer execute?
A: A computer executes machine code. -
Q: What role does machine code play in programming?
A: It is the language that computers understand and execute directly.
-
What is the instruction list (IL)?
- a) A set of natural language rules
- b) The alphabet of machine language
- c) A high-level programming language
- d) A file containing source code
Answer: b) The alphabet of machine language
-
What is the main purpose of the instruction list?
- a) To help humans communicate directly with each other
- b) To give commands to a computer
- c) To create natural languages
- d) To store source files
Answer: b) To give commands to a computer
-
What is the computer's mother tongue?
- a) Natural language
- b) High-level programming language
- c) Machine language
- d) Source code
Answer: c) Machine language
-
Why is machine language not suitable for humans?
- a) It is too slow to process
- b) It lacks symbols and conventions
- c) It is very different from human language
- d) It cannot execute instructions
Answer: c) It is very different from human language
-
What do humans and computers need to communicate?
- a) A natural language
- b) A common language or a bridge
- c) A machine code translator
- d) A set of instructions
Answer: b) A common language or a bridge
-
What is a program written in a high-level programming language called?
- a) Source file
- b) Machine code
- c) Source code
- d) Instruction list
Answer: c) Source code
-
What is a file containing source code called?
- a) Machine code
- b) Instruction list
- c) High-level code
- d) Source file
Answer: d) Source file
-
How are high-level programming languages different from machine language?
- a) They are simpler than natural language but more complex than machine language
- b) They use binary code only
- c) They are harder to learn than machine language
- d) They cannot be converted to machine code
Answer: a) They are simpler than natural language but more complex than machine language
-
Why are high-level programming languages similar to natural languages?
- a) They use symbols, words, and conventions readable to humans
- b) They evolve naturally like human languages
- c) They have complex phonetics
- d) They do not require a computer to execute
Answer: a) They use symbols, words, and conventions readable to humans
-
What does source code enable humans to do?
- a) Create new instruction lists
- b) Execute commands directly in binary
- c) Express complex commands to computers
- d) Write natural language stories
Answer: c) Express complex commands to computers
-
Which of the following is executed by the computer?
- a) Machine code
- b) Natural language
- c) High-level language
- d) Source file
Answer: a) Machine code
-
What makes high-level programming languages necessary?
- a) They create source files
- b) They make it easier for humans to write programs
- c) They improve the computer’s instruction list
- d) They replace machine code entirely
Answer: b) They make it easier for humans to write programs