Quiz 7
comp 125-609, Goldwasser
Tuesday, 2 November 1999

This quiz covers the following cumulative material: (alphabetical, with new topics shown in italics)
  • Reading: Ch 1, Ch 2, 3.1-3.3, 4.1, 4.3, 5.1, and all class notes, labs and assignments to date
  • Controls: Command Button, Label, Picture Box, Text Box, Timer
  • Properties: Alignment, Caption, Font, ForeColor, Height, Index, Left, Multiline, Name, Picture, Text, Top, Visible, Width
  • Events: Click, GotFocus, LostFocus
  • Methods: picbox.Cls, picbox.Circle, picbox.Line, picbox.Print, picbox.PSet, picbox.Scale, SetFocus
  • Data Types: Arrays, Boolean, Control Arrays, Double, Integer, Long, Single, String
  • Flow of Control: If Blocks, Select Case Blocks, For Loops, Do Loops
  • Files: Open, Input, Write
  • Keywords: Load, Preserve, ReDim, Unload
  • Other: using the debugger

  • Name: _________________________

    Please Circle the one correct answer. If I can't tell which ONE is circled, it will unfortunately be marked wrong.










    (please turn to next page)










    1. What is the result of the following code segment:
    Picture1.Scale (0, 0)-(100, 100)
    Picture1.Line (25,0)-(100,50), , BF
    

    (A)
    (B)
    (C)
    (D)

    2. What is the result of the following code segment:
    Picture1.Scale (0, 0)-(200, 100)
    Picture1.Line (40, 10)-(100, 25), , BF
    

    (A)
    (B)
    (C)
    (D)



    3. What is the result of the following code segment:
    Picture1.FillStyle = 0               ' solid
    Picture1.Scale (0, 100)-(100, 0)
    Picture1.Circle (50,50), 25
    

    (A)
    (B)
    (C)
    (D)



    4. What is the result of the following code segment:
    WHOLE = 8 * Atn(1)    ' WHOLE = 2*PI = 360 degrees
    Picture1.FillStyle = 0
    Picture1.Scale (0, 30)-(30, 0)
    Picture1.Circle (15, 15), 10, , -WHOLE * (7 / 8), -WHOLE * (5 / 8)
    

    (A)
    (B)
    (C)
    (D)

    5. What is the result of the following code segment:
    Picture1.Scale (0, 0)-(100, 100)
    Picture1.CurrentX = 50
    Picture1.CurrentY = 50
    Picture1.Circle Step (25,0), 5
    

    (A)
    (B)
    (C)
    (D)