wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Second Term Chapter 2

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

MessageBox is shown with the text "successful" when ..........................

a)

X >= 50

b)

X <= 50

c)

X = 50

2.

The conditional expression in this statement is ...............

a)

X mod2= 0

b)

msgbox (“even”)

c)

msgbox (“odd”)

3.

The code to be executed when the condition is true is .................     

a)

The word “even” will be displayed in a message box

b)

The word “odd” will be displayed in a message box

c)

x mod2 =0

4.

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 :

a)

The word ” Pass” will be displayed in a message box

b)

There is no result

c)

The word ” Fail” will be displayed in a message box

5.

In (If…Then…) statement, when the outcome of the condition is evaluated to be False, the statements following (Then) are executed.

a)

True

b)

False

6.

.................... is a part of a program code that its result can be (True) or (False).

a)

Conditional expression

b)

Assignment Statement

c)

Parameter

d)

Variable

7.

Assignment is a statement that has two sides separated by sign .......................

a)

=

b)

+

c)

-

8.

The ……..Statement is used in branching depends only on the value of one variable and there are many conditions.

a)

Select .. Case

b)

If ..Then

c)

For .. Next