(1)CAIROGOVERNORATE2014- 2015

Question (1): (A): Put ()or (x):

1. Flowchartcanbe drawnusingsoftware onlyandcan’tbe drawnonpaper.(x)

2. The statementiswritten(Lbl_Title.Font=Font(“arial”,30)) toadjusttheproperty(Font)

for ( Lbl_Title).(x)

3. Cantheuser notchoose anyiteminthe CheckBoxcontrol.()

4. Whenyoucreate a newproject,a copyof the projectissavedinthe memoryandoneof thestoragedevicesautomatically. (x)

5. InIDEscreen, displayedpropertiesdiffer uponthe selectedelement.()

6. The effectof allthepropertiesappearsduringdesignmode.(x)

Question (2): Complete drawaFlowchart to

print thenumbersfrom2 To5:

Start

M= 2

In thepreviousFlowchart:

End


False


True

PrintM

-How manytimeswasthe contentofthe loopexecuted=4

-Whatwillbethe value of (M) afterthe loopexecuted=6

Question (3): Writethe scientific termfor eachof thefollowingstatements:

1. [Programming Language]isasetof instructionsandcommandsare writtenaccordingto certainrulesandthentranslatedtomachine Language toexecute.

2. [Define the problem]isdefinedthe requiredoutputs,availableinputsandtheprocessing

operations.

3. [Class]istheblueprint,from whichtheindividualobjectsare created.

4. [Event Handler]The procedure calledintoactionwhenaneventoccurs.

Question (4): Underline the correct answer:

1. Tohidethe minimize andmaximize buttonsforthe Form(Forml) setvalue (False) for

……………………

a- MinimizeBox b- MaximizeBox

c-Botha ,b

d-ControlBox

2. Tochange thesize ofthe Labellcontrolmanuallymake thevalue of the property………

equaltoFalse.

a- AutoSizeb- Size

c-Location

d-BorderStyle

3. The ……………… Propertyspecifiesthe symbolthatwillbe displayedinsteadof the writteninTextBox.

1

a- ShowInTaskbar b- Location

c-PasswordChard- ReadOnly

4. The projectcanruninstartdebuggingmode bypressing……… fromthe keyboard.

a- F2b-F4c- F7d-F5

5. The value assignedtopropertymayhaveseveraltypes:

a- The abstractvalue b-The logicalvalue

6. Some advantagesfor the Flowchart:

a- Facilitate theprogrammerwritingprogram. b-Usefulinexplainingthe programtoother.

c- Providebetterdocumentationfor theprogram.

d-Allof the above

c-The value of avariable orproperty d-Allof the above

(GOODLUCK)

(2)ALEXANDRIAGOVERNORATE2014–2015

Question (1): Put () or (x):

1. Toopenthe code windowpressingthe F4keyonyour keyboard.(x)

2. OperatingenvironmentCLRisone of .NetFrameworkcomponents.()

3. Label1.Visible = True code usedtoshowLabel1tool.()

4. Testingprogramandcorrectingerrorsisthe last stageof solvingtheproblem. (x)

5. There mustbea value foranyproperty.()

Question (2): Writewhat each of the followingstatementsrefersto:

1. Control toolthathasthe propertyPasswordChar.TextBox

2. Asetof procedureslogicallyarrangedthatare executedtoreachaspecific objective.

3. ItcontainscontroltoolsthatcanbeplacedontheFormwindow.ToolBox

4. The procedure called whena certaineventoccurs.Event Handler

Question (3): Choose fromcolumn Awhat suitsfromcolumn B:

AB

1. ApropertywitheffectthatdoesnotappearuntilStart(2)Debugging.(3)

2. Atoolusedtodisplayalistof elements.

3. The menufromwhichanewFormisaddedtotheproject.(4)

4. Iterationsandbranchingcan be represented using(1)

a.ListBox b. Project

c.Flowchart

d. StartpPosition

Question (4): Complete the spacesof theflow chart:toprintthe Sumof whole numbersfrom1 to3 andcorrect thechart:

Assumingthatthe number isNandthe totalisSum

(GOODLUCK)

N=1

……

No

…………

………………….

2

(3)ALKALYOUBIA GOVERNORATE2014–2015

Question (1):A) Write thescientificconcept:

1. Awindowthatisusedtoviewandchange thepropertiesof controls.[Properties window]

2. Agroupof logicallyarrangedprocedurestobe executedtoattaina goalor

precise output,outofspecificinputs.[Algorithm]

3. The procedure thatiscalledwhenan eventoccurs.[Event handler]

B) Mention thereason:

1. AnyProgramminglanguage containsacompiler.

2. Whenthe user was tryingtoinputthe number (2015) intothetextboxtool,thesesymbols

(****) displayedinstead.

Question (2)A) Fillthe emptyshapesofthe

flowchartwith suitable:


Start

IsN20

N=1

S=S+N

S =0

N= N+ 2

B)The purposeof the flowchartis:…………………


No

Yes

Print S

Question (3): Complete the followingsentences:

1. Classisblueprint / plan / template which the object is create

End

2. Aradio button controlisusedtoselectone optionfromagroupof mutuallyexclusive options.

3. ControlName.Property=Value

4. Alist Box controlisusedtodisplayalistof items.

5. The code windowofthecontroliswrittenbetweenprivatesubandEnd Sub

Question (4): Selectfromgroup (B) theappropriate one to the other ingroup (A):

Group (A)Group (B)

1.Adrop-downlistfrom whichne itemcanbe selectedComboBoxButton

The windowwhichisusedtodesignthe (visibleinterface)of the

application.FormVisible

3.Auser canclickonittoperforma specifictask.ButtonLabel

4.Acontrolthatuserscannottype in(anytext) duringthe run-time.LabelComboBox

5.The propertywhichisusedtohide the textboxForm

Hide

(GOODLUCK)

(4)ALSHARQIA GOVERNORATE2014–2015

First Question:Put()or (x):

1. Testingprogramandcorrectingerrorsisthe fourthstepofproblemsolving.()

2. VB.Netlanguage isnotobjectorientedprogramminglanguage.(x)

3. Windowsapplicationhasagraphicaluser interface (GUI).()

4. Eachobjecthaspropertiesandeventsandmethods.()

5. Tohidethe controlboxof the Formselectthevalue True for thepropertyControlBox. (x)

SecondQuestion:Youhaveunorderedstepsofprogramtocalculatethe interestvalue calculatedfor thebalance(atspecifiedinterestrate):

Required:

First:Rearrange theprevioussteps.

Second:Draw flowchartforthisprogram.


Interest=Balance*Rate

End

ReadName,Balance,Rate OutputName,Balance,Interest START

Third Question: Write down eachof thefollowing:

1. The componentsofthe Framework.

2. IDEscreencomponents.

3. Howtosavetheprojectonthestorage media.

Fourth Question:Choose the correctanswer between bracketsin the following:

1. The procedure, whichiscalledwhenacertaineventoccurs…………(Code Window –

EventHandler–CheckBox)

2. Acontroltoolsthatcanbeplacedonthe formwindow andthe user programcanclickon ittoexecute a certainaction……………… (ChomboBox–Button–ListBox)

3. Tocontrolthe sizeof Labelcontroltoolusingthe mouse,settheproperty……………

(AutoSize–Location–BorderStyle)

4. The toolusedtoinputtextdata totheprogram………………(RadioButton–GroupBox

–TextBox)

5. The planfromwhichobjectsare createdfrom…………(Object–Class –FlowChart)

(GOODLUCK)

(8)ALGHARBIA GOVERNORATE2014–2015

Question (1): First:Choose thecorrect answer between brackets:

1. ……………… isusedtocontaincontrol tools of the samefunctionontheFormwindow.

(Class –GroupBox–ListBox–Items)

2. SolutionExplorer windowcontains………………………… (Properties–Controltools–

Projects- allof theprevious)

3. The eventhandler name consistsof………………………….(ControltoolName –The eventname- The controltoolname andthe eventname– noneof theprevious)

4. IntegratedDevelopmentEnvironmentmeans………… (IPG–IPO–IDE–ERD)

Second: Put theappropriate toolname fromthefollowingtoolsin the right placein the table:

(TextBox–RadioButton–CheckBox– ComboBox–ListBox–Label)

Image

Toolname(1) ……………(2) ……………(3) ……………(4) ……………

Question (2): First:Rewrite the followingsentencesafter correctingthe underlined:

1. Toopenthe code windowCode Windowsof the FormwindowpressF5key.

2. Programdesignisthefirst stagesofsolvingthe problem.

3. Propertytextindicateswhetherthe RadioButtonisselectedor not.

4. The Blueprint fromwhich objectsarecreatedfromiscalledForm.

Second: You havesome propertiesof the controltoolLabel1:

Change itprogrammaticallytothe valuesshown:

Property / RequiredValue / Code
ForeColor / Blue / Label1.ForeColor = Color.Blue
Text / Egypt / Label1.Text = “Egypt”

Question (3): Writeinside eachsymbolof Flowchartwhat suitsit fromtheopposite table: Todeterminewhetherthe number enteredisevenor odd:

Start

( 3 )Isres≠0

( 1 )Inputnumber N

( 4 )Output"number iseven" ( 2 )Res=Nmod2

(GOODLUCK)

1

2

3No

Yes

Output

“number isodd”4

ءاعدلا

مكلأسن

...

مشاه

دمحأ./م

ةمجرتو

عمج

End8

(9)ALBEHAIRA GOVERNORATE2014–2015

Question (1): Put () or (x):

1. Morethanone objectcanbe createdfromthe same class.()

2. PropertyForeColoristhe colorof thebackgroundofbutton(Button).(x)

3. The eventhandler isthe procedurethatiscalledwhenacertaineventoccurs.()

4. The BlueprintfromwhichobjectiscreatediscalledClass.()

5. The value ofpropertySize 98:108meansthatthe widthof controltoolis108andheightis

98.(x)

Question (2): Complete the following:

1. Formisthe window (visible interface)

2. One ofstagesof the problemsolving:define the problemitmeansdefiningrequired

outputsandavailable inputsandmathematicalor logicaloperations.

3. The propertyControlBoxcontrolsthe appearanceorhidethe ControlBoxof the

Formwindow.

4. Textbox toolisusedtoreceiveuser textinputs.

5. Flowchart isagraphicalrepresentationusingstandardsymbolstoillustrate thesequence ofthe operationsnecessarytosolve aspecificproblem.

Question (3): Choose the correctanswerfrombetween brackets:

1. Whichof the followingsymbolsexpressesdecisionmakingprocessesinthe flowchart

…………………… (––)

2. The propertyRightToLeftLayoutisactivatedonlyif the value of the propertyRightToLeft is……… (False –Yes–True)

3. Toadda newFormwindow totheproject isfromthe …… menu.(File –View–Project)

4. The effectof …………… propertydoesnot takesplaceonlyatStartDebugging(Text –

Windowstate –BackColor)

Question (4): Answer the followingquestions:

A) You have severalpropertiesof controltool(TextBox),change them programmaticallytothe valuesshown:

PropertyRequiredvalueCode

MulitiLineTrueTextBox.MulitiLine = True

FontFonttype Andalusof size 20TextBox.Font =New Font (“Andalus”,20)

BackColoryellowTextBox.BackColor= Color.Yellow

B)Drawaflowchartfor calculatingthe number of yearsknowingnumber of months.

(GOODLUCK)

(14)GIZAGOVERNORATE2014- 2015

Question (1): Put () or ( ):(Answer5only)

1. PropertySorteddetermineswhetherthe itemsare sortedor not.()

2. Youcannotcreate more thanone Objectfromthe same Class.(x)

3. Commandsandinstructionscanbe writtenthroughthe propertieswindow.(x)

4. The laststepof problemsolvingistotestthe program.(x)

5. Toadda newFormtothe projectselect“AddClass” fromthe Projectmenu.(x)

6. The defaultvalue ofthe propertyTextandpropertyName isthesame.()

Question (2): Complete the followingsentencesusingthe followingwords

(Event name –Object Oriented–Flowchart–Maxlength–RadioButton)

1. After the finishingthe Flowchartwe translateitintoone of theprogramminglanguages.

2. ControltoolRadioButtonisusedif we wanttoselectonlyone alternative from severalalternatives.

3. The eventhandler name consistsofthe name of the controltoolandEvent name

4. PropertyMaxlengthdetermine themaximumnumber ofcharactersthatcanbe

writtenwithinthe TextBox.

5. VisualBasic.netlanguage isanObject Orientedlanguage

Question (3): Writethe reference number of each command in thefollowingtable: To determine itscorrect placein the flowchartto:calculatethe area ofthe rectangle withKnowledge of lengthL, widthW(knowingthatthe accountis thespace equation:Area = L* W):

1

2

3

4

5

Question (4): (A):Inthe shown figurewrite downwhat thefollowingnumber indicates:

1. Properties Window

2. Form Window

3. Tool Box

(B): Write thescientific termfor the following:

1. Propertythatsets theheightandwidthButton toolonthe formwindow.[Size]

2. Atoolusedtocontainthe controltoolsofthesame functionontheFormwindow.

[Group Box]

(GOODLUCK)


(15)ISMAELIAGOVERNORATE2014-2015

Question (1): Put ( ) or ( ):

1.Preparingthe solutionsteps(algorithm) isthe firststageofproblemsolving.(x)

2.There are commonpropertiesamongthe controltools.()

3.The code writtentohidethe controltoolLabel1isLabel1.visible =true.(x)

4.Number ofvariablesusedinflowcharttoinputtwonumbersandprintthesumis2.(x)

5.Theshape isusedforprocessingoperationinthe flowchart.()

Question (2): Choose thecorrectanswerbetween brackets:

1. Objectthatuponwhichcontrolsareplacedthe (Controls)andisusedasprograminterface

iscalled……………(Form–Application–VisualBasic)

2. Objectname canbe changedfromthe ……………… window(properties- tools- Form)

3. The code windowisopenedbypressingthe key……….(F5–F4–F7)

4. Tosave projectinVisualBasic.NetSelectcommand……………fromthe File menu

(Save all–Save As–Save)

5. The blueprintfromwhichobjectiscreatediscalled………… (Class- Label1- Form)

Question (3): Complete the FlowChart to:enterthe value of X,andif X>=50printthe

word“Succeed” andif itislessthan50print“Fail”:

X=50


Yes

No

Question (4): Selectfromcolumn (A)what suitsit fromcolumn (B):

(A)(B)

1. The procedure, whichiscalledupontheoccurrenceof

acertainevent.( 3 )a. RadioButton

2. The propertythatchangesthe color oftextwrittenon

thetool.( 1 )b. EventHandler

3. The toolusedtoselectonlyone alternativeof several

alternatives.( 4 )c. Text

4. The propertythatchangesthetextwrittenonthe tool.( 5 )d. ShowInTaskbar

5. The propertythattakeseffectonstartdebugging.( 2 )e. ForeColor

(GOODLUCK)

(19)SOHAGGOVERNORATE2014–2015

Question (1): Put () or ( ):

1.Eventhandler istheprocedure thatiscalledwhenacertaineventoccurs.()

2.Debuggingmode is turnedoffusingIconStop Debugging.()

3.Propertiesvaryaccordingtothe active elementinthe IDEscreen.()

4.Algorithmisthe firststagesof problemsolving.(x)

5.There arenocommonpropertiesbetweenone Controltoolandanother.(x)

6.Iterationsandbranchingcanbe representedthroughFlowchart.()

Question (2): Choose the correctanswerfromthebracketsfor the following:

1.Toopenthe code windowof the Formwindowpressthekey……………(F4–F7–

F5)

2.………………… containscontroltoolsthatcanbeplacedontheformwindow.

(Toolbox–Properties–Solutionexplorer)

3.Toallow the choosingoneonlyelement, we usethe controltool……………………

(RadioButton–Checkbox–GroupBox)

4.Whichof the followingpropertiestakeseffectonlyuponStartDebugging……………

(Showintaskbar –Font–text)

5.Integrateddevelopmentenvironmentmeans…………(ERO–IDE–IPO)

6.Tosetthe backgroundcolor ofthe Formwindowuseproperty………………………

(ForeColor –Backcolor–Color)

Question (3): Complete the followingsentences:

1.Anobjective oroutputresultwe wanttoattainthe problem

2.Whensavingthe Projectfor the firsttime, solutionname isidenticaltoproject name

3.Whenthevalue of propertyAutoSizeissettotruethesize of controltoolLabelis

setaccordingtothe textappearingonit.

4.Objectisdefinedasthebasic buildingunitinobjectorientationprogramming languagesandiscreatedfromclass.

Question (4): Complete the Flowchart to:enter a number andthenprintwhether the number isevenor odd:

Start

……………

NoIsdivisible by2

Yes

………………


………………

(16)SUEZGOVERNORATE2014–2015

Question (1): (A): Put ( ) or ():

1. RadioButtonisusedtoallowusertochoosemore thanone alternative.(x)

2. Anygeometric shape canbe usedtorepresentthe solutionstepsinflowcharts.(x)

3. Onsavingthe Projectfor the firsttime solutionname isidenticaltoprojectname.()

4. Objectname inlbl_Title.Visible= TrueisVisible.()

5. There are commonpropertiesbetweencontroltoolsandothers.()

6. Rectangle symbolrepresentsonlyone operationprocess.(x)

(B) Write thescientific termfor the followingsentences:

1. Agraphicalrepresentationthatisbasedonstandardgraphic symbols.[…………………]

2. Throughwhichcommandsandinstructions(code)are writteninVisualBasic. Net

language […………………………………………]

Question (2): (A): Underline thecorrectanswer frombetween in brackets:(Answersix only)

1. …………………isasetof procedureslogicallyarrangedandexecutedtoreacha specific

goalor resultfromspecific data.(Pproblem–Problemsolving –Algorithm)

2. …………… isthe basic constructionunitinobject orientedprogramminglanguages. (Class –Object–Label)

3. The FrameWorkconsistsof ………………………… andother elements.(ToolBox–IDE

–Compilers)

4. The name thatreferstothe Forminthe code ……………… (BackColor–Name – Text)

5. …………… allowsTextBoxcontroltooltohavemultiplelines.(MultiLine–Size–Font)

6. Project canrunintest mode bypressinga key……fromthe keyboard.(F5–F8–F2)

7. ……………… isusedindisplayingof alistof items.(ListBox–CheckBox–GroupBox)

(B):In theflowchart to print thenumbersfrom1: 3

1. How manytimestheloopisexecuted……

2. Whatisthe value ofM afterthe endof loop……


Start

M= 1

M<=3

True

PrintM

M=M +1

False

End

Question (3): (A): Correct the followingcode:

(GOODLUCK)

]