1st Secondary
Q1: Put ( ) or ( ) for the fowling sentence:
1. We insert elements inside (CompoBox) tool through Items property ( )
2. ComboBox tool use to chose just one item from the list ( )
3. VB.Net allows adding new Controls to ToolBox ( )
4. We can use Window Media Player to view Text File ( )
5. User can insert animated picture in ToolBox tool and view animated when run
the program ( )
6. The control tool AxWindowsMediaPlayer is one of toolbox default items ( )
7. To use the control tool AxWindowsMediaPlayer we should first add it to
toolbox ( )
8. State maps saved in folder named Flags
( )
Q2: Chose the correct answer:
1- When viewing the result of a calculation in the Label control tool, preferably the value
of the property Name is:
1- Label 2- Name
3- blResult 4- MyName
2- The control tool we can use to view name list is
1- Button 2- Label
3- ComboBox 4- PictureBox
3- The following Control tool can view picture unless:
1- Button 2- Label
3- ComboBox 4- PictureBox
4- The control tool use to play video and sound files:
1- RadioButton 3- WindowsMediaPlayer
3- ComboBox 4- PictureBox
5- The control tool we use to insert list of items inside
1- ComboBox 2- PictureBox
3- Label 4- Button
second term - final 1
1st Secondary
6 - To make the control tool start as visible we use the code:
Object.Visible = True Object.Visible = False
7- To make the control tool start as unvisible we use the code:
Object.Visible = True Object.Visible = False
8- We adjust SizeMode property for PictureBox Control tool using code:
Picbxmap.SizeMode = StretchImage Picbxmap.SizeMode = Normal
9- In Atlas project we use this control tools exept:
Label Combobox Textbox PicturBox
10- Which control tools not use in Atlas project
Label RadioButton ComboBox ListBox PictureBox CeckBox
Q3: Arrange making project steps
( ) Determine the objective of the project
( ) Design the project interface (GUI)
( ) Adjust the controls properties as in the previous table
( ) Collect needed data for the project and organized in folders as explained before
( ) specify the control tools to be used on the user interface Form.
( ) We can add another tools to toolBox in VB.Net as shown in adding windows media
player control
second term - final 2
1st Secondary
Q4: Write the correct control tool number in the front of the write
statement
1
2
( ) Control tool allows insetting picture inside and viewing it
( ) Control tool used to play Sound and Video files
( ) Control tool used to insert and view list of names
second term - final 3
1st Secondary
Lesson (9)
Q1: Put ( ) or ( ) for the fowling sentences:
1. To open Code Window press F5 button on keyboard. ( )
2. The return value type from the function GetDatafromExcelSheet is Data Table
( )
3. Declaration function GetDatafromExcelSheet start with word Sub ( )
4. Functions can’t allow parameter ( )
5. The Function GetDatafromExcelSheet have parameters FilePath and Sql
( )
6. The Connection between the program created by VB.NET and Excel file is open
using ADO.Net tools ( )
7. We use Variable Type OleDbConnection to close the opened connection with
Excel file ( )
8. The returned Value from finction GetDatafromExcelSheet(FilePath As String, sql
As String) As DataTable from type string ( )
9. We use the word SUB to declare (Function) ( )
10.We use Variable Type OleDbConnectionmmand to open a connection with the
Excel file ( )
11.We can create a Variable type (Data table) in the memory to save data collected
from data file ( )
12.The ADO.NET is a set of categories or Classes that deal with data sources ( )
13.Class is known scheme (Blueprint), which objects are created from ( )
14.Method is considered the events can be located on the control tool. ( )
15.Events are considered the events can be located on the control tool. ( )
16.Method is the action can the object (control Tool) do after Event happened ( )
17.The control tool is not the basic structure in object oriented programming (OOP)
( )
18.The Framework is a work environment or framework for all applications (Visual
Studio.NET) ( )
19.Control tools can deal with database directly ( )
20.We use the command Distinct in Select statement to not show repeated values
( )
second term - final 4
1st Secondary
21.We use the command Count in Select statement to show Number of data in
column ( )
22.The CoboBox tool have 2 valiues one is visible (DisplayMember) and one
unvisible (ValueMember) ( )
Q2:Compleet using words between bracts
(Function – 2 – Dim – FilePath – Methods - Events)
Function GetDatafromExcelSheet have ……… parameter
Parameter ………… in the function GetDatafromExcelSheet is the Excel file
physical Location
Declaration function GetDatafromExcelSheet statrt by the word ………
To declare variables MyConnection and MyCommand using ………
In the code window te menu Class Name show ……… but Name Method show
………
Q3: mention the name for the following definitions
Name definitions
Class The Blueprint which create object from it and contain properties
and Methods which objects inherits
Object It is the basic item in the object oriented programming language
and created from class
Framework The VB.Net framework which provide design and running all ,Net
applications
SQL The programming language can deal with data base files and its
short word to (Structured Query Language)
Q4: Choose the correct answer
1. The connection between VB.Net and Data Base
(DataAdapter – Command – Connection)
2. To open code window in VB.Net we press the key
(Name – F7 - Provider)
3. To change the name of lable1 tool we use the property
(Name – Text - Provider)
second term - final 5
1st Secondary
4. To change the text on the Button1 tool we use the property
(Name – Text - Provider)
Q5: From the code below find: (Important)
Function GetDataFromExcelSheet(ByVal FilePath As String, ByVal sql
As String) As DataTable
Dim MyConnection As New OleDb.OleDbConnection
Dim MyCommand As New OleDb.OleDbCommand
Dim da As New OleDb.OleDbDataAdapter
Dim dt As New DataTable
End Function
Function Name …………………….
Parameters Name ……… &………
Parameter Type ………
The return value data type ………
……… contain the Excel file path on the storage media
……… contain The Command which deal with data in the Excel file
We use the command Dim to declare the variables
We declare the functions
a. Variable ……… to open connection with data file
b. Variable ……… run the query to collect the data
c. Variable ……… convert data from Excel file to dt
d. Variable ……… has a table to store data from Excel file
second term - final 6
1st Secondary
Q6: Chose from A what is suitable in B
A B
1 - DataTable A - Is one of SQL statment
2 - DataSet B - Source of data
3 - Select C - The connection between database and
visual basic
4 - Provider D - Is a class we can create variable from it in
the memory to store database
5 - DataSource E - Is a class we can create variable from it in
the memory to store database table
second term - final 7
1st Secondary
Q7: The folwing is a table contain the Exam result of some student,
What is the right Select statement to get:
1- All the in the table
a- Select * from Marks
b- Select All from Marks
c- Select ? from Marks
2- The Number of table aws
a) Select Sum (*) from Marks
b) Select Count (*) from Marks
c) Select Total from Marks
second term - final 8
1st Secondary
3- Just student Name
a) Select Name from Marks
b) Select * from Marks
c) Select Name ( Marks )
4- Student‟s Nams and their total degree
a) Select Name , Total [Marks]
b) Select Name + Total from Marks
c) Select Name , Total from [Marks]
5- all records with condition total = 99
a) Select * from [Marks] Where Total=99
b) Select Total=99 from [Marks]
c) Select Total Where Marks =99
6- all Name and Total with condition total = 99
a) Select Name , Total = 99 from [Marks]
b) Select Name , Total from [Marks] Where Total=99
c) Select Name , Total Where Total=99
7- all Name and Total with condition total less 99
a) Select Name , Total < 99 from [Marks]
b) Select Name , Total from [Marks] Where Total < 99
c) Select Name , Total Where Total < 99
second term - final 9
1st Secondary
8- name and French degree under condition French degree more than 44
a) Select Name , French from [Marks] Where French >=44
b) Select Name , French Where French >=44
c) Select Name , French>=44 from [Marks]
9- Student name under condition Arabic degree equal 50
a) Select Name from [Marks] Where Arabic=50
b) Select Name from [Marks] Where Arabic (50)
c) Select Name , Arabic=50 from [Marks]
10- All student names which start with (M)
a) Select Name from Marks Where Name = „M%‟
b) Select Name from Marks Where Name Like „M%‟
c) Select Name („M%‟) from Marks
11- Number of succeeding student wher pass degree is 75
a) Select Count (Name) from Marks Where Total >= 75
b) Select Count (Total >= 75) from Marks
c) Select Name , Count (Total >= 75) from Marks
12- All student names which end with (ed)
a) Select Name from Marks Where Name Like „ed%‟
b) Select Name from Marks Where Name Like „%ed‟
c) Select Name („_ed‟) from Marks
second term - final 10
1st Secondary
Lesson 10
Q1:Compleet using words between bracts
(Private Sub – Try/Catch – Me - & - Dim – New DataTable – dt –twice)
1. To open Code windows for any control tool click ……… on the tool in design mood
2. The Event in the code window start with ………
3. In the command Dim dt As New DataTable , the variable name is ……… and
its datatype is ………
4. The word ……… refer to the current form
5. We use statement ……… to prevent runtime errors
6. We use the symbol ……… to join many strings together to be one string
7. To declare variable we use the command ………
Q2: Read the code and chose the correct result of using it
Me.lblDC.Text = dt.Rows (0).Item(2).Tostring
The Text property of the lblDC assign by the value of
1- The second row and first column in the table dt
2- The first row and second column in the table dt
3- The first row and third column in the table dt (counting start from 0)
Me.lblWR.Text = dt.Rows (2).Item(4).Tostring
The Text property of the lblWR assign by the value of
1- The second row and fourth column in the table dt
2- The theird row and fifth column in the table dt (counting start from 0)
3- The second row and fifth column in the table dt
second term - final 11
1st Secondary
Lessons 11 – 13
Q1: Choose the right answer:
1. Programming language used in the Arabic atlas project is
(Visual J – Visual C – Visual Basic .Net)
2. (SelectedIndexChanged - SelectedIndex – Index) is the default Event for
ComboBox control
3. It is prefer the name of the button control start with (frm – btn – uro)
4. It is prefer the name of the label control start with (lbl – btm – cmb)
5. To use the variable in more than Event without errors, we should declare it in the (
Class – Control – Event)
6. If statement end with (Stop Sub – End If – Final If)
7. When we use If statement, if the condition is false so the program run the code
after (Then – Else – End Sub)
8. The code V = ComboBox1.SelectedItem mean
1- Put the ComboBox selected Item name in the variable V
2- Put the value in the Variable V in the ComboBox
second term - final 12
1st Secondary
Q2: Put ( ) or ( ) for the fowling sentences:
1. VB.Net language not allow to change default control’s name ( )
2. SelectedIndexChanged Event Test the selected item within the control
ComboBox ( )
3. We use the Try/Catch statement to catch and handling with runtime error ( )
4. The scope of use the variables and constants within the program is determined by
the place of the announcement ( )
5. Me reserved word Me used in the code window to indicate the end of the Method
( )
6. We can’t use the variable which we declared in the Class scope more than one time
in one method ( )
7. Variable declaration start with the word Dim ( )
8. VB.Net not allow declaration Variables without assignment value ( )
9. VB.Net not allow declaration Constant without assignment value ( )
10.There is many common properties for the major controls like Item property ( )
11.Some code running by using the event click one time on the button control ( )
second term - final 13
1st Secondary
12.To run the program in VB.Net press F4 ( )
13.To add button to the program interface we click twice on it from ToolBox ( )
14.In the assignment statement Me.WMediaPlayer.Visible =True. True is the
property and Visible is the value ( )
15.Fourcolor property is used to adjust control face text color ( )
Q3: Complete the following statements by suitable word between brackets
( Class() – Button –Audio– Picture – Video – Name – Alfeaz )
1. ………… is the common property between all control tools
2. ………… control used to implement pre-written code when clicked
3. ………… is the value in the assignment statement Me.btmplayVideo.Text=
“Alfeaz”
4. In the command Me.WMPlayer.Close() we use the property ………… to
stop the move
5. The file (Egypt.wmv) is a ………… file
6. The file (Egypt.mp3) is a ………… file
7. The file (Egypt.png) is a ………… file
second term - final 14
1st Secondary
Model Exam (1)
Q1: Complete the sentence with the suitable word between the brackets:
(Command Text – Object – SQL – Form)
. .………… is the main object in VB.NET language it used to develop the tools
………… is variable MyCommand property, it stores the text data
………… is a (structured Query Language) shortcut , it is a language dealing
with database files
………… is created from the specific class, it is basic building unit in
programming languages
Q2: Arrange the steps to bring data from data base to the control tools
( ) Transfer data to the data table in the computer memory
( ) Connect with the data base that contains the data to be collected
( ) View the data by the Controls in the form
( ) Collect data from a database stored on any storage medium
Q3: Match from Column A the suitable from Column B
A B
1 Variable A Used in opening a communication channel with data
sheet in Excel File
MyCommand
2 Variable B Variable dt has a data table saves the data that has
been brought from the Excel file
da
3 Variable C It execute the query which collect data from Excel
file
MyConnection
4 Variable D Convert data (data adapter) from the Excel file to
data table in the variable DT
dt
second term - final 15
1st Secondary
Model Exam (2)
Q1 Read the code and then answer
Function GetDataFromExcelSheet(ByVal FilePath As String, ByVal sql As String) As DataTable
End Function
1- Function Name is: …………
2- Parameters Name are: ………… & …………
3- Parameter Type is : …………
4- The retuned value is …………
5- To end the function we must write: End Function
Q2: Put ( ) or ( ) for the fowling sentences:
1. To create new project we chose New Project from the menu File ( )
2. Make the control property Visible as False mean make it Visible ( )
3. We can create variable of type Data Table in the memory to store data collected
from data file ( )
4. The ToolBox not contain the control Windows Media Player by default ( )
5. We open connection channel between the programs written by VB.Net and Excel
file using MyCommand ( )
Q3: chose the right answer after reading the code
Select Count Countries from Table1,
1. It retrive Contries name from Table1
2. It retrive Number of Contries from Table1
3. It retrive Contries Data from Table1
second term - final 16
1st Secondary
Answeres
Lesson8
Q1: Put () or (X) for the fowling sentences:
1. We insert elements inside (CompoBox) tool through Items property ()
2. ComboBox tool use to chose just one item from the list ()
3. VB.Net allows adding new Controls to ToolBox ()
4. We can use Window Media Player to view Text File (X)
5. User can insert animated picture in ToolBox tool and view animated when run the
program (X)
6. The control tool AxWindowsMediaPlayer is one of toolbox default items
(X)
7. To use the control tool AxWindowsMediaPlayer we should first add it to toolbox
()
8. State maps saved in folder named Flags
(X)
Q2: Choose the correct answer:
1- When viewing the result of a calculation in the Label control tool, preferably the value
of the property Name is:
1- Label 2- Name
3- blResult 4- MyName
2- The control tool we can use to view name list is
1- Button 2- Label
3- ComboBox 4- PictureBox
3- The following Control tool can view picture unless:
1- Button 2- Label
3- ComboBox 4- PictureBox
4- The control tool use to play video and sound files:
1- RadioButton 3- WindowsMediaPlayer
3- ComboBox 4- PictureBox
second term - final 17
1st Secondary
5- The control tool we use to insert list of items inside
1- ComboBox 2- PictureBox
3- Label 4- Button
6 - To make the control tool start as visible we use the code:
Object.Visible = True Object.Visible = False
7- To make the control tool start as unvisible we use the code:
Object.Visible = True Object.Visible = False
8- We adjust SizeMode property for PictureBox Control tool using code:
Picbxmap.SizeMode = StretchImage Picbxmap.SizeMode = Normal
9- In Atlas project we use this control tools exept:
Label Combobox Textbox PicturBox
10- Which control tools not use in Atlas project
Label RadioButton ComboBox ListBox PictureBox
CeckBox
Q3: Arrange making project steps
( 1 ) Determine the objective of the project
( 3 ) Design the project interface (GUI)
( 5 ) Adjust the controls properties as in the previous table
( 2 ) Collect needed data for the project and organized in folders as explained before
( 4 ) specify the control tools to be used on the user interface Form.
( 6 ) We can add another tools to toolBox in VB.Net as shown in adding windows media
player control
second term - final 18
1st Secondary
Q4: Write the correct control tool number in the front of the write statement
1
2
( 2 ) Control tool allows insetting picture inside and viewing it
( 3 ) Control tool used to play Sound and Video files
( 1 ) Control tool used to insert and view list of names
second term - final 19
1st Secondary
Lesson 9
Q1: Put () or( ):
1. To open Code Window press F5 button on key board ( )
2. The return value type from the function GetDatafromExcelSheet is Data Table
( )
3. Declaration function GetDatafromExcelSheet start with word Sub ( )
4. Functions can’t allow parameter ( )
5. The Function GetDatafromExcelSheet have parameters FilePath and Sql
( )
6. The Connection between the program created by VB.NET and Excel file is open
using ADO.Net tools ()
7. We use Variable Type OleDbConnection to close the opened connection with Excel
file ( )
8. The returned Value from finction GetDatafromExcelSheet(FilePath As String,
sql As String) As DataTable from type string ( )
9. We use the word SUB to declare (Function) ()
10.We use Variable Type OleDbConnectionmmand to open a connection with the
Excel file ()
11.We can create a Variable type (Data table) in the memory to save data collected
from data file ()
second term - final 20
1st Secondary
12.The ADO.NET is a set of categories or Classes that deal with data sources ()
13.Class is known scheme (Blueprint), which objects are created from ()
14.Method is considered the events can be located on the control tool. ()
15.Events are considered the events can be located on the control tool. ()
16.Method is the action can the object (control Tool) do after Event happened ()
17.The control tool is not the basic structure in object oriented programming
(OOP) ()
18.The Framework is a work environment or framework for all applications (Visual
Studio.NET) ()
19.Control tools can deal with database directly ()
20.We use the command Distinct in Select statement to not show repeated values
()
21.We use the command Count in Select statement to show Number of data in
column ()
22.The CoboBox tool have 2 valiues one is visible (DisplayMember) and one
unvisible (ValueMember) ()
second term - final 21
1st Secondary
Q2:Complet using words between bracts:
(Function – 2 – Dim – FilePath – Methods - Events)
Function GetDatafromExcelSheet have 2 parameter
Parameter FilePath in the function GetDatafromExcelSheet is the Excel file
Declaration function GetDatafromExcelSheet statrt by the word Function
To declare variables MyConnection and MyCommand using Dim
In the code window te menu Class Name show Events but Name Method show
Methods
Q3: mention the name for the following definitions
Name definitions
Class The Blueprint which create object from it and contain properties
and Methods which objects inherits
Object It is the basic item in the object oriented programming language
and created from class
Framework The VB.Net framework which provide design and running all ,Net
applications
SQL The programming language can deal with data base files and its
short word to (Structured Query Language)
Q4: Choose the correct answer:
1. The connection between VB.Net and Data Base
(DataAdapter – Command -Connection)
2. To open code window in VB.Net we press the key
(Name – F7 - Provider)
3. To change the name of lable1 tool we use the property
(Name – Text - Provider)
4. To change the text on the Button1 tool we use the property
(Name – Text - Provider)
second term - final 22
1st Secondary
Q5: From the code below find: (Important)
Function GetDataFromExcelSheet(ByVal FilePath As String, ByVal sql
As String) As DataTable
Dim MyConnection As New OleDb.OleDbConnection
Dim MyCommand As New OleDb.OleDbCommand
Dim da As New OleDb.OleDbDataAdapter
Dim dt As New DataTable
End Function
Function Name GetDataFromExcelSheet
Parameters Name FilePath & sql
Parameter Type String
The return value data type DataTable
FilePath contain the Excel file path on the storage media
Sql contain The Command which deal with data in the Excel file
We use the command Dim to declare the variables
We declare the functions
a. Variable Myconnection to open connection with data file
b. Variable Mycommand run the query to collect the data
c. Variable da convert data from Excel file to dt
d. Variable dt has a table to store data from Excel file
second term - final 23
1st Secondary
Q6: Chose from A what is suitable in B
A B
1 - DataTable A - Is one of SQL statment
2 - DataSet B - Source of data
3 - Select C - The connection between database and
visual basic
4 - Provider D - Is a class we can create variable from it in
the memory to store database
5 - DataSource E - Is a class we can create variable from it in
the memory to store database table
Answer
1–E 2–D 3–A 4–C 5–B
second term - final 24
1st Secondary
Q7
The folwing is a table contain the Exam result of some student,
What is the right Select statement to get:
1- All the in the table
d- Select * from Marks
e- Select All from Marks
f- Select ? from Marks
2- The Number of table aws
d) Select Sum (*) from Marks
e) Select Count (*) from Marks
f) Select Total from Marks
3- Just student Name
d) Select Name from Marks
e) Select * from Marks
f) Select Name ( Marks )
4- Student’s Nams and their total degree
d) Select Name , Total [Marks]
e) Select Name + Total from Marks
f) Select Name , Total from [Marks]
second term - final 25
1st Secondary
5- all records with condition total = 99
d) Select * from [Marks] Where Total=99
e) Select Total=99 from [Marks]
f) Select Total Where Marks =99
6- all Name and Total with condition total = 99
d) Select Name , Total = 99 from [Marks]
e) Select Name , Total from [Marks] Where Total=99
f) Select Name , Total Where Total=99
7- all Name and Total with condition total less 99
d) Select Name , Total < 99 from [Marks]
e) Select Name , Total from [Marks] Where Total < 99
f) Select Name , Total Where Total < 99
8- name and French degree under condition French degree more than 44
d) Select Name , French from [Marks] Where French >=44
e) Select Name , French Where French >=44
f) Select Name , French>=44 from [Marks]
9- Student name under condition Arabic degree equal 50
d) Select Name from [Marks] Where Arabic=50
e) Select Name from [Marks] Where Arabic (50)
f) Select Name , Arabic=50 from [Marks]
10- All student names which start with (M)
d) Select Name from Marks Where Name = ‘M%’
e) Select Name from Marks Where Name Like ‘M%’
f) Select Name (‘M%’) from Marks
11- Number of succeeding student wher pass degree is 75
d) Select Count (Name) from Marks Where Total >= 75
e) Select Count (Total >= 75) from Marks
f) Select Name , Count (Total >= 75) from Marks
12- All student names which end with (ed)
d) Select Name from Marks Where Name Like ‘ed%’
e) Select Name from Marks Where Name Like ‘%ed’
f) Select Name (‘_ed’) from Marks
second term - final 26
1st Secondary
Lesson 10
Q1:Compleet using words between bracts
(Private Sub – Try/Catch – Me - & - Dim – New DataTable – dt –twice)
To open Code windows for any control tool click twice on the tool in design mood
The Event in the code window start with Private Sub
In the command Dim dt As New DataTable , the variable name is dt and its
datatype is DataTable
The word Me refer to the current form
We use statement Try/Catch to prevent runtime errors
We use the symbol & to join many strings together to be one string
To declare variable we use the command Dim
Q2: Read the code and choose the correct result of using it
Me.lblDC.Text = dt.Rows (0).Item(2).Tostring
The Text property of the lblDC assign by the value of
1- The second row and first column in the table dt
2- The first row and second column in the table dt
3- The first row and third column in the table dt
(counting sta from 0)
second term - final 27
1st Secondary
Me.lblWR.Text = dt.Rows (2).Item(4).Tostring
The Text property of the lblWR assign by the value of
1- The second row and fourth column in the table dt
2- The theird row and fifth column in the table dt
(counting start from 0)
4- The second row and fifth column in the table dt
Lessons 11 – 13
Q1: Choose the right answer
1. Programming language used in the Arabic atlas project is (Visual J – Visual C –
Visual Basic .Net
2. (SelectedIndexChanged - SelectedIndex – Index) is the default Event for
ComboBox control
3. It is prefer the name of the button control start with (frm – btm – uro)
4. It is prefer the name of the label control start with (lbl – btm – cmb)
5. To use the variable in more than Event without errors, we should declare it in the (
Class – Control – Event)
second term - final 28
1st Secondary
6. If statement end with (Stop Sub – End If – Final If)
7. When we use If statement, if the condition is false so the program run the code
after (Then – Else – End Sub)
8. The code V = ComboBox1.SelectedItem mean
1- Put the ComboBox selected Item name in the variable V
2- Put the value in the Variable V in the ComboBox
Q2: Put and
1. VB.Net language not allow to change default control’s name ()
2. SelectedIndexChanged Event Test the selected item within the control
ComboBox ()
3. We use the Try/Catch statement to catch and handling with runtime error ()
4. The scope of use the variables and constants within the program is determined by
the place of the announcement ()
5. Me reserved word Me used in the code window to indicate the end of the Method
()
6. We can’t use the variable which we declared in the Class scope more than one time
in one method ()
7. Variable declaration start with the word Dim ()
second term - final 29
1st Secondary
8. VB.Net not allow declaration Variables without assignment value ()
9. VB.Net not allow declaration Constant without assignment value ()
10.There is many common properties for the major controls like Item property ()
11.Some code running by using the event click one time on the button control ()
12.To run the program in VB.Net press F4 ()
13.To add button to the program interface we click twice on it from ToolBox ()
14.In the assignment statement Me.WMediaPlayer.Visible =True. True is the
property and Visible is the value ()
15.Fourcolor property is used to adjust control face text color ()
Q3: Complete the following statements by suitable word between
brackets
( Class() – Button – Audio – Picture – Video – Name – Alfeaz )
1. Name is the common property between all control tools
2. Button control used to implement pre-written code when clicked
3. Alfeaz is the value in the assignment statement Me.btmplayVideo.Text=
“Alfeaz”
4. In the command Me.WMPlayer.Close() we use the property Close() to
stop the move
5. The file (Egypt.wmv) is a Video file
6. The file (Egypt.mp3) is a Audio file
7. The file (Egypt.png) is a Picture file
second term - final 30
1st Secondary
Answer Model Exam (1)
Q1: Complete the sentence with the suitable word between the
brackets:
(Command Text – Object – SQL – Form)
Form is the main object in VB.NET language it used to develop the tools
Command Text is variable MyCommand property, it stores the text data
SQL is a (structured Query Language) shortcut , it is a language dealing with
database files
Object is created from the specific class, it is basic building unit in programming
languages
Q2:Arrange the steps to bring data from data base to the control
tools
(3) Transfer data to the data table in the computer memory
( 1 ) Connect with the data base that contains the data to be collected
( 4 ) View the data by the Controls in the form
( 2 ) Collect data from a database stored on any storage medium
second term - final 31
1st Secondary
Q3: Match from Column A the suitable from Column B
A B
1 Variable A Used in opening a communication channel with data
sheet in Excel File
MyCommand
2 Variable B Variable dt has a data table saves the data that has
been brought from the Excel file
da
3 Variable C It execute the query which collect data from Excel
file
MyConnection
4 Variable D Convert data (data adapter) from the Excel file to
data table in the variable DT
dt
(4- D) (3- A) (2- B) (1 – C)
second term - final 32
1st Secondary
Answer Model Exam (2)
Q1 Read the code and then answer
Function GetDataFromExcelSheet(ByVal FilePath As String, ByVal sql As String) As DataTable
End Function
1- Function Name is: GetDataFromExcelSheet
2- Parameters Name are: FilePath & sql
3- Parameter Type is : String
4- The retuned value is DataTable
5- To end the function we must write: End Function
Q2: Put( ) OR( ):
1. Make the control property Visible as False mean make it Visible ()
2. We can create variable of type Data Table in the memory to store data collected
from data file ()
3. To create new project we chose New Project from the menu File ()
4. The ToolBox not contain the control Windows Media Player by default ()
5. We open connection channel between the programs written by VB.Net and Excel
file using MyCommand ()
second term - final 33
1st Secondary
Q3: chose the right answer after reading the code
Select Count Countries from Table1
1. Retrive Contries name from Table1
2. Retrive Number of Contries from Table1
3. Retrive Contries Data from Table1
second term - final 34