Answers | Guaranteed Pass!!!
instructions CORRECT ANSWERS A program is a set of _____________.
variable CORRECT ANSWERS A(n) _____________ is a named storage location.
Input CORRECT ANSWERS ___________ is information a program gathers from the
outside world.
Output CORRECT ANSWERS __________ is information a program sends to the
outside world.
ALU (Arithmetic Logic Unit), CU (Control Unit) CORRECT ANSWERS Internally, the
CPU consists of the _________________ and the ______________.
High level CORRECT ANSWERS _______ __________ languages are close to the
level of humans in terms of readability.
Low level CORRECT ANSWERS _______ __________ languages are close to the
level of the computer.
Syntax - error when compiling/creating a program
Logical - mistake in the programming such as instructions in the wrong order
CORRECT ANSWERS What is the difference between a syntax error and a logical
error?
The variable area is defined before it asks the user for inputs. CORRECT ANSWERS
The following pseudocode algorithm has an error. The program is supposed to ask the
user for the length and width of a rectangular room, and then display the room's area.
The program must multiply the width by the length in order to determine the area. Find
the error.
area = width x length
Display "What is the room's width?".
Input width.
Display "What is the room's length?"
Input length.
Display area.
iostream CORRECT ANSWERS To use cout statements you must include the
____________ file in your program.
, # CORRECT ANSWERS Preprocessor directives begin with a ____.
g = pow(a, 3) / (pow(b, 2) * pow(k, 4)); CORRECT ANSWERS Write the c++ expression
for the following algebraic expression.
g = (a^3)/(b^2 * k^4)
iostream and iomanip CORRECT ANSWERS What header files must be included in the
following program?
float amount = 89.7;
cout << fixed << showpoint << setprecision(1);
cout << setw(8) << amount << endl;
-No semicolon after int main()
-Missing semicolon after a = 3
-Missing semicolon after b = 4
-Missing semicolon after c = a + b
-Braces are backwards
-Brackets are wrong way in cout line
-Cout shouldn't be capital
-C shouldn't be capitalized in last line CORRECT ANSWERS The following program
contains syntax errors. Locate as many as you can.
//what is wrong with this program??
#include iostream
using namespace std;
int main();
}
int a, b, c \\ define 3 integers
a=3
b=4
c=a+b
Cout >> "The value of c is " >> C;
return 0;
{
cout << "Two mandolins like creatures in the\n\n\n";
cout << "dark\n\n\n";
cout << "Creating the agony of ecstasy.\n\n\n";
cout << " - George Barker"; CORRECT ANSWERS Modify the following program so that
it prints two blank lines between each line of text.
cout << "Two mandolins like creatures in the"; cout << "dark";
cout << "Creating the agony of ecstasy.";
cout << " - George Barker";