مراجعة كمبيوتر - 3 ع - ترم 1 - ذاكرولي
مراجعة كمبيوتر - 3 ع - ترم 1 - ذاكرولي
2
Prepared & Designed by/ﻳﺎﲰﲔ ﺷﻌﻴﺐ.ﺃ-ﺟﺮﻭﺏ ﻓﺮﻳﻖ ﺃﺻﺪﻗﺎء ﺍﻟﻜﻤﺒﻴﻮﺗﺮ
2022 - 2023
1- Properties such as (size-colour- font) of the text written on
the program interface.
To construct a flowchart, we should consider the following: 2- Events such as click on a command button.
1. The flowchart should start with the Start symbol and end 3- Procedures, each one contains commands and instructions
with the End symbol. which are carried out when calling this procedure.
2. A,B,C are variable names .The variable refers to a memory So, the Visual Basic.net is considered:
storage that holds a value. Object oriented as its programs work through objects in
3. Equation: C =A+B, indicates the sum of the value of A, to computer Memory.
the value of B, and stores the result in C. Event Driven as commands and instructions are carried out as
4. Entering values in A and B is done by using the term soon as certain event occurs.
“Enter”, inside The language of visual basic .net and framework.Net:
a parallelogram, like “Read” or The Framework.Net provides the following:
“Input”. * Libraries through which we create the objects.
5. The sum equation is written inside the rectangle, * Runtime environment (called Runtime) in computer memory
as it represents an arithmetic operation. where Applications produced by the language of Visual
6. The output is expressed with a parallelogram Basic.net language work in.
using the term “Output”, we can also use another term like * Compilers which compile commands and instructions
“Print” or "output". written in Programming language into machine code which
Note that flow line shows the order of an Algorithm. the Computer deals with.
Chapter Two: Introduction to Visual Basic.net Visual Basic .Net IDE:
The programmer of Visual Basic.net needs Integrated
The language of visual Basic .net: Development Environment (IDE) which provides tools and
It is one of the high level programming languages and merits to the programmer that help him create applications
designed to be easy to learn as its commands and instructions ( windows – mobile – web…..). Visual Studio represents IDE.
use English language vocabulary and it can be used in many Form:
applications such as: The form is the interface which the user deals with through
1- Windows applications different controls such as Button, Textbox, label……etc.
2- Web applications Form window before putting controls Form window after
3- Mobile Application putting controls
Programming and computer memory:
Commands and instructions which are written in Visual Toolbox Window:
Basic.net enable you to create objects in computer memory It contains tools of controls which can be put on the Form and
and every object has: can be shown in categories in the following Figure
3
Prepared & Designed by/ﻳﺎﲰﲔ ﺷﻌﻴﺐ.ﺃ-ﺟﺮﻭﺏ ﻓﺮﻳﻖ ﺃﺻﺪﻗﺎء ﺍﻟﻜﻤﺒﻴﻮﺗﺮ
2022 - 2023
Some of these categories include: 10 WindowState
It defines the Window State of the Form
1. Common Controls (Maximizing, Minimizing or normal)
2. Menus & Toolbars
3. Properties Window - There are common properties among different Controls such
Each tool of the above Common Controls has a group of as (Name-Text – Forecolor – Backcolor - Right To
properties which can be adjusted through "Properties Window" Left…….etc.)
as shown in this Figure: - There are properties of the form, if they are set, they are
Solution Explorer applied to Controls which are placed on this Form such as font
There is a list of folders and files of the projects in this part as and ForeColor properties
shown in this Figure: - When you set some properties, the effect of setting appears
directly on the Form in design mode of the program
Chapter Three: Controls - There are some properties which their effect doesn't appear on
1. Form Controls until you set some other properties , for example the
The Form has many properties which share in defining the Right to Left Layout property doesn't work unless the value
form of program screen we want to create. Here are some Right to Left equals Yes
properties of the Form: - The default value of the property (Text) and the property
N Property Name Function (Name) is the same and it is (Form1)
1 Name Name of Form used in Code Window
- There are some properties which their effect doesn't appear on
The appeared Text on the title bar of the the Form or Controls until you run the program
2 Text - The other Controls may have the same properties mentioned
Window
3 Backcolor The background color of the Form. above, so they won't be repeated again when we studying these
The direction of Controls on the form other controls once more
4 Right to Left
Window From Right to Left. 2. Button
The layout of Controls on the Form from
5 Right to Left layout
right to left
It is one of Controls which can be placed on the Form. When
It controls the appearance or you click it, it does a certain task.
6 MinimizeBox disappearance of MinimizeBox of Form Some distinctive properties of Command Button:
Window Property
N Function
Name
It controls the appearance or
7 MaximizeBox disappearance of MaximizeBox of Form 1 Location The location of placing Button on the Form.
Window Defining the height and width of Button on the
2 Size
Form.
It controls the appearance or
8 ControlBox disappearance of ControlBox of Form 3 Text The appeared Text on the Button
Window 4 BackColor Choosing the backColor of the Button.
9 FormBorderStyle The Border style of Form Window
4
Prepared & Designed by/ﻳﺎﲰﲔ ﺷﻌﻴﺐ.ﺃ-ﺟﺮﻭﺏ ﻓﺮﻳﻖ ﺃﺻﺪﻗﺎء ﺍﻟﻜﻤﺒﻴﻮﺗﺮ
2022 - 2023
Defining (shape ,size and style) of the Text font 3 selectionMode It defines whether it is possible to choose
5 Font
appeared on the Button. one item or more shown in the ListBox.
Choosing the ForeColor to the appeared Text on
6 ForeColor
the Button 6. ComboBox
3. Label A ComboBox control displays a drop-down list from which
It is a tool used in showing a Text on the Form Window one item can be selected.
which can't be changed during program Runtime.
Some distinctive properties of the Label: Some distinctive properties of the ComboBox:
N Property Name Function N Property Name Function
The Size of the Label is defined automatically 1
A group of items which are shown in
1 AutoSize according to the written Text if the Value of Items
comboBox.
property equals true.
2 BorderStyle Choosing the Border Style of the Label 2 It is a source of suggested items to
AutoCompleteSource
select from.
4. TextBox It defines the method of list
3 AutoCompleteMode
completing process.
It is a tool used to insert (input) data from the user during
program run time. 7. GroupBox
Some distinctive properties of the Textbox: Is used to group other controls of same function together on
N Property Name Function the Form window.
Maxlength It defines the maximum number of letters Text – Forecolor - RightToLeft
1
which can be inserted in the TextBox
PasswordChar It defines a symbol used instead of written 8. RadioButton
2
text in case we have a password. The program user selects one alternative only.
Multiline Allows multiple lines within the text box Some distinctive properties of the RadioButton:
3
control tool. N Property Name Function
5-ListBox It shows whether RadioButton has been
1 Checked
It shows a list of items. chosen or not.
Some distinctive properties of ListBox:
2 Text It is the Text shown on RadioButton
N Property Name Function
1 Items A group of items shown in the ListBox 9. CheckBox
It defines whether the elements in the list It is used for placing some alternatives to enable the
2 Sorted
are sorted or not. user to select one CheckBox or more as shown in Figure:
5
Prepared & Designed by/ﻳﺎﲰﲔ ﺷﻌﻴﺐ.ﺃ-ﺟﺮﻭﺏ ﻓﺮﻳﻖ ﺃﺻﺪﻗﺎء ﺍﻟﻜﻤﺒﻴﻮﺗﺮ
2022 - 2023
Chapter Four: Code Window (1)A drop-down menu of (Class Names) that displays the
names of controls on the form.
Visual Basic.NET language provides a window through which (2)A drop-down menu of (Method Names) or events; associated
we can write instructions and codes of the program called with the item selected from the (Class Names) menu.
(code window) Event Handler
To open the (Code Window) of (Form1) perform the
following:
1. Make sure that the window Form is active
2. From the keyboard press (F7)
The Code window is displayed as shown in the following
figure:
V.Studio Object
Methods
J# C# Visual Basic
Events Procedures properties
.net
F4
F Key
F5 F7
7
Prepared & Designed by/ﻳﺎﲰﲔ ﺷﻌﻴﺐ.ﺃ-ﺟﺮﻭﺏ ﻓﺮﻳﻖ ﺃﺻﺪﻗﺎء ﺍﻟﻜﻤﺒﻴﻮﺗﺮ
2022 - 2023
Prep 3 Model answers of the student book (Communication and information technology)
Topic 1
Put (√ ) or ( X ) :
1 Flowcharts use standard symbols and lines to represent a problem ( )
algorithm.
2 You can use any Geometric shape to represent Algorithm when drawing ( )
flowcharts.
3 The symbol is used to represent start and end of flowchart ( )
4 The rectangle symbol is used to represent the data input ( )
operation.
5 The symbol is used to represent a decision process in flowcharts. ( )
6 The problem means that an objective or output is required to reach. ( )
7 Preparing a cup of tea is an example of a problem. ( )
8 Problem solving is the steps, activities, and processes to be done to reach ( )
an output or objective.
9 The program documentation is a set of procedures arranged logically for ( )
solving a specific problem.
10 The program testing is writing down all the steps taken to solve a ( )
problem.
11 Documenting the program means making sure that the program is free of ( )
errors.
12 Algorithm is a set of procedures arranged logically for solving a specific ( )
problem.
13 The program documentation is writing down all the steps taken to solve a ( )
problem.
14 Testing the program means making sure that the program is free of errors. ( )
15 Flowcharts are diagram representations which depend on drawing some ( )
standard symbols to clarify the order of procedures to solve a problem.
16 Flowcharts help to facilitate understanding of the problem, analyses and ( )
convert it to a program.
Topic 2
Put (√ ) or ( X ) :
1 The VB.net language is one of the high level languages. ( )
2 The VB.net language is one of Event Driven languages. ( )
3 The VB.net language is the only high level language. ( )
4 The VB.net language is considered a high level language because it is ( )
easy to learn.
5 The VB.net language is used in producing Windows applications and Web ( )
applications
6 The VB.net language is used in producing Web applications only. ( )
7 The VB.net language can't be used in producing Windows applications ( )
8 Every Object is characterized by certain properties and certain behavior ( )
when a certain event occurs on it. Enrichment
9 Events and procedures which belong to any object in VB.net language are ( )
called properties. Enrichment
10 The name, the size and color of an object are all samples of events that ( )
can occur to the object in VB.net language. Enrichment
11 The name, the size and color of an object are all samples of properties of ( )
some objects in VB.net language. Enrichment
12 The Events are the commands and instructions which are carried out ( )
when a certain procedure occurs to the object in VB.net language.
Enrichment
13 The procedures are the commands and instructions which are carried out ( )
when a certain procedure occurs to the object in VB.net language.
Enrichment
14 Pressing click and D-click are samples of some events that can occur to an ( )
object in VB.net language. Enrichment
15 Framework.net contains Compilers, libraries and runtime environment ( )
16 Compilers in Framework. Net are considered the environment of runtime ( )
for applications which are produced in VB.net language.
Topic 3
Put (√ ) or ( X ) :
1 The function of the property Right-To-Left of the Form is to define the ( )
direction of Controls from right to left.
2 The function of the property Right-To-Left of the Form is to define the ( )
state of the Form on the screen in a position of Maximizing or Minimizing.
3 Setting the property Control Box of the Form can control the Form in a ( )
position of Maximizing during program runtime.
4 The property "Name" is used in showing a certain Text in the title bar of ( )
user window a name of the window.
5 The property Text is used in showing a certain text the title bar of user ( )
window.
6 Setting some properties of the Form is applied to Controls which are ( )
placed on the Form.
7 The effect of setting the Window State property of the form appears only ( )
in runtime Mode
8 You can change the location of Command Button on the Form through ( )
Size property.
9 You can change the location of Command Button on the Form through ( )
Location property.
10 Placing Controls automatically on the Form on the co-ordinate (0-0) is in ( )
the middle of the Form.
11 You can change the size of Label manually if Auto Size=true ( )
12 You can change the size of Label manually if Auto Size=false ( )
13 "Textbox control tool: is the only tool which has the property password ( )
Chart
14 "Textbox control tool: is the only tool which has the property Auto Size ( )
15 List Box and Combo Box share in "Items" property. ( )
16 List Box and Combo Box share in " Suggest " property ( )
17 Group Box is the tool used in containg a group of controls, these controls ( )
have the same function on the Form.
18 List Box is the tool used in containing a group of controls, these controls ( )
have the same function on the Form.
19 Checkbox can be used on the Form to choose the Gender of student male ( )
or female.
20 Combo box is the control tool that allows the user to choose one element ( )
of several elements in the smallest possible space on the form window
Second: Choose the correct answer to complete each
statement:
1- The function of "Right to Left" property of the Form is:
a- define the direction of Control tools from Right to Left.
b- define whether the layout of Control Tools on the Form is from Right to Left.
c- define the state of the window in a state of maximizing or minimizing.
2- Control Box property of the Form is helping to:
a- showing or hiding of Maximizing Box.
b- Control the appearance of the Form whether it is in a position of Minimizing /
Maximizing /Normal.
C- Control the appearance or disappearance of Control Box in the Form.
3-The used property in showing a certain Text on the title bar of a Form is :
a- Name b-Text c-FormBorderStyle
4-On setting some properties of the Form, they are applied on Control Tools
Which are placed on the Form (one of them is):
a-Name b-Forecolor c-Text
5-The effect of setting this property doesn't appear unless in runtime mode (This
property is):
a-FormBorderStyle b-Window State c-Right-to-left
6-The property which is responsible for the size, shape and effect of the Text font
shown on the Button is :
a-Back color b-Forecolor c-Font
7-You can change the position of the Button on the Form through the following
processes except for:
A-drag and drop by the mouse
b-setting Size property
c-setting Location property
8-You can change the position of the Button on the Form through:
a-setting Location property
b-setting Size property
c-the eight squares around the Button
9-On inserting any Control Tool by pressing D-Click from the Toolbox on the Form ,
the appropriate place to be shown is :
a -coordinate (0, 0) b- the middle of the Form
c- the position of Control Tool is different according to the size of the Form
10-The size of Label is defined automatically on the Form if the property is:
a-Auto Size = False b- Border Style= Fixed Single c- Auto Size=True.
11-You can change the size of control "Label" manually if the property is :
a- Auto Size = False- b- Border Style= Fixed Single c- Auto Size=True-
12-The following properties belong to Textbox except for:
a-Auto Size b-Multiline c-Max Length
13-The Object Textbox is marked by one property:
a-Auto Size b-Name c-Password Chart
14-The right value which can be used to set the Password Chart of the Textbox is:
a-Pw b-True c-*
Topic 4
First question: Complete the table with numbers (1) to (5),
using the following screen to indicate what each number refers
to:
Number Refers to
).................... ( The name of the file where the Form interface design is saved.
Number Refers to
)1 ( …………………………………………………………………………………………………………………….
)2 ( …………………………………………………………………………………………………………………….
)3 ( …………………………………………………………………………………………………………………….
)4 ( …………………………………………………………………………………………………………………….
)5 ( …………………………………………………………………………………………………………………….
Number Refers to
)3 ( We can enter the code window more than one way, through:
Number Refers to
)1 ( …………………………………………………………………………………………………………………….
)2 ( …………………………………………………………………………………………………………………….
)3 ( …………………………………………………………………………………………………………………….
1-……………………………………………………………….
2-……………………………………………………………….
3-……………………………………………………………….
4-……………………………………………………………….
5-……………………………………………………………….
6-……………………………………………………………….
Topic 1
Put (√ ) or ( X ) :
1 Flowcharts use standard symbols and lines to represent a problem ( √ )
algorithm.
2 You can use any Geometric shape to represent Algorithm when drawing ( X )
flowcharts.
3 The symbol is used to represent start and end of flowchart ( √ )
4 The rectangle symbol is used to represent the data input ( X )
operation.
5 The symbol is used to represent a decision process in flowcharts. ( √ )
6 The problem means that an objective or output is required to reach. ( √ )
7 Preparing a cup of tea is an example of a problem. ( √ )
8 Problem solving is the steps, activities, and processes to be done to reach ( √ )
an output or objective.
9 The program documentation is a set of procedures arranged logically for ( X )
solving a specific problem.
10 The program testing is writing down all the steps taken to solve a ( X )
problem.
11 Documenting the program means making sure that the program is free of ( X )
errors.
12 Algorithm is a set of procedures arranged logically for solving a specific ( √ )
problem.
13 The program documentation is writing down all the steps taken to solve a ( √ )
problem.
14 Testing the program means making sure that the program is free of errors. ( √ )
15 Flowcharts are diagram representations which depend on drawing some ( √ )
standard symbols to clarify the order of procedures to solve a problem.
16 Flowcharts help to facilitate understanding of the problem, analyses and ( √ )
convert it to a program.
Topic 2
Put (√ ) or ( X ) :
1 The VB.net language is one of the high level languages. ( √ )
2 The VB.net language is one of Event Driven languages. ( √ )
3 The VB.net language is the only high level language. ( X )
4 The VB.net language is considered a high level language because it is ( √ )
easy to learn.
5 The VB.net language is used in producing Windows applications and Web ( √ )
applications
6 The VB.net language is used in producing Web applications only. ( X )
7 The VB.net language can't be used in producing Windows applications ( X )
8 Every Object is characterized by certain properties and certain behavior ( √ )
when a certain event occurs on it. Enrichment
9 Events and procedures which belong to any object in VB.net language are ( X )
called properties. Enrichment
10 The name, the size and color of an object are all samples of events that ( X )
can occur to the object in VB.net language. Enrichment
11 The name, the size and color of an object are all samples of properties of ( √ )
some objects in VB.net language. Enrichment
12 The Events are the commands and instructions which are carried out ( X )
when a certain procedure occurs to the object in VB.net language.
Enrichment
13 The procedures are the commands and instructions which are carried out ( √ )
when a certain procedure occurs to the object in VB.net language.
Enrichment
14 Pressing click and D-click are samples of some events that can occur to an ( √ )
object in VB.net language. Enrichment
15 Framework.net contains Compilers, libraries and runtime environment ( √ )
16 Compilers in Framework. Net are considered the environment of runtime ( X )
for applications which are produced in VB.net language.
Topic 3
Put (√ ) or ( X ) :
1 The function of the property Right-To-Left of the Form is to define the ( √ )
direction of Controls from right to left.
2 The function of the property Right-To-Left of the Form is to define the ( X )
state of the Form on the screen in a position of Maximizing or Minimizing.
3 Setting the property Control Box of the Form can control the Form in a ( X )
position of Maximizing during program runtime.
4 The property "Name" is used in showing a certain Text in the title bar of ( X )
user window a name of the window.
5 The property Text is used in showing a certain text the title bar of user ( √ )
window.
6 Setting some properties of the Form is applied to Controls which are ( √ )
placed on the Form.
7 The effect of setting the Window State property of the form appears only ( √ )
in runtime Mode
8 You can change the location of Command Button on the Form through ( X )
Size property.
9 You can change the location of Command Button on the Form through ( √ )
Location property.
10 Placing Controls automatically on the Form on the co-ordinate (0-0) is in ( X )
the middle of the Form.
11 You can change the size of Label manually if Auto Size=true ( X )
12 You can change the size of Label manually if Auto Size=false ( √ )
13 "Textbox control tool: is the only tool which has the property password ( √ )
Chart
14 "Textbox control tool: is the only tool which has the property Auto Size ( X )
15 List Box and Combo Box share in "Items" property. ( √ )
16 List Box and Combo Box share in " Suggest " property ( X )
17 Group Box is the tool used in containg a group of controls, these controls ( √ )
have the same function on the Form.
18 List Box is the tool used in containing a group of controls, these controls ( X )
have the same function on the Form.
19 Checkbox can be used on the Form to choose the Gender of student male ( X )
or female.
20 Combo box is the control tool that allows the user to choose one element ( √ )
of several elements in the smallest possible space on the form window
Second: Choose the correct answer to complete each
statement:
1- The function of "Right to Left" property of the Form is:
a- define the direction of Control tools from Right to Left.
b- define whether the layout of Control Tools on the Form is from Right to Left.
c- define the state of the window in a state of maximizing or minimizing.
2- Control Box property of the Form is helping to:
a- showing or hiding of Maximizing Box.
b- Control the appearance of the Form whether it is in a position of Minimizing /
Maximizing /Normal.
C- Control the appearance or disappearance of Control Box in the Form.
3-The used property in showing a certain Text on the title bar of a Form is :
a- Name b-Text c-FormBorderStyle
4-On setting some properties of the Form, they are applied on Control Tools
Which are placed on the Form (one of them is):
a-Name b-Forecolor c-Text
5-The effect of setting this property doesn't appear unless in runtime mode (This
property is):
a-FormBorderStyle b-Window State c-Right-to-left
6-The property which is responsible for the size, shape and effect of the Text font
shown on the Button is :
a-Back color b-Forecolor c-Font
7-You can change the position of the Button on the Form through the following
processes except for:
A-drag and drop by the mouse
b-setting Size property
c-setting Location property
8-You can change the position of the Button on the Form through:
a-setting Location property
b-setting Size property
c-the eight squares around the Button
9-On inserting any Control Tool by pressing D-Click from the Toolbox on the Form ,
the appropriate place to be shown is :
a -coordinate (0, 0) b- the middle of the Form
c- the position of Control Tool is different according to the size of the Form
10-The size of Label is defined automatically on the Form if the property is:
a-Auto Size = False b- Border Style= Fixed Single c- Auto Size=True.
11-You can change the size of control "Label" manually if the property is :
a- Auto Size = False- b- Border Style= Fixed Single c- Auto Size=True-
12-The following properties belong to Textbox except for:
a-Auto Size b-Multiline c-Max Length
13-The Object Textbox is marked by one property:
a-Auto Size b-Name c-Password Chart
14-The right value which can be used to set the Password Chart of the Textbox is:
a-Pw b-True c-*
Topic 4
First question: Complete the table with numbers (1) to (5),
using the following screen to indicate what each number refers
to:
Number Refers to
) 2 ( The name of the file where the Form interface design is saved.
Number Refers to
)2 ( The name of the file where the Form interface design is saved.
Number Refers to
)3 ( We can enter the code window more than one way, through:
Number Refers to
- Click
1 - Procedure name
2- End of the procedure
3 - Reason for calling the procedure
4- Where to write the code
5- declaring a class called frmsquare
6- End of class