a C++ compiler
a C++ translator
an object code editor
a text editor E. both (a) and (d)
Answer is Wrong!
Answer is Right!
The correct answer is: E. both (a) and (d).
A C++ compiler is a program that translates C++ source code into machine code. A text editor is a program that allows you to create and edit text files. To create and execute a C++ program, you need to have access to a C++ compiler and a text editor.
A C++ compiler takes C++ source code as
288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/>
Subscribe on YouTube
input and produces machine code as output. The machine code can then be executed by the computer.
A text editor allows you to create and edit text files. You can use a text editor to create C++ source code files.
Once you have created a C++ source code file, you need to compile it using a C++ compiler. The compiler will translate the source code into machine code. You can then execute the machine code using the computer.
Here are some additional details about each option:
- A C++ translator is a program that translates C++ source code into machine code. However, this term is not commonly used. The more common term is “compiler.”
- An object code editor is a program that allows you to edit object code files. Object code files are created by a compiler. However, you do not need to use an object code editor to create or execute a C++ program.
- A text editor is a program that allows you to create and edit text files. You can use a text editor to create C++ source code files. However, you also need to have access to a C++ compiler to compile the source code and execute the program.