Professional Documents
Culture Documents
اسئلة تالته بالاجابات لغات تيرم اول
اسئلة تالته بالاجابات لغات تيرم اول
1
Royal International
Computer Revision sheet (Prep.3) First term Language School
31- The natural direction of the processes and data in flowcharts are from left to right and
from top to bottom. (√ )
1- Write the all steps that have been taken to solve the problem are called a stage - - - - - - - -
a- The documentation.
b- Design the program.
c- Program testing.
2- Are represented by the term Sum = A + B in the Flowchart through the Figure …………..
A)
B)
C)
Start
3- In the following flow chart:
M=0
False
M <= 3
True M=M+1
Print M
End
(The number of iterations) to print the value of (M) is……………………….
a) 2 b) 3 c) 4
4- In the previous question the value of (M) after the end of the repetitive loop equals ……..
a) 2 b) 3 c) 4
5- Specification and meal preparation required and determine the available data is………..
a) Problem definition.
b) Algorithm.
c) Flow Chart.
2
Royal International
Computer Revision sheet (Prep.3) First term Language School
6- The Flowchart for resolving the problem of printing the numbers from 1 to 11 contain…..
a) Sequential
b) Branching
c) Looping
7- View steps to resolve the problem of agreed forms of geometry called……….
a- Flowchart b- Algorithm c- Interface
8- Any of the following forms of decision in the Flowchart ……..
a)
b)
c)
9- …………… is used to express a comparison or choice.
(Decision – Flow line – Input / Output)
10- ………….. means a store the computer memory that has a certain title and its value
changes during program.
(Assignment Statement - Variable – Algorithm)
11- …………. Is a set of logically ordered steps which are applied for achieving the required
target by using certain inputs.
(Assignment Statement - Variable – Algorithm)
12- ………… means reaching a specified target using given inputs
(Problem - Problem solving – Algorithm)
13- Is used to convert the flowchart into a program that the computer can understand.
(Programming language - Problem solving – Algorithm)
Q.3-The Figure shows a flow chart for calculating the area and circumference for a
circle ,given: the radius of the circle R
A= 3.14 * R * R
START
C= 2 * 3.14 * R
READ R
START
END A= 3.14 * R * R
OUTPUT A C= 2 * 3.14 * R
OUTPUT C OUTPUT A
READ R OUTPUT C
END
3
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.4: Write down the Algorithm, and draw a flowchart that will calculate any one of
these operations (Sum, Product or Subtract) of two numbers entered by user and display
the result.
Algorithm flowchart
Start
1- Start
Enter A, B
2- Enter A, B
3- Sum = A + B Sum = A + B
4- Product = A * B
Product = A * B
5- Subtract = A - B
Subtract = A - B
6- Print Sum, Product and Subtract
Print Sum, Product
7- End and Subtract
End
4
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.5: Write the solution steps and complete the drawn flowchart to calculate the sum of
three numbers A, B, C, then calculate Sum square and finally calculate Numbers
squares.
Bearing in mind that the equation of the sum is: Sum = A + B + C
Sum square is: DS = (A+B+C)2
Numbers squares is: Ds2 = (A)2 + (B)2 + (C)2
Algorithm flowchart
1- Start
Start
2- Read A, B and C
Read A, B and C
3- Sum = A + B + C
Sum = A + B + C
4- DS = (A+B+C)2
DS = (A+B+C)2
5- Ds2 = (A)2 + (B)2 + (C)2
Ds2 = (A)2 + (B)2 + (C)2
6- Print Sum
9- End
Print Ds2
End
5
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.6: Write down the Algorithm, and draw a flowchart that will calculate the Average of
the total degrees of a student.
Bearing in mind that the equation of the Average is:
Average = (A+E+H+M+S+C)/6.
Algorithm flowchart
1- START START
2- Read A, E, H, M, S and C
Read A, E, H, M, S and C
3- Average = (A+E+H+M+S+C)/6
5- END
Print Average
END
6
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.7: In the following table; type the number in front of each command that refers to its
correct place in the “Flowchart” to determine if the input number is (even or odd)
5
(2) Is res ≠ 0
1
(3) Output "number is odd"
No
2 4
Yes (4) Output "number is even"
7
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.8: The Figure shows a flow chart for calculating the division of two numbers
1 Read number1 4
1
2 is number2=0
6
3 Print "not defined"
Yes
4 Start 2 3
No
5 End
8
6 Read number2
7
7 Output the result
8 result=number1/number2 5
8
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.10: The Figure shows a flow chart to find the maximum number among two numbers
.In the case of equality output the message "equal"
Start
IS A=B
Read A, B
No
Yes
IS A=B
IS A > B Output
No
IS A > B "equal"
Yes
Output "equal"
Output B Output A
Read A,B
End
Output B
9
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.11: The Figure shows a flow chart that will print even integer numbers from 2 and 10.
1 N=N+2
Start
6
2 N > 10
3 Sum = 0
4
4 Sum = Sum + N 1
No
2
5 Print Sum
Yes
5
6 N=2
End
10
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.12:
a) Draw a flowchart to print out even numbers from 2 to 10.
b) Draw a flowchart to print out the multiplication table for any number.
The Algorithm The Flowchart
1- Start Start
2- Enter N
3- J=1 Enter N
4- If J<=12 Then
J=1
4-1 Print J*N
4-2 J=J+1 False
J =< 12
4-3 Go To step(4)
True
5 End
Print J*N
J=J+1 End
11
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q1 3: A) type the value of the variable after the out of the loop iteration:
Start
N=1
False
N =< 12
True N=N+1
Print N*3
End
13
The value of the variable N = ………………
B) Type the value of the variable after the out of the loop iteration:
Start
M=2
False
M =< 10
True M=M+2
End
Print M*3
12
Royal International
Computer Revision sheet (Prep.3) First term Language School
C) Type the value of the variable after the out of the loop iteration:
Start
N=1
Sum = 0
Sum = Sum + N
N=N+2
No
N > 10
Yes
Print Sum
End
13
Royal International
Computer Revision sheet (Prep.3) First term Language School
3- ……………..
Decision Symbol is used for comparing two values.
Process
4- …………….. Symbol is used when writing the arithmetic operation.
5- Problem Solving Is an aim or output which is needed to be achieved through applying a
set of steps in a certain order.
6- Flowchart facilitates converting the steps of a problem solving in a program through one
of the programming languages.
7- To represent the outputs in the flowchart, use (Output) or (Print).
8- Define the Problem is specify the required output and available input and processing the
equations.
9- Problem means attain to objective or an output through a sequence of steps and activities.
10- In data the right side of the equation contains the value which needs to store.
Q15: Complete the following steps to get the result of dividing two numbers:
1- Start
2- Enter N1, N2
3- If N2 = 0 Then
3-1 Print Unknown
3-2 Go to step 5
4 – Else
4-1 R = N1 / N2
4-2 Print R
5 - End
Q.16: Re-arrange the following steps for problems solving:
• Design the program on computer. ( 3 )
• Program Documentation. ( 5 )
• Test the program validity and correct errors. ( 4 )
• Define the Problem. ( 1 )
• Prepare the Algorithmic solving steps. ( 2 )
14
Royal International
Computer Revision sheet (Prep.3) First term Language School
1- ( - - )
2- ( - - )
3- ( - - )
15
Royal International
Computer Revision sheet (Prep.3) First term Language School
Start
Read A, B, C
Yes No Yes No
A>C B>A B>C
No
Yes
Print A
Print C
Print B
End
Q.21: Complete the following flowchart to read three side’s length of a triangle “B”, “C” and
“D” then find perimeter of triangle.
Bearing in mind that the equation of the perimeter is: P = B + C + D
Start
Input B, C, D
P=B+C+D
Print “P”
End
16
Royal International
Computer Revision sheet (Prep.3) First term Language School
Input “F”
Print “C”
End
2. Programming Languages is asset of logically ordered steps which are applied to achieve
the required aim
… Algorithm …………………………………………………..
4. The data of a problem with previously known outputs used for detecting errors in the
Program Documentation
Testing the program …………………………………………………..
17
Royal International
Computer Revision sheet (Prep.3) First term Language School
2 H=R+2
3 Read N1, N2
4 Start
5 Output Sum
18
Royal International
Computer Revision sheet (Prep.3) First term Language School
H=H+1
Yes
Print H Is H < 5
No
End
Q.28: Complete the following flowchart which represents entering two numbers, then
dividing and representing the result.
No
Start …………..
Read N1 Read N2 …………..
N2=0 …………….
R = N1/N2 Print R
Yes
Print "Unknown
Unknown"
Unknown
End
19
Royal International
Computer Revision sheet (Prep.3) First term Language School
Start Start
Result = N1 + N2 Input N1
Input N1 Input N2
Result = N1 + N2
Input N2
Output Result
Output Result
End
End
Q.30:: Draw a flowchart to calculate the sum of odd numbers in the sequence
Sum = 1 + 3 + 5 + ……….. 25 Start
N=1
Sum = 0
Sum = Sum + N
N=N+2
No
N > 25
Yes
Print Sum
End
20
Royal International
Computer Revision sheet (Prep.3) First term Language School
Chapter 2
Question 1: Put (√) or (x):
1- Visual Basic language feature is not Object orientated Programming. (x)
2- Visual Basic language is used to create Web applications or Windows applications. (√)
3- Using the programming language is written orders and instructions in the English language
that the computer can handled directly. (x)
4- The example of Windows applications Notepad program. (√)
5- Clicking on one of the buttons so-called call property. (x)
6- Object it is the blueprint, from which the individual class is created. (x)
7- Object has Properties, Methods, and Events. (√)
8- Class contains the object definition. (√)
9- Object when there is a copy (instance) of the class its own. (√)
10- Can create more than one class of the same object. (x)
11- Through the .Net can produce desktop applications and mobile applications. (√)
12- CLR indicating System Class Libraries. (x)
13- Framework consists of the CLR, Compilers, System Class Libraries and other tools. ( √ )
14-Framwork provides design and running environment, for .Net Applications. (√)
15- You can call Office software package it Integrated development environment (IDE). ( x )
16-Form window is a designed the program interface or application. (√)
17-one of the tools that it cannot be placed on the form window is the (Label) control. (x)
18- Not required to be there for the properties of the controls that draw on the window form(x)
19- In (IDE) screen, displayed properties differ upon the selected element. (√)
20- Toolbox displays a list of files and folders of the project or the projects within
the solution. (x)
21-When you create a new project, you can choose from several templates including windows
Application. (√)
22- Solution Explorer window is a component of the IDE. (√)
23- Any project consists of only one form window. (x)
24- When you add a new form to the project the default name can't be changed. (x)
25- When you save the project for the first time shows the name of the project and the solution
is the same. (√)
26-you can add a new project within the current solution or a new solution. (√)
27-The Class is constructed out of Object. (x)
28- We have only one way to create a project file new project (x)
21
Royal International
Computer Revision sheet (Prep.3) First term Language School
22
Royal International
Computer Revision sheet (Prep.3) First term Language School
4-GUI means------------------------------
a) System Class Libraries b) GUI c) Operating environment
5- Mean that Windows applications from in the event that ---------------------------
a) GUI b) OOP c) calls code the occurrence of a specific event
6- Refers to the properties of the object as --------------------------------------------------------
a) describes the object b) It can be located c) what it can do object as a behavior
7- Is------------------------------------ The basic constructive element in Object Oriented
Programming languages it is created from a defined class
a) Properties b) Object c) Method
8- Contains ------------------------------------the object definition
a) IDE b) CLR c) Class
9- ------------------------is a central nervous system for all applications of Visual Studio .Net
a) Visual Studio dot net b) IDE c) .Framework
10- Framework provides an environment for running .Net applications, through ………….
a) CLR b) programming language c) Compilers
11-IDE means -------------------------------------------------
a- System Class Libraries
b- Integrated Development Environment
c- Operating environment
12- One of the components of IDE --------------------------------------------------
a) Properties b) Object c) Method
13-In the Properties window displays a list of active Item properties ingredient equivalent
--------------------
a- description of each property
b- alternative each property
c- present value for each property
14-Solution explorer Solution Explorer contains------------------------------------
a- Only one project b- A maximum of two c- projects added to the solution
15-To create an application window choose template---------------------------------------------
a) Windows forms application b) Class Library c) Console Application
16- The number of allowable forms is added to the project is ………………
a- one only b- is not restricted to c- a maximum of two
17- When you save a project in a solution did not save by match name------------------------
with -------------------
a- Project name with the name of the Solution
b- The Project with the IDE
c- The Solution with the IDE
23
Royal International
Computer Revision sheet (Prep.3) First term Language School
18- To know the projects that has been added to the resort window -----------
a) Properties window b) Tool Box c) the solution
19- From …………..… (Save as – Save All – File) menu choose ……………………………
(Save as – Save All – File) to save the project.
20- From (File) menu choose ………………. To create a new project.
(Visual Basic.Net – New project – New form)
21- From (Project) menu choose …………………. To add a new form.
(Add windows form – Add form – Add window)
22- The computer understands one language is ……………….
(English language - Machine language - Latin language)
Question 3: Place the appropriate number in front of the column (b), including suited
of the column (a)
A B
1 Visual Basic.NET (3) Is a central nervous system for all applications of dot net
2 Visual Studio.NET (2) One of the languages of the dot net
3 .NET Framework (1) From the integrated development environment IDE
Translate orders and instructions written in
4 CLR (….) a programming language into a language understood by
the computer
5 (4) Operating environment for applications of dot net
A B
1 compiler (2) From the Toolbox Controls
2 Button – Label - Textbox (3) That describes the object
3 Properties (4) Action that occurs on the object
4 Event Translate orders and instructions written in a
(1) programming language into a language
understood by the computer
5 (….) Examples of IDE
A B
1 object (3) The Blueprint that the object originates
2 A set of commands and instructions are
IDE (4) written according to certain rules
3 Class (2) An integrated development environment
4 Programming Language (1) A specific classification is built
24
Royal International
Computer Revision sheet (Prep.3) First term Language School
25
Royal International
Computer Revision sheet (Prep.3) First term Language School
Chapter Three
26
Royal International
Computer Revision sheet (Prep.3) First term Language School
27
Royal International
Computer Revision sheet (Prep.3) First term Language School
36- The (Name) property limit position appears the form window on the screen. (x )
37- The value of the text property for a Form appears on the taskbar. (x )
38- The default value for the text and name property for the first form
window is (New Form). (x )
39- You can’t change the location of the Button by clicking and dragging. (√)
40- Name property value to the Form window appears in the title bar of the Form window(√)
41- ListBox control doesn’t have Text property. (√)
The second question: Complete the following words by matching choices:
1- Are adjusted the RightToLeftLayout property after adjusting -------------------- property
a) RightLayout b) LeftLayout c) RightToLeft
2- ------------------------ property is found in many controls.
a) Font b) PasswordChar c) AutoCompleteSource
3- In the Properties window the left column which represents ------------------------------
a) Means the methods of active control
b) Properties of the active control
c) Properties value
4- Default value for the ----------------------- property match default value of the Text property
in Form window.
a) Tag b) Name c) Font
5- To adjust the direction of writing within the Tools in the Form window using ------ property
a) RightToLeft b) RightToLeftLayout c) Text
6- If the ControlBox property is set to the False value the ControlBox is --------------------
a) becomes unavailable b) shows c) disappears
7- Through the --------------------------- property can control the outline of the form window
a) FormBorderStyle b) BorderStyle c) Borders
8- Property----------------------------------Shows the effect after StartDebugging
a) BackColor b) Text c) ShowInTaskbar
9- Is the possibility of changing the size of most controls when put pointer of mouse direction
in the one of the ……………… after you activates that tool.
a) eight boxes b) One of the borders of the tool c) The middle of the tool
10- Property---------------------------------- Responsible for determining the color of the text that
appears on some of the tools
a) Color b) BackColor c) ForeColor
11- To change the size of Label tool use Size property, after adjusting the value of the
property AutoSize With ………………….
a) True. b) False c)Yes
28
Royal International
Computer Revision sheet (Prep.3) First term Language School
20- Look at the figure below and then select the property used ………….
29
Royal International
Computer Revision sheet (Prep.3) First term Language School
26- In order to appear the Form window in the middle of the screen at startup
select property ………….
(WidowState - StartPosition - Maximize)
Question 3: Place the appropriate number in front of the column (b), including suited
of the column (a)
A B
1 PasswordChar (4) Belong to Form
2 AutoCompleteMode (1) Belong to Textbox
3 AutoSize (….) Belong to ListBox
A B
1 GroupBox (2) Used in the selection of several alternatives
2 CheckBox (3) Is used to click it to perform a specific task
3 Button (1) Includes a number of tools at a specific address
4 RadioButton (4) Used in the selection of an alternative from several alternatives
30
Royal International
Computer Revision sheet (Prep.3) First term Language School
31
Royal International
Computer Revision sheet (Prep.3) First term Language School
1 AutoSize a Sets the name of the used control in the program code (4)
4 Name d Sets the font of the text displayed by the control (3)
A B
1 TextBox Display a set of options to select one option only. (3)
2 Button Creates a list of items to select. (6)
3 RadioButton Display a set of options to select one or more options. (4)
4 CheckBox Allows the user to type in it during the run-time. (1)
5 Label Performs a defined task when clicking on it. (2)
6 ListBox Displays titles to show the remaining program tools. (5)
32
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q.10: Rearrange the following steps to adjust the value of the text property of the form
window:
( 4 ) Write the new value.
( 1 ) Active Form window.
( 3 ) Delete the old value.
( 2 ) Select the text property value in the properties window.
Q.11: Complete the following statements:
1- The left column in the properites window contains properites name but the right column
contains the properites value
2- Property, which allows controlling from at the beginning of his appearance to become a
full-screen is WindowState
3- We use (ShowInTaskbar) for show or hide form window icon on the taskbar.
4- To hide the Title bar of the Form window, use FormBorerStyle property.
5- To start the program, use the Start debugging icon in the Toolbar.
6- The control TextBox used for intering data from the user.
7- The control Label used as a heading or title for another controls to let the user know the
form’s content.
8- The property BackgroundImage Is used to display the image in the background of the
control.
9- The propert Checked indicates if the (Radio Button) has been selected or not.
Q12- Pick the different item from the following:
1- “Egypt” – Enabled – True – False
2- Label – Button – Click – Form
3- Name –ForeColor – Font – True
4- VisualBasic.Net – j# - C# - Machine language
5- AutoSize – Enabled – Font – Visible
6- ComboBox – Label – Text
7- Click – True – No
8- Button – ListBox – ComboBox
9- Properties – Algorithm – Event – Method
10- AutoSize – Visible – “Hello” – Enabled
11- Tool Box – Properties Window – Solution Explorer Window – Object
12- Copy – Text - ForeColor - Enabled
33
Royal International
Computer Revision sheet (Prep.3) First term Language School
Chapter (4)
34
Royal International
Computer Revision sheet (Prep.3) First term Language School
Question 3: Place the appropriate number in front of the column (b), including suited
of the column (a)
A B
1 Class Name (3) display Events of the selected control
displays the names of the controls on the Form window
2 Code Window (1)
3 Method Name (2) From which you can write orders and instructions
A B
1 Sub Button1_Click (2) Means the event handler
2 Event Handler (3) Formula set properties programmatically
3 ControlName.Property=Value (1) Name an event handler
4 End Class (4) The end of the line classification
The end of the line event handler
35
Royal International
Computer Revision sheet (Prep.3) First term Language School
Q5- from the Code window in the figure, complete the following:
1- Click is the name of the event where the code is written.
2- Label1 refers to the object which will be adjusted.
3- ForeColor is the property which value will be adjusted.
4- The effect of this code when starting the program Change the color of writing into Red
5- Button1 is the object on which the event will occur.
36
Royal International
Computer Revision sheet (Prep.3) First term Language School
1
2
4
5
1- The declaration of the Class (Form1).
2- The procedure name composed of (object name, event name), (Button1, Click)
3- Between the two lines shown, you can write statements or codes that will be executed after
invoking the procedure.
4- The end of the procedure
5- The end of the Class
37