Comp chap 8

The function of an assembler is .........

Verified Answer
A. To convert basic language into machine language
B. To convert high level language into machine language
C. To convert assemble language into machine language
D. To convert assemble language into high level language
E. None of these

Explanation:

An assembler is a utility program that translates assembly language code into machine language (binary code). Assembly language is a low-level programming language that uses mnemonic codes (like ADD, MOV, JMP) to represent machine instructions. The assembler's function is to convert these mnemonics and symbolic addresses into the actual binary instructions that the computer's central processing unit (CPU) can directly execute. Options (a) and (b) describe the function of a compiler or an interpreter, which translate high-level languages. Option (d) is incorrect because translation typically proceeds from a higher-level representation to a lower-level one, not vice-versa for an assembler.