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 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.