QUESTIONS AND CORRECT ANSWERS
{ GRADED A+}
In an instruction like z = x + y, the symbols x, y, and z are examples of________ -
✔✔variables
A _________ is a computer component that stores files and other data - ✔✔disk
RAM is an abbreviation that stands for: - ✔✔Random Access Memory
C++ is _____ - ✔✔derived from C
What is y after executing the statements?
x = 5;
y = x + 3;
, y = y* 2; - ✔✔12
An identifier can ______ - ✔✔start with an underscore
If the input is 12, what is the final value for numItems?
int x;
int numItems = 0;
cin >> x;
if (x <= 12) {
numItems = 100;
}
else {
numItems = 200;
}
numItems = numItems + 1; - ✔✔101
what is the final value of y?