國立暨南國際大學 99 學年度第一學期小考試卷

科目名稱:資訊系統 與網路導論 開課系所:資訊工程 學系 任課教師
吳坤熹
系所別:
年級:
學號:
姓名:
考試日期
2010.10.8

(考試時間: 10:30-10:45)

  1. (10%) What is the output of the following code?
    ' The WORD$() Function
    PRINT WORD$("EAST, WEST, SOUTH, NORTH", 3, " ")
    PRINT WORD$("EAST, WEST, SOUTH, NORTH", 3, ",")
    PRINT WORD$("EAST, WEST, SOUTH, NORTH", 3, ", ")
    END

  2. (10%) Consider the following code in Just BASIC:

    ' Do not assign the same handle to multiple textbox controls

    TEXTBOX #w.caller, 100, 35, 100, 35
    STATICBOX #w,caller, "Caller's Name", 10, 35, 90, 35
    BUTTON #w.ok, "OK", [onClicked], UL, 210, 35
    OPEN "MyWindow" FOR WINDOW AS #w
    WAIT

    [onClicked]
        PRINT #w.caller, "Textbox or label?"
        END


    After clicking the OK button, the contents of which control will be changed?
    1. The textbox
    2. The label (staticbox)
    3. Both
    4. The button

  3. (10%) Determine whether the following code is correct or not.  If it is correct, predict its output.  If it is incorrect, point out the mistake(s)

    OPEN "Draw A Box" FOR GRAPHICS AS #draw
    PRINT #draw, "up ; home ; north ; go 50 ; turn 90 ; go 50 ; down"
    PRINT #draw, "turn 90 ; go 100"
    PRINT #draw, "home; go 50"
    PRINT #draw, "FLUSH"
    WAIT