Types of Language Translators computer notes for exam

 

Software That Translates Programming Languages

Software that translates code written in one programming language into another form (especially machine language) is known as a Language Translator. These are part of System Software.


🔹 Types of Language Translators

1. Compiler

  • Translates entire program from high-level language (HLL) to machine code at once.

  • Faster execution, but errors are shown only after complete compilation.

Examples:
GCC (C Compiler), javac (Java Compiler), Turbo C++


2. Interpreter

  • Translates one line at a time from high-level language to machine code.

  • Slower, but useful for debugging since errors are shown line-by-line.

Examples:
Python Interpreter, Ruby Interpreter


3. Assembler

  • Translates assembly language into machine code.

  • Works with low-level programming.

Examples:
MASM (Microsoft Assembler), NASM (Netwide Assembler)


📘 Important Points for Exams

  • Compiler → Translates whole code at once.

  • Interpreter → Translates line by line.

  • Assembler → Translates assembly language.

  • All are part of system software.

  • They help the computer understand user-written code.


🧠 MCQs on Language Translators

1. Which software converts high-level language to machine code in one go?

A) Interpreter
B) Compiler
C) Assembler
D) Emulator
✔️ Answer: B


2. Which translator works line-by-line?

A) Compiler
B) Linker
C) Interpreter
D) Debugger
✔️ Answer: C


3. Assembler is used to translate:

A) Machine language
B) Assembly language
C) High-level language
D) Java code
✔️ Answer: B


4. Python uses which type of translator?

A) Compiler
B) Interpreter
C) Assembler
D) Editor
✔️ Answer: B


5. A program that translates source code into object code is called:

A) Interpreter
B) Translator
C) Compiler
D) Emulator
✔️ Answer: C

homeacademy

Home academy is JK's First e-learning platform started by Er. Afzal Malik For Competitive examination and Academics K12. We have true desire to serve to society by way of making educational content easy . We are expertise in STEM We conduct workshops in schools Deals with Science Engineering Projects . We also Write Thesis for your Research Work in Physics Chemistry Biology Mechanical engineering Robotics Nanotechnology Material Science Industrial Engineering Spectroscopy Automotive technology ,We write Content For Coaching Centers also infohomeacademy786@gmail.com

Post a Comment (0)
Previous Post Next Post