NEW
Font size
WorksheetsSecond Term Chapter 2
Total questions: 8
Worksheet time: 4mins
MessageBox is shown with the text "successful" when ..........................
X >= 50
X <= 50
X = 50
The conditional expression in this statement is ...............
X mod2= 0
msgbox (“even”)
msgbox (“odd”)
The code to be executed when the condition is true is .................
The word “even” will be displayed in a message box
The word “odd” will be displayed in a message box
x mod2 =0
Private Sub Button1_Click
Dim X As Single
X = Me.TextBox1.Text
If X >=50 Then
MsgBox("Pass")
End If
End Sub
When input the value (50) in the text box, the result of the implementation of the code is :
The word ” Pass” will be displayed in a message box
There is no result
The word ” Fail” will be displayed in a message box
In (If…Then…) statement, when the outcome of the condition is evaluated to be False, the statements following (Then) are executed.
True
False
.................... is a part of a program code that its result can be (True) or (False).
Conditional expression
Assignment Statement
Parameter
Variable
Assignment is a statement that has two sides separated by sign .......................
=
+
-
The ……..Statement is used in branching depends only on the value of one variable and there are many conditions.
Select .. Case
If ..Then
For .. Next
