I. Cross out the illegal variable names:
j Mexico halt
_578 FALSE bFound
goo 23 findTime
printf _ A
two%five result57 write
4myself amount$ 385spaces
char main dfx0
_FLAG_ xv/6 G_globals
II. Write the following equation as a line in a computer program
(use *,/,+,-, and parentheses; write in one line):
5-w
let x = -----------------------
y-9
-------- + 62
3k+w-6
x =
III. Identify the variables in the following program. Draw
a column for each variable, trace through the program, and keep
track of what value is stored in each variable as the program
runs. DO NOT cross out old values for the variables.
void main()
{
int a,b,c;
a=5;
b=a-3;
float w;
w=b;
w=w/2;
a=w+1.1;
a=a+3.0*b;
b=7-(9-a)+6/3/2;
}
IV. Show exactly what would appear on the screen:
printf("Hello,^");
cout << "there!^^I^like\n";
cout << "programming.^^" << "This";
cout << "is\ngr" << endl << "eat.";