Introduction to Programming Using Visual Basic 10th Edition Test Bank

Introduction to Programming Using Visual Basic 10th Edition Test Bank boosts your confidence with focused study material, practice problems, and clear explanations.

Ethan Wilson
Contributor
4.3
58
5 months ago
Preview (16 of 152 Pages)
100%
Purchase to unlock

Page 1

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 1 preview image

Loading page image...

Chapter1AnIntroductiontoComputersandProblem SolvingSection 1.1An Introduction toComputers1.VisualBasicis considered to be a(A)first-generation language.(B)package.(C)high-level language.(D)machine language.C2.Thepersonwhoactuallyruns acomputer program iscalled a(A)user.(B)customer.(C)client.(D)tester.(E)runner.A3.Acollection oflines of instruction iscalleda(n)(A)program.(B)algorithm.(C)system.(D)programmer.A4.Which ofthefollowingis NOTconsidered to be one of thethreebasicfeatures of aprogram?(A)input(B)processing(C)output(D)storeD5.Softwarerefers to the peoplewho work with computerhardware. (T/F)F6.VisualBasic uses agraphical userinterface. (T/F)T7.VisualBasic uses azero-based numberingsystem. (T/F)T

Page 2

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 2 preview image

Loading page image...

Page 3

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 3 preview image

Loading page image...

Section 1.2Program DevelopmentCycle1.Analgorithmis definedas:(A)amathematical formulathat solves aproblem.(B)atempoforclassical music played in acoda.(C)alogical sequenceof steps that solveaproblem.(D)atool that designscomputer programs and draws theuser interface.C2.Which ofthefollowingis theproper order ofprocedures used in the problem-solvingprocess?(A)design,analysis,coding, testing(B)analysis, testing, design,coding(C)analysis, design,coding, testing(D)analysis, design, testing,coding(E)design, testing,analysis,codingC3.Theprocess offindingandcorrectingerrors in aprogram iscalled(A)pseudocoding.(B)debugging.(C)algorithms.(D)development cycles.B4.In most cases, awell-written program need not be tested.(T/F)F5.Theanalysisand design steps of program planningarelargelyindependent of theparticularcomputer languagethe programmer is using. (T/F)T6.When startinganew program, it is best to startwritingcodeas soon aspossible toavoidwastingtime thinkingabout it. (T/F)F7.Often aproblem is too difficult to understand until onewrites the program. (T/F)F8.Although the documentation step is usuallylisted last in the problem-solvingprocess, itshouldactuallybegin when the problem is first definedandcontinuethrough the problem-solvingprocess. (T/F)T

Page 4

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 4 preview image

Loading page image...

9.Order thesteps in theprogram development cycle startingwith 1 forthefirst stepand so on.Program design (deviseanalgorithm).Test theprogramuntil it iserrorfree.Test thedesign.Problem analysis (definethe problem).Determinethe input and output.Reviewthecode.Add newfeatures.Codethe program.Enter theprogram.3 8 4 1 2 7 9 5 6Section 1.3Programming Tools1.What does theparallelogram flowchart symbol represent?(A)input/output(B)terminal(C)decision(D)connector(E)processA2.Pseudocodeis(A)data that havebeenencoded forsecurity.(B)the incorrect results of acomputer program.(C)aprogram that doesn'twork.(D)the obscurelanguagecomputer personnel usewhen speaking.(E)adescription ofanalgorithm similar to acomputer language.E3.Which oneof thefollowingis NOT oneof thethreebasic types of statement structures?(A)sequence(B)loop(C)decision(D)input/outputD

Page 5

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 5 preview image

Loading page image...

4.Which ofthefollowingtypes ofcharts shows onlytherelationships betweengeneralprogram tasks without showingspecific processinglogic?(A)hierarchychart(B)flowchart(C)both Aand B(D)neither Anor BA5.Supposein theveryearlystages of theproblem-solvingprocess,your supervisorwantsyouto show therelationships between the various processes that will be needed to solve theproblem. Thebest wayto do this would beto use(A)atop-downchart.(B)aflowchart.(C)asampleprogram.(D)pseudocode.B6.Which programmingtool uses English-likephrases with someVisualBasic terms to outlineatask?(A)atop-downchart.(B)aflowchart.(C)analgorithm.(D)pseudocode.D7.Ifyouarewritingaprogram that needs to repeat a series ofcalculations, what programmingstructureshouldyou useto repeat thecalculations?(A)sequencestructure(B)decision structure(C)loopingstructure(D)anyof theaboveC8."Desk-checking"refers to(A)thecontinual problem programmers havewith losingthings.(B)timingaprogram to seehowfast it completes its tasks.(C)testinganalgorithmat theflowchart stageusingseveral different kinds of data.(D)havingafellow programmerreadyourpseudocodeto be sureit is understandable.C

Page 6

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 6 preview image

Loading page image...

9.What does therectangleflowchart symbol represent?(A)input/output(B)terminal(C)decision(D)connector(E)processE10.What does thediamondflowchart symbol represent?(A)input/output(B)terminal(C)decision(D)connector(E)processC11.What does thecircleflowchart symbol represent?(A)input/output(B)terminal(C)decision(D)connector(E)processD12.What does therectanglewith rounded sides”flowchart symbol represent?(A)input/output(B)annotation(C)decision(D)start/stop(E)processD13.Agraphical depiction ofthe logical steps tocarryout a taskand show howthe steps relatetoeach otheris calleda(n)(A)flowchart.(B)pseudocode.(C)algorithms.(D)hierarchychart.A14.Aflowchart is anarrangement ofgeometric shapesconnected byarrows.(T/F)T

Page 7

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 7 preview image

Loading page image...

15.A top-downchart is thesame thingas aflowchart.(T/F)F16.Pseudocodeand flowchartsaretwo different tools or methods used in planningasolution toaproblem.(T/F)T17.Supposeyour supervisorat work wantsyou to writeaprogram toaccomplish a specifiedtask.However,theyhavenot letyou knowwhichcomputer languageto use.It is stillpossible to design the program in pseudocode. (T/F)T18.Duringthe design phase,allerrorswill becaught byVisualBasic's smarteditor.(T/F)F19.Although aflowchart(as its name suggests) depicts dataflow verywell, it is not easilymodified oncewritten.(T/F)T20.If aproblem is verycomplex,extensivedesign priorto codingwillactuallydelaythecompletion ofthe project. (T/F)F21.Thedivide-and-conquer-method ofproblem solvingbreaks aproblem into large,generalpieces first, thenrefineseach pieceuntil theproblem is manageable.(T/F)T22.Thepurposeof atest or decision in a loopingstructureis to tell when the loop shouldend.(T/F)T23.Flowcharts, pseudocode,and top-downchartscan beused to solve problems onlyin VisualBasic.(T/F)F24.What arethe threebasic methods ofcontrol used in designingstructuredalgorithms?sequence, decision, loop25.Definethefollowing:(A)algorithm(B)pseudocode(C)flowchart

Page 8

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 8 preview image

Loading page image...

Chapter2VisualBasic,Controls,andEventsSection2.1An Introductionto VisualBasic20151.ProgramminginVB2015 is differentfrom traditional programmingenvironments becausefirstyou should(A)writethecode.(B)input the data.(C)name thebuttons.(D)draw theuser interface.D2.GUIstandsfor(A)graphical user interface.(B)graphing user introduction.(C)graphical unit interface.(D)graphical user input.A3.A mouseclick is anexampleofanevent.(T/F)TSection2.2VisualBasicControls1.PressF4 to(A)run aprogram.(B)displaythe Properties window.(C)displaythe Solution Explorerwindow.(D)terminate aprogram.B2.Which ofthe propertiesin acontrol's list of properties is used togive thecontrol ameaningful name?(A)Text(B)ContextMenu(C)ControlName(D)NameD

Page 9

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 9 preview image

Loading page image...

3.VisualBasicaccess keysarecreatedbyusingwhichsymbol in a button'sText property?(A)@(B)&(C)%(D)#B4.Which ofthefollowingsteps specifiesPas theaccess keyfor abutton?(A)Set theText propertytoCom_pute.(B)Set theTextpropertytoCom&pute.(C)Set theText propertyto&Com_pute.(D)Set theText propertytocomPute.B5.When aVisualBasicprogram is running, the usercan move from onecontrol toanotherusingthe keyboardbypressingthe(A)Tab key.(B)Spacebar.(C)Enter key.(D)Backspacekey.A6.Which ofthefollowingproperties determines thewordsappearingin aform's titlebar?(A)Text(B)Caption(C)Name(D)TitleA7.What effect will thefollowingstatementhave?lblOne.Visible=False(A)Enable lblOne(B)DeletelblOne(C)MakelblOneinvisible(D)It is not avalid VisualBasic statement.C8.Whencreatinganewprogram in VisualBasic,youareasked to supplyanamefor theprogram.Ifyou do not specifyaname, adefaultname is used.What is thisdefault name?(A)Wapplication followed byanumber.(B)Application followedbyanumber.(C)WindowsApplication.(D)WindowsApplication followedbyanumber.D

Page 10

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 10 preview image

Loading page image...

9.InVisual Basic, tooltipsassistbyshowingasmallcaptionabout thepurposeofeach iconon theToolbar. Howdoyou makeatooltipappear?(A)Right click theToolbariconand select purposefrom theavailable options.(B)Position themousepointer over theiconforafewseconds.(C)Hold downashift key, thenclick theappropriateToolbar icon to displayits purpose.(D)Hold down theAlt key, thenclick theappropriateToolbar icon to displayits purpose.B10.TheProperties windowplaysan important role inthe development ofVisualBasicprograms.It is mainlyused(A)to changehow objects lookand feel.(B)when openingprogramsstored ona disk.(C)to allow the developertographicallydesign program components.(D)to set program related options like Program Name, ProgramLocation,etc.A11.SizingHandles makeit veryeasytoresizevirtuallyanycontrol whendevelopingprogramswith VisualBasic. Whenworkingin theFormDesigner, howarethesesizinghandlesdisplayed?(A)rectanglewith 4 arrows, onein eachcorner,aroundyourcontrol.(B)A3-D outlinearoundyourcontrol.(C)Arectanglewith small squaresaroundyourcontrol.(D)Noneof theaboveC12.TheFont dialogboxallowsyou to select differentFonts, theirstyle, their size,and someotherspecialeffects. How doyoubringup this Font dialogbox?(A)In the Properties window,click theellipsis (…)ontheright sideof thesettings boxfortheFont property.(B)Double-click thecontrol,and selectFontProperty.(C)Right-click thecontrol,and selectFontProperty.(D)Noneof theaboveA13.What keyboard shortcutis usedto run thecurrentprogram?(A)F4(B)F5(C)F6(D)F7B

Page 11

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 11 preview image

Loading page image...

14.What would be agoodnameforatext box to hold apersonsfirst name?(A)txtFirstName(B)FirstName(C)txtFirst Name(D)First NameA15.What featurein VisualBasicallowsyou to makemoreroom onyourscreenbytemporarilyconcealingcertain windows?(A)Help(B)Auto Hide(C)Auto Minimize(D)Expert-ViewB16.What propertyis availableformostcontrols thatallowsyou to hide/unhidethemeithermanuallybysettingthepropertyorbysettingit duringrun timeviacode?(A)Clear(B)Refresh(C)Visible(D)View-ControlC17.What propertyofcontrols tells the ordertheyreceive thefocus when the tab keyis pressedduringrun time?(A)Focus order(B)Focus number(C)Tab index(D)Control orderC18.What is the default tab indexof thefirst object placed on aform?(A)0(B)1(C)First(D)Noneof theaboveA19.What propertyof acontrol determines whether thecontrol canreceive thefocus duringruntime?(A)TabOrder(B)Focus(C)TabIndex(D)TabStopD

Page 12

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 12 preview image

Loading page image...

20.What menu is used to aligncontrols onaform?(A)View(B)Window(C)Build(D)FormatD21.Which ofthefollowingis not asubmenu oftheFormatmenu?(A)Align(B)MakeSame Size(C)CenterinForm(D)WidenD22.What propertycausesacontrol todisappearwhenset toFalse?(A)Detectible(B)Visible(C)Disabled(D)SupportedB23.What propertyrestrictstheuseof acontrol whenset toFalse?(A)Available(B)Accessible(C)Enabled(D)SupportedC24.Changingacontrol's Text propertyalso changeshowyourefer to thecontrol incode. (T/F)F25.Youcan displaythe Properties windowbypressingF4. (T/F)T26.TheProperties windowis used tochangehow objects lookand react. (T/F)T27.When workingwith text boxes, the sizinghandlesallowyou toresizetheobjectbydraggingto makeit wider ornarrower.(T/F)T28.Onceatext boxcontrolis placed on aform, itcannotberesized or moved.(T/F)F29.F5 is thekeyboard shortcut used toactivate theProperties window.(T/F)F

Page 13

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 13 preview image

Loading page image...

30.Onceacontrol is placedonaform,youcan rename itbyeditingtheNamepropertyin theProperties window.(T/F)T31.TheDescription pane, located below theProperties windows, shows abriefexplanation ofthe highlighted property.(T/F)T32.TheForeColor propertyof atext boxchanges thecolorof theformcontainingthe text box.(T/F)F33.Shortcut keys likeF5 (Run),allowyou to perform certain tasks without theuseof themouse. (T/F)T34.Therecommended prefixforthe nameof abuttoncontrol isbtn. (T/F)T35.TheAuto HidefeatureoftheToolboxisactivewhen the pushpin is horizontal. (T/F)T36.A group ofseveral controls can beresized or moved simultaneously. (T/F)T37.Thecontrol with tab index1 isalways thefirst control to receive thefocuswhentheprogram is run.(T/F)F38.Snap linescan beused toalign the bottoms, middles,and tops ofcontrols.(T/F)T39.Thekeycombination Shift +arrowkeycan beused to resizeacontrol or agroupofcontrols. (T/F)TSection2.3VisualBasicEvents1.When the userclicks abutton,israised.(A)anevent(B)amethod(C)asetting(D)apropertyA

Page 14

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 14 preview image

Loading page image...

2.Which ofthefollowingis not oneof thethreesteps used tocreate aVisualBasic program?(A)createtheinterface(B)set theproperties of theobjects(C)specifythe methods(D)writethecodeC3.IntelliSenseis a technologybuilt into VisualBasicthatassists the programmerby(A)automaticallyinsertingtext andwords that havesimilar meaningto thosecurrentlybeingenteredbytheprogrammer.(B)allowingthe programmerto edit object propertiesfrom insidethecodewindow.(C)replacingmisspelledwords with thecorrect spellingas soonas the programmer pressestheEnterkey.(D)automaticallydisplayingthe methodsand propertiesavailable to acontrol.D4.What of thefollowingisacorrect statementfor specifyingthewords toappear in thetitlebar ofForm1?(A)Form1.Text="MyText"(B)Form1.TitleBar="MyText"(C)Me.Text="MyText"(D)Me.Caption="MyText"C5.When will thefollowingevent procedurebeexecuted?PrivateSubtxtBox_TextChanged(...)HandlestxtBox.TextChanged(A)when text isadded to thetext box(B)when text is deleted from thetext box(C)when text is modified inside thetext box(D)All of theaboveD6.Which ofthefollowingstatements specifies thatthecolor ofthetext intxtBoxbered?(A)txtBox.Text=Color.Red(B)txtBox.ForeColor=Color.Red(C)txtBox.ForeColor=Red(D)txtBox=Color.RedB

Page 15

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 15 preview image

Loading page image...

7.ThestatementbtnButton.Focus()(A)has noeffect.(B)moves thefocus to thebuttonbtnButton.(C)has the same effect asclickingon the buttonbtnButton.(D)is invalid in VisualBasic.B8.Which ofthefollowingstatements sets thewordson abutton to"Push Me"?(A)btnButton.Name="PushMe"(B)btnButton.Text=PushMe(C)btnButton.Text="PushMe"(D)btnButton="PushMe"C9.Which ofthefollowingis avalid statement in VisualBasic?(A)Form1.Text="Revenue"(B)Form1.Caption="Revenue"(C)btnButton.Text=PushMe(D)Me.Text="Revenue"D10.A user action suchasclickingabutton iscalled(A)anaccident(B)anevent(C)aprocedure(D)apropertyB11.VisualBasicresponds toevents usingwhich of the following?(A)codeprocedure(B)aneventprocedure(C)aform procedure(D)propertyB12.Which ofthefollowingstatements will place"Greetings"in thetitlebar of aform?(A)Me.Title="Greetings"(B)Me.Text="Greetings"(C)Me.Name="Greetings"(D)Me.Heading="Greetings"B

Page 16

Introduction to Programming Using Visual Basic 10th Edition Test Bank - Page 16 preview image

Loading page image...

13.Thefollowinglinesofcodearevalid. (T/F)PrivateSubClick(...)HandlesClicktxtBox.Text=""EndSubF14.Keywordsarealso referred to asreserved words. (T/F)T15.Complete Wordis a helpful featureproducedbytheMicrosoft TechnologycalledIntelliSense.(T/F)T16.TheVisual Basic CodeEditor willautomaticallydetectcertaintypes oferrorsasyouareenteringcode.(T/F)T17.ThestatementtxtBox.Font.Bold=Truewill produceanerrormessagewhen VisualBasictries to execute it. (T/F)T18.TheVisual Basic CodeEditorautomaticallycapitalizes thefirst letters ofreserved words.(T/F)T19.Thefirstline ofaneventproceduremustcontainboth thekeyword Sub andHandles.(T/F)T20.ThestatementbtnButton="Press"producesanerrormessage.(T/F)T21.TheProperties windowcannot be used to displaytheevents associated withacontrol.(T/F)F22.Writeastatement thatgives thefocus to btnCompute.btnCompute.Focus()23.Writeastatement that disables btnCompute.btnCompute.Enabled=False
Preview Mode

This document has 152 pages. Sign in to access the full document!

Study Now!

XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat

Document Details

Related Documents

View all