Post on 18-Jun-2020
1
1. What is the definition of a problem?
2. How to solve problems?
3. What is meant by Algorithm?
4. What is a Program testing?
5. What is Flowchart?
6. Define Visual Basic.NET?
7. Define programming language?
8. . Complete:
Shapes
Flow line
……………
……………
Process
……………
……………
……………
………..
Shapes'
name
……………
………..
Choose
events &
condition of
answer
Yes & No
……………
………
Used to
input &
output
Start &
End
Function
2
9. Correct the flowchart which represents adding two numbers:
Start
Result = n1 + n2
Read n1
Read n2
Output the result
End
3
10. The figure show chart for calculating the area and
circumference for a circle given the radius of the circle R:
A=3.14*R*R
C=2*3.14*R
START
END
OUTPUT A
OUTPUT C
READ R
11. The figure show chart for calculating the interest value for
balance with fixed interest rate.
Interest =balance*rate
END
Read name, balance, rate
Output
Name, balance, interest
Start
4
12- - Draw a flowchart for a program that will obtain exam scores
from the user. Determine whether the score is greater than or
equal 50 and display the message “ناجح ”.
13-Make the following statements in order:
( ) Program Testing.
( ) Performing step-by-step instructions (Algorithm).
( ) Problem Definition.
( ) Program Documentation.
( ) Program design.
14-State whether the following statements are true (√) or false (X) :
1. Flowcharts use symbols and lines with arrows to represent an
Algorithm. ( )
2. You can use any Geometric shape to represent Algorithms
when drawing flowcharts. ( )
3. Flowcharts can be drawn using software only and can’t be
drawn on paper. ( )
4.The flow of steps will always be from top to bottom or from
left to right. ( )
5
5. The rectangle symbol represents only on processing
operation. ( )
6. The flow of steps will always be from top to bottom or from
left to right. ( )
7. The symbol is used when a question has more than one
Alternative. ( )
8.Two paths (lines) should come out from the diamond .
( )
9. The line with an arrow (flow line) should be from left to right
or from top to bottom. ( )
10. The (Algorithm) is the first stage of Problem Solving. ( )
11-Flowcharts use standard symbols and lines to represent a
problem algorithm. ( )
12- The problem means that an objective or output is required
to reach. ( )
13- Preparing a cup of tea is an example of a problem. ( )
14- Problem solving is the steps, activities, and processes to be
done to reach an Output or objective. ( )
6
15- Flowcharts are schematic 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. ( )
17- The VB.net language is one of the high level languages. ( )
18- The VB.net language is one of Event Driven languages. ( )
19- The VB.net language is the only high level language. ( )
20- The VB.net language is considered a high level language
because it is easy to Learn. ( )
21- The VB.net language is used in producing Windows
applications and Web applications. ( )
22- The VB.net language is used in producing Web applications
only. ( )
23- The VB.net language can't be used in producing Windows
applications. ( )
24- Every Object is characterized by certain properties and
certain behaviour when a certain event occurs on it. ( )
7
25- Events and procedures which belong to any object in VB.net
language are called properties. ( )
26- The name, the size and colour of an object are all samples of
events that can occur to the object in VB.net language. ( )
27- The name, the size and colour of an object are all samples
of properties of some Objects in VB.net language. ( )
28- The Events are the commands and instructions which are
carried out when a certain procedure occurs to the object in
VB.net language. ( )
29- The procedures are the commands and instructions which
are carried out when a certain procedure occurs to the
object in VB.net language. ( )
30- Pressing click and D -click are samples of some events that
can occur to an object in VB.net language. ( )
31- Framework.net contains Compilers, libraries and runtime
environment. ( )
32- Compilers in Framework. Net are considered the
environment of runtime for applications which are produced
in VB.net language.( )
8
33- Compilers are programmes that translate commands and
instructions written by the programmer from the high level
language into machine language. ( )
34- Object oriented programming languages are the languages
which work through objects that carry out procedures when
a certain event occurs to them. ( )
35- All programming languages which carry out a group of
commands and instructions are considered as Event Driven
languages.( )
36- Visual Studio is considered IDE because it includes a group
of tools, elements and characteristics necessary to produce
applications. ( )
37- The function of the property RightToLeft of the Form is to
define the direction of Controls from right to left.( )
38- The function of the property RightToLeft of the Form is to
define the state of the Form on the screen in a position of
Maximizing or Minimizing. ( )
39- Setting the property ControlBox of the Form can control the
Form in a position of Maximizing during
programme.runtime.( )
40- The property"Name" is used in showing a certain Text in the
title bar of user window a name of the window.( )
9
41- The property Text is used in showing a certain text the title
bar of of user window. ( )
42- Setting some properties of the Form is applied to Controls
which are placed on the Form. ( )
43- The effect of setting the WindowState property of the form
appears only in runtime mode. ( )
44- You can change the location of Command Button on the
Form through Size property. ( )
45- You can change the location of Command Button on the
Form through Location property. ( )
46- Placing Controls automatically on the Form on the co-
ordinate (0-0) is in the middle of the Form.( )
47- You can change the size of Label manually if AutoSize=true.
( )
48- You can change the size of Label manually if AutoSize=
false. ( )
49-"Textbox control tool: is the only tool which has the
property passwordChart.( )
50- "Textbox control tool: is the only tool which has the
property AutoSize.( )
51- ListBox and ComboBox share in "Item " property.( )
10
52- ListBox and and ComboBox share in " Suggest " property.( )
53- GroupBox is the tool used in containg a group of controls,
these controls have the same function on the Form.( )
54- ListBox is the tool used in containg a group of controls,
these controls have the same function on the Form.( )
55- CheckBox can be used on the Form to choose the Gender of
student male or Female. ( )
56- Combobox is the control tool that allows the user to
choose one element of several elements in the smallest
possible space on the form window. ( )
Choose the appropriate answer to complete each phrase of the
following:
1- Steps, activities and procedures to be done to reach an
objective or an output - can be called:
a. problem definition b. problem c. problem solving
2- On drawing flowcharts we use:
a. standard symbols and lines
b. all geometric figures
c. one geometric figure
3- A set of procedures arranged logically for solving a specific
problem – can be called:
a. problem b. algorithm c. program testing
11
4- Making sure that the program is free of errors – can be called:
a. program testing b. program documentation
c. algorithm
5- Writing down all the steps taken to solve a problem errors –
can be called:
a. program documentation b. program testing
c. flowcharts
6- Problem-solving approach includes many terminologies, the
terminology that expresses the preparation of a cup juice is:
a. Flowchart b. algorithm c. problem
7- Problem-solving approach includes many of the
terminologies, the terminology that expresses the mathematical
problem is:
a. Algorithm b. problem c. program design
8- A schematic representation that depends on drawing some
standard symbols to clarify the order of procedures to solve a
problem can be called:
a. Problem b. algorithm c. flowchart
9- Object Oriented programming language depends on:
a- using Windows applications.
b- using Web applications.
c- objects in computer memory.
12
10- You can produce Windows applications or Web applications
by using:
a-Objects in computer memory b-VB.net language
d- Properties and Events
11- Characteristics which describe the object such as size, name
and colour are called:
a-Properties b-procedures c-Events
12- Click on Button is:
a-property b-procedure c-Event
13- Commands and instructions which we want to carry out are
called:
a-properties b-producers c-Events
14- The Properties term refers to:
a- Features that describe the object.
b- Events that can occur to the object.
c- Commands and instructions that are carried out.
15- The Events term refers to :
a- properties that describe the object.
b- Events that can occur to the object.
c- Commands and instructions that are carried out.
16- The Procedures term refers to:
a-properties that describe the object.
b-Events that can occur to the object.
d- Commands and instructions that are carried out.
13
17- libraries, Compilers and Environment of runtime of
applications are the most important components of:
a-Object Oriented. b-Event Driven.
c-Framework.net.
18- IDE is called:
a-Visual Basic.net b-Visual Studio. c-Framwork.net.
19- 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 ControlTools on the Form is
from Right to Left.
c- define the state of the window in a state of maximaizing or
minimaizing.
20-ControlBox property of the Form is helping to:
a- showing or hiding of Maximaizing Box.
b- control the appearance of the Form whether it is in aposition
of Minimaizing / Maximaizing / Normal.
c- control the appearance or disappearance of ControlBox in
the Form.
21-The used property in showing a certain Text on the titlebar
of a Form is :
a- Name b-Text c-FormBorderStyle
14
22-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
23- The effect of setting this property doesn't appear unless in
runtime mode (This property is):
a-FormBorderStyle b-WindowState c-RightToLeft
24- The property which is responsible for the size, shape and
effect of the Text font shown on the Button is :
a-Backcolor b-Forecolor c-Font
25- 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
26- 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
27- On inserting any ControlTool 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 ControlTool is different according to the size
of the Form
15
28- The size of Label is defined automatically on the Form if the
property is:
a-AutoSize = False b- BorderStyle= FixedSingle
c- AutoSize=True.
29- You can change the size of control "Label" manually if the
property is :
a- AutoSize = False- b- BorderStyle= FixedSingle
c- AutoSize=True-
30- The following properties belong to TextBox except for:
a-AutoSize b-MultiLine c-MaxLength
31- The Object TextBox is marked by one property :
a-AutoSize b-Name c-PasswordChart
32- The right value which can be used to set the PasswordChart
of the TextBox is :
a-Pw b-True c-*
33- The ListBox and ComboBox share in this property :
a-Suggest b-Item c-SelectionMode
34- The ControlTool which is used in containing a group of
controls that have the same function on the Form is:
a-ComboBox b-ListBox c-GroupBox
16
35- The Control tool which can be used on the Form to choose
Gender of the student "male"or "female" is:
a-Radio Button b-CheckBox c-TextBox
36- The ControlTool which can be used on the Form and allows
the user to choose more than one alternatives is :
a-RadioButton b-GroupBox c-CheckBox
37- The ControlTool which can be used on the Form and allows
the user to choose more than one item is :
a-RadioButton b-GroupBox c-CheckBox
38- The ControlTool which allows the user to choose one item
of 15 in the smallest possible area on the Form is:
a-ComboBox b-ListBox c-RadioBox
17
18
19
1. What is the definition of a problem?
The problem is defined as the objective or the specific output that we want to attain; through a sequence of steps and activities and, specific input.
2. How to solve problems?
o Problem Definition.
o Perform Algorithm.
o Program design.
o Program Testing.
o Program documentation.
3. What is meant by Algorithm?
is defined as group of logically arranged procedures
to be executed to attain a goal.(Flow Chart)
4. What is a Program testing?
Detecting errors and correct them.
5. What is Flowchart?
Flowchart is a diagram that uses standard graphical symbol
to make the steps required to solve problem.
6- visual Basic.net is just one of the languages in visual
studio.net package that includes other languages ,such as c#
and j#.
7- programming languages is is a set of rules symbols and
special words you can use to write instructions to make a
computer program.
20
8- Complete:
9- Correct the flowchart which represents adding two numbers:
Shapes
Flow
line
Decision
Process
Input / output
Read / Print
Terminal
Shapes
' name
Communi
cation
lines of
the
flowchart
Choose events
& condition of
answer
Yes & No
Input the
arithmetic
process
Used to
input &
output
Start &
End
Functi
on
Start
Result = n1 + n2
Read n1
Read n2
Output the result
End
21
10- The figure show chart for calculating the area and
circumference for a circle given the radius of the circle R:
A=3.14*R*R
C=2*3.14*R
START
END
OUTPUT A
OUTPUT C
READ R
11.The figure show chart for calculating the interest value for
balance with fixed interest rate.
Interest =balance*rate
END
Read name, balance, rate
Output
Name, balance, interest
Start
READ R
End
Output A
Output C
Start
A=3.14*R*R
C=2*3.14*R
Start
Start
Read, name, balance,
rate
END
Output name, balance
interest
Interest =balance*rate
22
12- - Draw a flowchart for a program that will obtain exam
scores from the user. Determine whether the score is greater
than or equal 50 and display the message “ناجح”.
First: Define the Problem.
Output: Print the word “ناجح”.
Input: The score X.
Solution: If the value of X is greater than or equal 50;
the word “ناجح” will be printed.
Algorithm Flowchart
1-Start
2- Enter the values of X
3- If X> =50 then
3-1 Print “ ناجح ”
4- End
Yes No
13-Make the following statements in order:
( 4 ) Program Testing.
( 2 ) Performing step-by-step instructions (Algorithm).
Start
Enter X
X>=50 "ناجح"Print
End
23
( 1 ) Problem Definition.
( 5 ) Program Documentation.
( 3 ) Program design.
14-State whether the following statements are true ( √ ) or false
( X )
1. Flowcharts use symbols and lines with arrows to represent an
Algorithm. ( √ )
2. You can use any Geometric shape to represent Algorithms
when drawing flowcharts. ( X )
3. Flowcharts can be drawn using software only and can’t be
drawn on paper. ( X )
4.The symbol is used to represent both the start and the
end. (√ (
5.The rectangle symbol represents only on processing
operation. ( X )
6. The flow of steps will always be from top to bottom or from
left to right. ( √ )
7. The symbol is used when a question has more than
one Alternative. ( √ )
8.Two paths (lines) should come out from the diamond .
( √ )
24
9.The line with an arrow (flow line) should be from left to right
or from top to bottom . ( X )
10. The (Algorithm) is the first stage of Problem Solving. ( X )
11-Flowcharts use standard symbols and lines to represent a
problem algorithm. ( √ )
12- The problem means that an objective or output is required
to reach. (√ )
13- Preparing a cup of tea is an example of a problem. (√ )
14- Problem solving is the steps, activities, and processes to be
done to reach an Output or objective. ( √ )
15- Flowcharts are schematic 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. ( √ )
17- The VB.net language is one of the high level languages. (√)
18- The VB.net language is one of Event Driven languages. (√)
19- The VB.net language is the only high level language. ( X )
20- The VB.net language is considered a high level language
because it is easy to Learn. ( √ )
25
21- The VB.net language is used in producing Windows
applications and Web applications. ( √ )
22- The VB.net language is used in producing Web applications
only. ( X )
23- The VB.net language can't be used in producing Windows
applications. ( X )
24- Every Object is characterized by certain properties and
certain behaviour when a certain event occurs on it. ( √ )
25- Events and procedures which belong to any object in VB.net
language are called properties. ( X )
26- The name, the size and colour of an object are all samples of
events that can occur to the object in VB.net language. ( X )
27- The name, the size and colour of an object are all samples
of properties of some Objects in VB.net language. ( √ )
28- The Events are the commands and instructions which are
carried out when a certain procedure occurs to the object in
VB.net language. ( X )
29- The procedures are the commands and instructions which
are carried out when a certain procedure occurs to the
object in VB.net language. ( X )
26
30- Pressing click and D -click are samples of some events that
can occur to an object in VB.net language. ( √ )
31- Framework.net contains Compilers, libraries and runtime
environment. ( √ )
32- Compilers in Framework. Net are considered the
environment of runtime for applications which are produced
in VB.net language.( X )
33- Compilers are programmes that translate commands and
instructions written by the programmer from the high level
language into machine language. ( √ )
34- Object oriented programming languages are the languages
which work through objects that carry out procedures when
a certain event occurs to them. ( √ )
35- All programming languages which carry out a group of
commands and instructions are considered as Event Driven
languages.( X )
36- Visual Studio is considered IDE because it includes a group
of tools, elements and characteristics necessary to produce
applications. (√ )
27
37- The function of the property RightToLeft of the Form is to
define the direction of Controls from right to left.( √ )
38- The function of the property RightToLeft of the Form is to
define the state of the Form on the screen in a position of
Maximizing or Minimizing. ( X )
39-Setting the property ControlBox of the Form can control the
Form in a position of Maximizing during
programme.runtime. (X)
40- The property"Name" is used in showing a certain Text in the
title bar of user window a name of the window.( X )
41- The property Text is used in showing a certain text the title
bar of of user window. ( √ )
42- Setting some properties of the Form is applied to Controls
which are placed on the Form. ( √ )
43- The effect of setting the WindowState property of the form
appears only in runtime mode. ( √ )
44- You can change the location of Command Button on the
Form through Size property. ( X )
45- You can change the location of Command Button on the
Form through Location property. ( √ )
28
46- Placing Controls automatically on the Form on the co-
ordinate (0-0) is in the middle of the Form.( X )
47- You can change the size of Label manually if AutoSize=true.
( X )
48- You can change the size of Label manually if AutoSize=
false. ( √ )
49-"Textbox control tool: is the only tool which has the
property passwordChart.( √ )
50- "Textbox control tool: is the only tool which has the
property AutoSize.( X )
51- ListBox and ComboBox share in "Item " property.( √ )
52- ListBox and and ComboBox share in " Suggest " property. (X)
53- GroupBox is the tool used in containg a group of controls,
these controls have the same function on the Form.( √ )
54- ListBox is the tool used in containg a group of controls,
these controls have the same function on the Form.( X )
55- CheckBox can be used on the Form to choose the Gender of
student male or Female. ( X )
56- Combobox is the control tool that allows the user to
choose one element of several elements in the smallest
possible space on the form window. ( √ )
29
Choose the appropriate answer to complete each phrase of the
following:
1- Steps, activities and procedures to be done to reach an
objective or an output - can be called:
a. problem definition b. problem c. problem solving
2- On drawing flowcharts we use:
a. standard symbols and lines b. all geometric figures
c. one geometric figure
3- A set of procedures arranged logically for solving a specific
problem – can be called:
a. problem b. algorithm c. program testing
4- Making sure that the program is free of errors – can be called:
a. program testing b. program documentation
c. algorithm
5- Writing down all the steps taken to solve a problem errors –
can be called:
a. program documentation b. program testing
c. flowcharts
6- Problem-solving approach includes many terminologies, the
terminology that expresses the preparation of a cup juice is:
a. Flowchart b. algorithm c. problem
7- Problem-solving approach includes many of the
terminologies, the terminology that expresses the mathematical
problem is:
a. Algorithm b. problem c. program design
30
8- A schematic representation that depends on drawing some
standard symbols to clarify the order of procedures to solve a
problem can be called:
a. Problem b. algorithm c. flowchart
9- Object Oriented programming language depends on:
a- using Windows applications.
b- using Web applications.
c- objects in computer memory.
10- You can produce Windows applications or Web applications
by using:
a-Objects in computer memory b-VB.net language
c- Properties and Events
11- Characteristics which describe the object such as size, name
and colour are called:
a-Properties b-procedures c-Events
12- Click on Button is:
a-property b-procedure c-Event
13- Commands and instructions which we want to carry out are
called:
a-properties b-producers c-Events
14- The Properties term refers to:
a-Features that describe the object.
b- Events that can occur to the object.
31
c-Commands and instructions that are carried out.
15- The Events term refers to :
a- properties that describe the object.
b- Events that can occur to the object.
c- Commands and instructions that are carried out.
16- The Procedures term refers to:
a-properties that describe the object.
b-Events that can occur to the object.
c-Commands and instructions that are carried out.
17- libraries, Compilers and Environment of runtime of
applications are the most important components of:
a-Object Oriented. b-Event Driven.
c-Framework.net.
18- IDE is called:
a-Visual Basic.net b-Visual Studio. c-Framwork.net.
19- 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 ControlTools on the Form is
from Right to Left.
c- define the state of the window in a state of maximaizing or
minimaizing.
20-ControlBox property of the Form is helping to:
a- showing or hiding of Maximaizing Box.
32
b- control the appearance of the Form whether it is in
aposition of Minimaizing / Maximaizing / Normal.
c- control the appearance or disappearance of ControlBox in
the Form.
21-The used property in showing a certain Text on the titlebar
of a Form is :
a- Name b-Text c-FormBorderStyle
22-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
23- The effect of setting this property doesn't appear unless in
runtime mode (This property is):
a-FormBorderStyle b-Window State c-RightToLeft
24- The property which is responsible for the size, shape and
effect of the Text font shown on the Button is :
a-Backcolor b-Forecolor c-Font
25- 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
26- 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
33
27- On inserting any ControlTool 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 ControlTool is different according to the size
of the Form
28- The size of Label is defined automatically on the Form if
the property is:
a-AutoSize = False b- BorderStyle= FixedSingle
c- AutoSize=True.
29- You can change the size of control "Label" manually if the
property is :
a- AutoSize = False b- BorderStyle= FixedSingle
c- AutoSize=True
30- The following properties belong to TextBox except for:
a-AutoSize b-MultiLine c-MaxLength
31- The Object TextBox is marked by one property :
a-AutoSize b-Name c-PasswordChar
32- The right value which can be used to set the PasswordChart
of the TextBox is :
a-Pw b-True c-*
33- The ListBox and ComboBox share in this property :
a-Suggest b-Item c-SelectionMode
34
34- The ControlTool which is used in containing a group of
controls that have the same function on the Form is:
a-ComboBox b-ListBox c-GroupBox
35- The Control tool which can be used on the Form to choose
Gender of the student "male"or "female" is:
a-Radio Button b-CheckBox c-TextBox
36- The ControlTool which can be used on the Form and allows
the user to choose more than one alternatives is :
a-RadioButton b-GroupBox c-CheckBox
37- The ControlTool which can be used on the Form and allows
the user to choose more than one item is :
a-RadioButton b-GroupBox c-CheckBox
38- The ControlTool which allows the user to choose one item
of 15 in the smallest possible area on the Form is:
a-ComboBox b-ListBox c-RadioBox
35
Red Button Label1.BackColor = Color.Red Green Button Label1.BackColor = Color. Green
Blue Button Label1.BackColor = Color. Blue
Show (Label1) Label1. Visible =True Hide (Label1) Label1. Visible = False
Property Value Lines of code Multiline True Textbox1. Multiline = True Font Type: Andalus
Size:20 Textbox1.Font = (“Andalus”,20)
Forecolor Blue Textbox1.Forecolor= color.Blue backcolor True Textbox1.BackColor= Color.Yellow
Number indicates
1 Name of the file where codes are saved 2 Name of the file where window is saved 3 The declaration of class: Its name Form1
4 Between the two lines is the place of typing codes for the class Form1.