1
Computer Net Revision
3rd
prep First term
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
Computer Net Revision
3rd
prep First term
9. . Correct the flowchart which represents adding two numbers:
Start
Result = n1 + n2
Read n1
Read n2
Output the result
End
3
Computer Net Revision
3rd
prep First term
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
Computer Net Revision
3rd
prep First term
5
Computer Net Revision
3rd
prep First term
6
Computer Net Revision
3rd
prep First term
7
Computer Net Revision
3rd
prep First term
6 - 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
.”ناجح“
7-Make the following statements in order:
( ) Program Testing.
( ) Performing step-by-step instructions (Algorithm).
( ) Problem Definition.
( ) Program Documentation.
( ) Program design.
8
Computer Net Revision
3rd
prep First term
Put True (√ ) or False (×) 1-The flowchart is an important tool for documenting program. ( )
2-The first step to problem solving is the program testing and correct
errors. ( )
3- The natural direction of the processes and data in flowcharts are
from left to right and from top to bottom. ( )
4-The symbol (input / output) is used for processing. ( )
5-The terminal symbol represents input and output operations in flow
chart. ( )
6-The design of the program on the computer of the stages of solving
the problem. ( )
7-Flowcharts use symbols and lines with arrows to represent an Algorithm.( )
8- You can use any Geometric shape to represent Algorithms when drawing flowcharts. ( )
9- Flowcharts can be drawn using software only and can’t be drawn. ( )
10- The symbol is used to represent both the start and the end. ( )
11- The rectangle symbol represents only one processing operation. ( )
12- The flow of steps will always be from top to bottom or from left to right.
( )
9
Computer Net Revision
3rd
prep First term
13- The symbol is used when a question has more than one
alternative.( )
14- The (Algorithm) is the first stage of Problem Solving. ( )
15- The line with an arrow (flow line) should be from left to right or
from top to bottom. ( )
16- Two paths (lines)should come out from the diamond symbol.
( )
17- In the visual basic.Net language the object belongs to certain class.
( )
18- The class is created from the object. ( )
19- The term ( IDE ) refers to Introduction Development Environment.( )
20- The computer cannot understand a program which written in one of
the programming languages. ( )
21- We can’t draw any control on form. ( )
22- The properties window display names of the project files. ( )
23- The Framework provides environment to design and run for .Net
applications. ( )
24- We can’t change the name of the project which already written after
its creation. ( )
10
Computer Net Revision
3rd
prep First term
25- Some (Properties) are not effective unless other (Properties) are
adjusted first . ( )
26- When you create a new (Project) a (Form) window is added to work
with. ( )
27- There are no common (Properties) between one (control) and
another. ( )
28- A value should be assigned to any (Property). ( )
29- You can modify the value of a property assigned to a (Control)
through the (Toolbox) . ( )
30- The value of the (Property) Size is 98;108 means that the width is
108 and, the height is 98 . ( )
31- Radio Buttons are used when the user has the possibility to choose
more than one alternative. ( )
32- User can not choose any item in the control (CheckBox) . ( )
33- The value formed from creating an object ; is like font property.
( )
34- When you adjust the value of the Text property of the control, the
effect doesn’t appear immediately in design mode. ( )
35- The properties window is the place of writing code. ( )
36- To open the code window, from the View menu select Code. ( )
11
Computer Net Revision
3rd
prep First term
37- When you create a new project , a new form is automatically added
to work with. ( )
38- The drop-down ( class Name ) menu displays the names of the
controls on the form window. ( )
39- The ( MaxLength ) property specifies the maximum number of
characters that user can write in the ( TextBox ). ( )
40- The assigned value for a property ( Text and Name ) for the first
Form window is the “Form”. ( )
41- btnSum.Enabled= False, hides the btnSum control during the
program run-time. ( )
42- we can open the Code window through the Solution Explorer
window. ( )
43- In the visual Basic .Net the object has properties , method and
events. ( )
44- The property ( BorderStyle) used to determine the border outline of
the Form’s window. ( )
45- To show or hide control ComboBox we can use property Visible. ( )
46- To determine the background color of the control use property
Image. ( )
12
Computer Net Revision
3rd
prep First term
47- ObjectName . Method = Value ( )
48- To control text appearing on the face of the control use property
Text . ( )
49- To start Debugging from the keyboard press the F7 Key. ( )
50- The Code window is the place of writing code. ( )
13
Computer Net Revision
3rd
prep First term
Complete the following statements:
1- The symbol ……... is used to compare between two values.
2- ……………….. Is a diagram that uses standard graphical symbols to
illustrate the sequence of steps required for solving a problem.
3- ………………….. Is a group of logically arranged procedures to be executed
to attain a goal?
4- The names of data in the computer memory called …………………………. .
5- …………………….. Is very important in program documentation.
6- The flow lines show the exact order of an flowchart are from ……………….
to ……………………
7- The symbol ………………….. Is used to represent both the start and the
end in the flowchart.
8- …………………. means attain to an objective or an output through a
sequence of steps and activities.
9- To represent the outputs in the flowchart, use (……………..) or
(……………..).
10- The symbol ……………… used to The start and the end.
14
Computer Net Revision
3rd
prep First term
Complete the sentences with the following:
Object - Class –Visual Studio – .NET framework – Programming
language – Form.
1- ……………………………….. is used in the development, and design of
(Desktop application) - (Web application) – (Mobile application).
2- Through ………………………………, Instructions, and commands are
written according to certain rules; and then translated to machine
language.
3- ………………………………..provides an environment , that enables
developers to design and execute (.NET applications).
4- ………………………………..is defined as: The basic constructive element in
Object Oriented Programming; it is created from a defined class.
5- The blueprint, from which the individual objects are created; is called
………………………………..
15
Computer Net Revision
3rd
prep First term
Complete the following statements:
1- The…………. Is one of the controls ,that used to group other controls
of same function together on the form window.
2- The property ………………. Is used to display the image in the
background of the control.
3- The ………………… is one of the controls , that used to select one
option from a group of options.
4- The property …………………. Determine the foreground color for the
text on the GroupBox ( Font color ).
5- A………………. is one of the controls, that used to select one or more
options.
6- The property …………………. Indicates if the ( RadioButton ) has been
selected or not.
16
Computer Net Revision
3rd
prep First term
Complete the sentences with the following:
( Text - Code Window – Click – Double Click – Event Handler
F4 – F7 – F5 - Visible – Multiline – abstract – Enabled )
1- The…………….. is a place to write instructions and codes using Visual
Basic . Net language.
2- The property ………………. Control in the text appearing on the face of
the control .
3- To open the properties window , From the keyboard press the…………
4- From types of values that are assigned to properties …………………………
5- The quickest way to open the code window of a control on the
default event for this control click it ………………………..
6- Set the value of the ……………… property to False , to hide the control.
7- ……………… Is the procedure called into action when an event occurs.
17
Computer Net Revision
3rd
prep First term
Choose the correct answer:
1- Any of the following symbols is wrong:
a) b) c) d)
2-The symbol, which indicates the process is:
a) b ) c) d)
3-………………. Is used to express a comparison or choice.
(Decision– Flow line – Input / output)
4-……………… means a store in the computer memory that has a certain title and its
value changes during program.
(Variable – Assignment Statement – Algorithm)
5- …………….. means reaching a specified target using given inputs.
(Problem – Problem Solving – Flow line)
6- …………… Symbol is used to connect a shape to another in the flowchart.
( – – )
7- To represent data input in the flowcharts, use ……………. Or ………… in accordance
With the nature of the problem.
(Process – Input /output – All the previous)
Start Stop
True
False
C=Num1*Num 2
Start
18
Computer Net Revision
3rd
prep First term
19
Computer Net Revision
3rd
prep First term
20
Computer Net Revision
3rd
prep First term
21
Computer Net Revision
3rd
prep First term
22
Computer Net Revision
3rd
prep First term
23
Computer Net Revision
3rd
prep First term
24
Computer Net Revision
3rd
prep First term
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.
25
Computer Net Revision
3rd
prep First term
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.
26
Computer Net Revision
3rd
prep First term
8- Complete:
9- Correct the flowchart which represents adding two
numbers:
Shapes
Flow line
Decision
Process
Input / output
Read / Print
Terminal
Shapes'
name
Communica
tion lines of
the
flowchart
Choose events &
condition of
answer
Yes & No
Input the
arithmetic
process
Used to
input & output
Start &
End
Function
Start
Result = n1 + n2
Read n1
Read n2
Output the result
End
27
Computer Net Revision
3rd
prep First term
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
28
Computer Net Revision
3rd
prep First term
29
Computer Net Revision
3rd
prep First term
30
Computer Net Revision
3rd
prep First term
31
Computer Net Revision
3rd
prep First term
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
Start
Enter X
X>=50 "ناجح"Print
End
32
Computer Net Revision
3rd
prep First term
13-Make the following statements in order:
( 4 ) Program Testing.
( 2 ) Performing step-by-step instructions (Algorithm).
( 1 ) Problem Definition.
( 5 ) Program Documentation.
( 3 ) Program design.
33
Computer Net Revision
3rd
prep First term
Put True (√ ) or False (×)
1- ( √ ) 2- ( X ) 3- (√ ) 4- ( X ) 5- ( X )
6- (√ ) 7- (√ ) 8- ( X ) 9- ( X ) 10- ( √ )
11-( X ) 12- (√ ) 13- (√ ) 14- ( X ) 15- ( X )
16- (√ ) 17- (√ ) 18- ( X ) 19- (√ ) 20- ( X )
21- ( X ) 22- ( X ) 23- (√ ) 24- ( X ) 25- ( √ )
26- (√ ) 27- ( X ) 28- (√ ) 29- ( X ) 30- ( X )
31- ( X ) 32- ( X ) 33- (√ ) 34- ( X ) 35- ( X )
36- (√) 37- (√ ) 38- (√ ) 39- (√ ) 40- ( X )
41- ( X ) 42- ( √ ) 43- ( √ ) 44- ( X ) 45- (√ )
46- ( X ) 47- ( X ) 48- (√ ) 49- ( X ) 50- ( √ )
34
Computer Net Revision
3rd
prep First term
Complete the following statements:
1- 2- Flowchart 3- Algorithm
4- Variables 5- Flowchart 6- Top to Bottom
7- Terminal 8- Problem Solving 9- Output / Print
10-
Complete the sentences with the following:
1- Visual Studio
2- Programming language
3- .Net Framework
4- Object
5- Class
35
Computer Net Revision
3rd
prep First term
Complete the following statements:
1- GroupBox 2- BackgroundImage 3- RadioButton
4- ForeColor 5- CheckBox 6- Checked
Complete the sentences with the following:
1- Code Window 2- Text 3- F7 4- abstract
5- Double Click 6- Visible 7- Event Handler
36
Computer Net Revision
3rd
prep First term
Choose the correct answer:
1-
2-
3- Decision
4- Variable
5- Problem Solving
6-
7- All the previous
Second question:
1- a) RadioButton
2- b) checkbox
3- a) ListBox
4- c) projects
5- d) F5
Stop
True
False
37
Computer Net Revision
3rd
prep First term
First : Write in the table below what the following numbers
indicate.
Number
indicates
1 Form Window 2 Solution Explorer 3 Properties Window 4 ToolBox
Second: In the following ( Add New Item) window, what the
following numbers indicate ?
Number
indicates
1 Name of project 2 Template in creating the form window 3 Name of the suggest form window from VB
38
Computer Net Revision
3rd
prep First term
Third: Refer to the following figure then , explain what the
following numbers indicate ?
What is the benefit of this window?
Number 1 indicates: Name of the project When creating the
project.
Number 2 indicates: Solution Name in the project which be
saved
Number 3 indicates: The location of selecting one of the
variable storage media on your computer.
Fourth: In the displayed (Solution Explorer) window what the
following numbers indicate?
Number
indicates
1 Solution Name 2 Name of the first project 3 The first project files and folders 4 Name of the second project
39
Computer Net Revision
3rd
prep First term
Fourth question:
1- Auto Size
2- Right to left
3- ShowIn Taskbar and Checked
Number
control
1 Label 2 TextBox 3 Label 4 TextBox 5 Button 6 Label
40
Computer Net Revision
3rd
prep First term
First question:
Second question:
Red Button Label1.BackColor = Color.Red Green Button
Label1.BackColor = Color. Green
Blue Button Label1.BackColor = Color. Blue
Third question:
Show (Label1)
Label1. Visible =True
Hide (Label1)
Label1. Visible = False
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.
41
Computer Net Revision
3rd
prep First term
Fourth question:
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