Presentation is loading. Please wait.

Presentation is loading. Please wait.

Final Revision sheet- term2

Similar presentations


Presentation on theme: "Final Revision sheet- term2"— Presentation transcript:

1 Final Revision sheet- term2
(Sample test #1)

2 X X X X

3 Syntax Rem Arithmatic equality 7 MultiLine
# # Arithmatic equality 7 MultiLine

4 to determine if the degree is (<0 , = 0 or >0 )
“ تحت الصفر” click Button1 single Set the cursor Focus inside TextBox1 Try ….Catch

5

6 Function Sum First , Second Single total

7 Final Revision sheet- term2
(Sample test #2)

8 Syntax Harassment “ “ IF .. Then Select .. Case Parameters X X √ √ √ √
“ “ underscore IF .. Then Select .. Case Parameters

9 To check the student’s Grade and Print “ناجح” if X>=50
”ناجح“ ”راسب“ Single Current form If x > then MsgBox(“ناجح”) else MsgBox(“راسب”)

10

11 Dim N , i As Integer N= textBox1.Text ListBox1.Items.Clear()
For i = 1 t o N step 2 ListBox1.Items.Add ( i ) Next i Method Control Property Increase counter variable i Display the odd numbers from 1 to entered value ( N) in ListBox1 Receive value inTextBox1 and assign to variableN the condition (i<=N) is true

12 Final Revision sheet- term2
(Sample test #3)

13 TextBox5.Text = TextBox5.Text & “ “ & M Next M
X X X Dim M As Integer TextBox5.Text = “ ”  For i = 1 t o step 2 TextBox5.Text = TextBox5.Text & “ “ & M Next M

14 IDE helps handling Const Pi as single = 3.14 Syntax error
Dim x As Integer x = Me.textbox1.text Select Case x Case 0 label1.text = " Equal Zero" Case is > 0 Label1.Text = "Greater than Zero" Case is < 0 Label1.Text = "Less than Zero" End Select IDE helps handling Const Pi as single = 3.14 Syntax error Area = pi * r * r Logical error Revise the code IDE helps handling Dim X As Byte Syntax error

15 2 4 1 3

16 Const BirthDate as date = # 22/ 11/ 1972 #
Dim St_Name as String TextBox1.Text = “ “ ListBox1 . Items . Add ( X ) MsgBox(“Welcome”) TextBox4. Focus ( )


Download ppt "Final Revision sheet- term2"

Similar presentations


Ads by Google