EGR 1400 CORRECT GUIDE ALL QUESTIONS AND
ANSWERS SURE A+
✔✔true - ✔✔T or F this is an infinite loop?
int A=0;
do
{
A = A + 2; //this is the sum, count here
} while (A >= 0);
✔✔5 - ✔✔How many times will the following sum execute?
int X=0;
while (X <= 8)
{
X = X + 2; //this is the sum, count here
}
✔✔even, 0, 8 - ✔✔the following code will add all the ___ numbers from ___ to ___
for (x=0; x<=9; x+=2)
{
sum = sum + x;
}
✔✔lstList.Items.Add("Bananas"); - ✔✔a line of code that will add the item "Bananas" to
list box lstList
✔✔name - ✔✔An array is a series of memory locations that share the same ______.
✔✔5 - ✔✔What is the value of X after the loops have both exited?int X=0;
while (X < 3)
{
, X += 2;
while ((X >= 2) && (X < 5))
{
X += 3;
}
}
✔✔14-18 - ✔✔review questions 14-18 on exam 2
answer is: 14-18
✔✔Q = () * (Xmax - Xmin); - ✔✔If we wanted to use the MSChart control to plot 5
points of the function (x^2) from Xmin=0 to Xmax=2,we would use the following code:
for (x=0; x<=2; x+=Q) //5 slots for 0 to 2, inclusive
{
chtMyChart.Series[0].Points.AddXY(G, G ^ 2);
}
What is the correct equation for Q? Assume that Xmin and Xmax are the minimum and
maximum values to be displayed on the chart's x-axis. This is similar to Lab 6.
a.
Q = () * (Xmax - Xmin);
b.
None of these
c.
Q = ((x - 1) / 5) * (Xmax - Xmin);
d.
Q = (Xmin + 4) * (Xmax - Xmin);
e.
Q = (Xmax - Xmin) / 4;
✔✔clearing all of the points on a graph - ✔✔The chtMyChart.Series[0].Points.Clear()
method of the Microsoft Chart Control is used for
a.
None of these
b.
clearing one point on a graph
c.
clearing the form
d.
changing the type of graph to a bar graph
e.
clearing all of the points on a graph
ANSWERS SURE A+
✔✔true - ✔✔T or F this is an infinite loop?
int A=0;
do
{
A = A + 2; //this is the sum, count here
} while (A >= 0);
✔✔5 - ✔✔How many times will the following sum execute?
int X=0;
while (X <= 8)
{
X = X + 2; //this is the sum, count here
}
✔✔even, 0, 8 - ✔✔the following code will add all the ___ numbers from ___ to ___
for (x=0; x<=9; x+=2)
{
sum = sum + x;
}
✔✔lstList.Items.Add("Bananas"); - ✔✔a line of code that will add the item "Bananas" to
list box lstList
✔✔name - ✔✔An array is a series of memory locations that share the same ______.
✔✔5 - ✔✔What is the value of X after the loops have both exited?int X=0;
while (X < 3)
{
, X += 2;
while ((X >= 2) && (X < 5))
{
X += 3;
}
}
✔✔14-18 - ✔✔review questions 14-18 on exam 2
answer is: 14-18
✔✔Q = () * (Xmax - Xmin); - ✔✔If we wanted to use the MSChart control to plot 5
points of the function (x^2) from Xmin=0 to Xmax=2,we would use the following code:
for (x=0; x<=2; x+=Q) //5 slots for 0 to 2, inclusive
{
chtMyChart.Series[0].Points.AddXY(G, G ^ 2);
}
What is the correct equation for Q? Assume that Xmin and Xmax are the minimum and
maximum values to be displayed on the chart's x-axis. This is similar to Lab 6.
a.
Q = () * (Xmax - Xmin);
b.
None of these
c.
Q = ((x - 1) / 5) * (Xmax - Xmin);
d.
Q = (Xmin + 4) * (Xmax - Xmin);
e.
Q = (Xmax - Xmin) / 4;
✔✔clearing all of the points on a graph - ✔✔The chtMyChart.Series[0].Points.Clear()
method of the Microsoft Chart Control is used for
a.
None of these
b.
clearing one point on a graph
c.
clearing the form
d.
changing the type of graph to a bar graph
e.
clearing all of the points on a graph