CIS 380 Quiz 1

Ask if there are any questions. Each question is worth 3 points.
  1. A ComboBox control is like two other controls together. Which ones?
    1. ListBox and SelectBox
    2. ListBox and TextBox
    3. ListBox and Label
  2. A Do--Until loop like this will always run
  3. Do Until i > 3
       Debug.print "i is " & Cstr(i)
       i = i + 1
    Loop 
    
    1. 0 or more times
    2. 1 or more times
    3. Never
    4. Always
  4. To display a string in a TextBox do you set
    1. the Text property
    2. the Caption property
    3. the Name property
  5. Which of these is the correct open statement for a file to read it?
    1. Open "data.txt" As Input For #1
    2. Open "data.txt" For Input As #1
    3. Open #1, "data.txt" For Input
  6. Write a for loop that goes from 18 to 3 backwards in increments of 2. That is, the index values will be 18,16,14,12,10,8,6,4