High-level languages require translation into machine language by a translator program, while machine language consists of binary code. A compiler translates high-level languages all at once, not line by line. Flowcharts can have multiple end symbols, and machine language is the most basic form of code directly executed by CPUs.
;
C. Read the following statements and write 'T' for True and 'F' for False.
High-level language programs have to be converted into machine language by a translator program.
True (T): High-level languages are human-readable and need to be translated into machine language that the computer can execute, using programs such as compilers or interpreters.
A compiler converts a high level language program into machine language, line by line.
False (F): Compilers take the entire program, translate it into machine code at once, and then produce an executable file. Line-by-line conversion is the method used by interpreters.
Machine language uses mnemonic codes.
False (F): Mnemonic codes are used in assembly language, not machine language. Machine language consists of binary code that can be directly executed by a computer.
A decision box is represented by a diamond symbol.
True (T): In flowcharts, a decision box is indeed represented by a diamond shape, indicating a decision point that can lead to different branches based on yes/no questions.
A flowchart can have more than one Stop symbols.
True (T): A flowchart can have multiple stop symbols, particularly if it includes multiple paths that each end at different points in the process.
D. Answer the following questions.
What do you mean by computer language?
Computer language refers to a formal language used to communicate instructions to a computer. It comprises various syntax and semantic rules that define the structure and meaning of programs. Computer languages are used to create programs that perform specific tasks when run on a computer. They can be categorized into high-level languages like Python, Java, and C++, which are closer to human languages, and low-level languages like assembly language and machine language, which are closer to binary code.
What is machine language? Explain.
Machine language is the lowest-level programming language, consisting of binary codes that a computer's CPU can execute directly. It is composed of a series of 0s and 1s, which correspond to various instructions for the processor to perform. Since it is based on the architecture of the specific CPU, machine language is not portable across different types of hardware. While machine language is the fastest language for processors to execute, it is very difficult for humans to read and write, which is why high-level languages are often used to write code.