Private Sub Command1_Click() Dim Police As Integer Police = 911 Picture1.Print Police End SubWhen the user runs the program and presses the command button, what will be displayed?
Private Sub Command1_Click() Dim X As Integer X = 12 X = X + 5 Picture1.Print "Value = "; X End SubWhen the user clicks the command button, what is displayed?
Private Sub Text1_GotFocus() Text1.Text = "Apples" End Sub Private Sub Text1_LostFocus() Text1.Text = "Oranges" End Sub Private Sub Text2_GotFocus() Text2.Text = "Pears" End Sub Private Sub Text2_LostFocus() Text2.Text = "Bananas" End SubThe user runs the program and clicks repeatedly on each text box in turn. The last one clicked is Text1. What will be displayed?
Last = Val(Text2.Text)
Private Sub Command1_Click() Dim TheFirst As Integer Dim TheSecond As Integer TheFirst = 1999 TheSecond = 53 TheFirst = TheSecond TheSecond = TheFirst Label1.Caption = "TheFirst = " & TheFirst & ", The Second = " & The Second End SubWhat is the caption of Label1 after the user clicks on Command1?
Private Sub Command1_Click() Dim X As Single Dim Y As Single X = 10 Y = 4 Label1.Caption = Str(3*Y+X/2) End SubWhat is the caption of the label after the user clicks on the command button?
Private Sub Command1_Click() Dim foo As String, bar As String foo = "12" bar = "34" Picture1.Print foo & bar; End SubWhen the user runs the program and presses the command button, what will be displayed?
Dim X as Integer, Y As Integer, Z As Integer Private Sub Command1_Click() Dim X as Integer X = 1 Y = 2 End Sub Private Sub Command2_Click() Dim Y as Integer X = 3 Y = 6 End Sub Private Sub Command3_Click() Dim Z as Integer Z = X + Y Picture1.Print Z End SubThe user clicks Command1, Command2 and Command3 in that order. What is displayed in the picture box?
Private Sub Command1_Click() Label1.Caption = "Q" If (Val(Text1.text) > 50) Then Label1.Caption = Label1.Caption & "R" End If Label1.Caption = Label1.Caption & "S" End SubThe user enters 25 into the textbox and then presses the command button. What is displayed in the label?
If (X < Y) Then If (Y < Z) Then text1.text = "Success" End If End IfWhich of the following would behave equivalently?
If (X < Y) And (Y < Z) Then text1.text = "Success" End If
If (X < Y) Or (Y < Z) Then text1.text = "Success" End If
If (X < Y) Not (Y < Z) Then text1.text = "Success" End If
If (X < Y < Z) Then text1.text = "Success" End If
Private Sub Command1_Click() If ("apples" > "oranges") Then If ("bananas" = "pears") Then Label1.Caption = "A" Else Label1.Caption = "B" End If Else If ("bananas" <> "pears") Then Label1.Caption = "C" Else Label1.Caption = "D" End If End If End SubWhat is the caption of Label1 after the user clicks on Command1?
Private Sub Command1_Click() Dim n As integer For n = 15 to 25 Step 4 Picture1.Print n; Next n End SubWhen the user runs the program and presses the command button, what will be displayed?
$ $$ $$$ $$$$ $$$$$Which of the following pieces of code will acomplish this task?
Dim X As Integer, Y As Integer For X = 1 to 5 For Y = 1 to 5 picture1.print "$"; Next Y picture1.print "" Next X
Dim X As Integer For X = 1 to 5 picture1.print X * "$" Next X
Dim X As Integer, Y As Integer For X = 1 to 5 For Y = 1 to X picture1.print "$"; Next Y picture1.print "" Next X
Dim X As Integer For X = 1 to 5 picture1.print "$" Next X
Private Sub Command1_Click() Dim n As integer n = 1 Do While (n <= 4) n = n + 1 Loop Picture1.Print n End SubWhen the user runs the program and presses the command button, what will be displayed?
Private Sub Command1_Click() Dim n As integer n = 1 Do n = n + 1 Loop Until (n >= 4) Picture1.Print n End SubWhen the user runs the program and presses the command button, what will be displayed?
Boo(1)=2 Boo(2)=3 Boo(3)=8 Boo(4)=7 Boo(5)=4 Boo(6)=9 Boo(7)=6 Boo(8)=10 Boo(9)=5 Boo(10)=1What would be displayed by the line: Picture1.Print Boo(Boo(4))?
12 28 5, 17 35, 20What is displayed when the user clicks on the command button with the following code?
Private Sub Command1_Click() Dim Apples, Oranges, Bananas, Pears as Integer Open "A:\junk.txt" For Input As #2 Input #2, Apples, Oranges Input #2, Bananas, Pears Close #2 Picture1.Print Bananas End Sub
Private Sub Command1_Click() Open "A:\results.txt" For Output As #1 Write #1, "Hello", "Aloha" Close #1 End SubAfter doing so, if the user opens the file A:\results.txt using Notepad, what will he or she see?
Hello Aloha
"Hello" "Aloha"
Hello, Aloha
"Hello","Aloha"