What is the difference between a machine-language program and a high-level language program?
A Machine-level language program is written in a form the computer can execute directly. A high-level language program is written in a form that is easy for a human being to write and read. A high-level language program must be translated into a machine-language program before the computer can execute it.
What does a compiler do?
A Compiler translates a high-level language program into a machine-language program.
Who was the first programmer, according to Savitch?
Ada Augusta, Countess of Lovelace and daughter of the poet Byron.
What is an algorithm?
An algorithm is a sequence of precise instructions that leads to a solution.
What are the two main phases of software development?
The problem solving phase
The implementation phase
List as many of the six steps in the software life cycle as you can:
Maintenance and Evolution
What are the following symbols used for in a C++ program?
Beginning of a comment to the end of the line
End of statement
Begin and End of a Block of code
Begin and End of a String
Begin and End of a multi-line comment
What does each of the following statements do in a C++ program?
A variable declaration:
apples is an integer variable
cout << "How many apples do you want?";
Sends the string to the output stream
cin >> apples;
Reads input stream into the variable apples
cout << "I will give you " << apples << " apples.";
Concatenates the string and the value to the output stream
Give an example of each of the following types of errors:
Forgetting a semicolon at the end of a line
Trying to divide a number by zero
Multiplying instead of adding two numbers