IS340 MDTERM EXAM Dr. Robert Chi
July 7, 1998

Instructions:

1. You have 1.5 hours to finish this exam; the time you submit your exam will be based on the time stamp from the computer.

2. Total points 100
 

 

Please Enter Your Name:

Please Enter Your SS#: 

Questions:

1. What is the name of the subroutine that will be executed when a button named command1 is clicked?

 
 

2. What code can make the "This is fun" in red color?

text1.text = "This is fun"


 

3. What is the value of X after the following code is executed?
A = 2
B = 4
C = 3
X = ((B^A)+C)*2


 

4. What is the value of X after the following code is executed?
X = 0
For Y = 1 to 10
If  Y > 5 then
X = X + 1
 Else
  X = X + 2
End If
Next Y


 

5. How many variables can be created by the following statement?
Dim stName(2 to 3, 10)  As currency


 

6. Use code to print out the following information.
My school is CSULB

7. Convert the following statement to a CASE statement
If    iTemp <= 32 Then
    lblComment.Caption = "Freezing"
Elseif      iTemp > 80 Then
    lblComment.Caption = "Hot"
Else
    lblComment.Caption = "Moderate"
EndIf

8. Use loop statement to assign 0 value to the following variables
Dim  iABC(2, 3) as Integer

9. Which statement will remove form1 from RAM?

10.Which statement will display form1 in modal style?