EGR 1400 Exam 2 Study Questions
and Answers 2026 Update
1
MessageBox.Show("hi");
a line of code that shows the string hi in a message box
2
lstList.Items.add("hi")
a line of code that will add the srting hi to the items in a listbox
3
for loop
a counting loop containting a starting variable, a condition (ending point), and a
modification to the starting starting variable
4
0
for loops may run as few as ___ time(s)
5
do-while
loop that does the actions then checks the while condition
6
EGR 1400
, EGR 1400
1
do-while loops will run as we as ____ time(s)
7
0
while loops will run as few as ____ time(s)
8
variable, condition, change to variable
for loop formatting is
for(____) (3 components)
{
do the thing
}
9
true
while loops run while their condition is ____
10
nest loop
this is an example of a ____ (2 words)
while (!file1.EndOfStream)
{
while (!file2.EndOfStream)
EGR 1400