CS 1713 Introduction to Computer Science


Diagnostic quiz on primitive representation:


Draw an accurate schematic diagram of the program variables showing the execution of the program:

double x = 2;
double y;
double z;
y = x;
z = 4.5;
x = 3;
y = z;

Solution: