Why might you want to write a program in a machine-independent language instead of a machine-dependent language? Why might a machine-dependent language be more appropriate for writing certain types of programs?

What will be an ideal response?


Machine independent languages are useful for writing programs to be executed on multiple computer platforms. Machine dependent languages are appropriate for writing programs to be executed on a single platform.

Computer Science & Information Technology

You might also like to view...

Given the following code. The input file, in.dat, is a copy of the program code in this problem. How will the output file, out.dat, differ from the input file?

What will be an ideal response? ``` // file: testQuestion.cc // test question: copy files: in.dat to out.dat // in.dat is a copy of a file containing this code. // use EOF to terminate copy loop #include #include // for exit() using namespace std; int main() { ifstream in; ofstream out; in.open("in.dat"); out.open("out.dat"); while(in << ch) out << ch; return 0; } ```

Computer Science & Information Technology

Packet filters work at which of the following layers of the OSI model?

A) Application B) Network C) Session D) Transport

Computer Science & Information Technology

Verify that, for any pair of relations r and s, ? cond (r × s)=r × ? cond(s) if the selection condition cond involves only the attributes mentioned in the schema of relation s.

What will be an ideal response?

Computer Science & Information Technology

Windows uses command windows to display the contents of the computer.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology