Test Bank for Introduction to Programming Using Visual Basic, 11th Edition

Simplify your preparation with Test Bank for Introduction to Programming Using Visual Basic, 11th Edition, offering a detailed review of key concepts and exam strategies.

Emma Thompson
Contributor
4.3
33
5 months ago
Preview (16 of 152 Pages)
100%
Purchase to unlock

Page 1

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 1 preview image

Loading page image...

Chapter 1 An Introduction to Computers andProblem SolvingSection 1.1 An Introduction to Computers1.Visual Basicis considered to be a(A)first-generation language.(B)package.(C)high-level language.(D)machine language.C2.The person who actually runs a computer program is called a(A)user.(B)customer.(C)client.(D)tester.(E)runner.A3.A collection of lines of instruction is called a(n)(A)program.(B)algorithm.(C)system.(D)programmer.A4.Which of the following is NOT considered to be oneof the three basicfeaturesof aprogram?(A)input(B)processing(C)output(D)storeD5.Software refers to the people who work with computer hardware. (T/F)F6.Visual Basic uses a graphical user interface. (T/F)T7.Visual Basic uses a zero-based numberingsystem. (T/F)T

Page 2

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 2 preview image

Loading page image...

Page 3

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 3 preview image

Loading page image...

Section 1.2Program Development Cycle1.Analgorithmis defined as:(A)a mathematical formula that solves a problem.(B)a tempo for classical music played in a coda.(C)a logical sequence of steps that solve a problem.(D)a tool that designs computer programs and draws the user interface.C2.Which of the following is the proper order of procedures 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.The process of finding and correcting errors in a program is called(A)pseudocoding.(B)debugging.(C)algorithms.(D)development cycles.B4.In most cases, a well-written program need not be tested. (T/F)F5.The analysis and design steps of program planning are largely independent of the particularcomputer language the programmer is using. (T/F)T6.When starting a new program, it is best to start writing code as soon aspossible to avoidwasting time thinking about it. (T/F)F7.Often a problem is too difficult to understand until one writes the program. (T/F)F8.Although the documentation step is usually listed last in the problem-solving process, itshould actually begin when the problem is first defined and continue through the problem-solving process. (T/F)T

Page 4

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 4 preview image

Loading page image...

9.Order the steps in the program development cycle starting with 1 for the first step and so on.____Program design (devise an algorithm).____Test the program until it is error free.____Test the design.____Problem analysis (define the problem).____Determine the input and output.____Review the code.____Add new features.____Code the program.____Enter the program.3 8 4 1 2 7 9 5 6Section 1.3Programming Tools1.What does the parallelogram flowchart symbol represent?(A)input/output(B)terminal(C)decision(D)connector(E)processA2.Pseudocode is(A)data that have been encoded for security.(B)the incorrect results of a computer program.(C)a program that doesn't work.(D)the obscure language computer personnel use when speaking.(E)a description of an algorithm similar to a computer language.E3.Which one of the following is NOT one of the three basic types of statement structures?(A)sequence(B)loop(C)decision(D)input/outputD

Page 5

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 5 preview image

Loading page image...

4.Which of the following types of charts shows only the relationships between generalprogram tasks without showing specificprocessing logic?(A)hierarchychart(B)flowchart(C)both A and B(D)neither A nor BA5.Suppose in the very early stages of the problem-solving process, your supervisor wants youto show the relationships between the various processes that will be needed to solve theproblem. The best way to do this would be to use(A)a top-down chart.(B)a flowchart.(C)a sample program.(D)pseudocode.B6.Which programming tool uses English-like phrases with some Visual Basic terms to outlinea task?(A)a top-down chart.(B)a flowchart.(C)an algorithm.(D)pseudocode.D7.If you are writing a program that needs to repeat a series of calculations, what programmingstructure should you use to repeat the calculations?(A)sequence structure(B)decision structure(C)looping structure(D)any of the aboveC8."Desk-checking" refers to(A)the continual problem programmers have with losing things.(B)timing a program to see how fast it completes its tasks.(C)testing an algorithm at the flowchart stage using several different kinds of data.(D)having a fellow programmer read your pseudocode to be sure it is understandable.C

Page 6

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 6 preview image

Loading page image...

9.What does the rectangle flowchart symbol represent?(A)input/output(B)terminal(C)decision(D)connector(E)processE10.What does the diamond flowchart symbol represent?(A)input/output(B)terminal(C)decision(D)connector(E)processC11.What does the circle flowchart symbol represent?(A)input/output(B)terminal(C)decision(D)connector(E)processD12.What does the “rectangle with rounded sides” flowchart symbol represent?(A)input/output(B)annotation(C)decision(D)start/stop(E)processD13.A graphical depiction of the logical steps to carry out a task and show how the steps relate toeach other is called a(n)(A)flowchart.(B)pseudocode.(C)algorithms.(D)hierarchy chart.A14.A flowchart is an arrangement of geometricshapes connected by arrows. (T/F)T

Page 7

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 7 preview image

Loading page image...

15.A top-down chart is the same thing as a flowchart. (T/F)F16.Pseudocode and flowcharts are two different tools or methods used in planning a solution toa problem. (T/F)T17.Suppose your supervisor at work wants you to write a program to accomplish aspecifiedtask. However,they havenot let you know which computer language to use. It is stillpossible to design the program in pseudocode. (T/F)T18.During the design phase, all errors will be caught by Visual Basic's smart editor. (T/F)F19.Although a flowchart (as its name suggests) depicts data flow very well, it is not easilymodified once written. (T/F)T20.If a problem is very complex, extensive design prior to coding will actually delay thecompletion of the project. (T/F)F21.The divide-and-conquer-method of problem solving breaks a problem into large, generalpieces first, then refines each piece until the problem is manageable. (T/F)T22.The purpose of a test or decision in a looping structure is to tell when the loop should end.(T/F)T23.Flowcharts, pseudocode, and top-down charts can be used to solve problems only in VisualBasic. (T/F)F24.What are the three basic methods of control used in designing structured algorithms?sequence, decision, loop25.Define the following:(A)algorithm(B)pseudocode(C)flowchart

Page 8

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 8 preview image

Loading page image...

Chapter 2Visual Basic, Controls, and EventsSection 2.1 An Introduction to Visual Basic20171.Programming in VB2017is different fromtraditionalprogramming environments becausefirst you should(A)write the code.(B)input the data.(C)name the buttons.(D)draw the user interface.D2.GUI stands for(A)graphical user interface.(B)graphing user introduction.(C)graphical unit interface.(D)graphical user input.A3.A mouse click is an example of an event. (T/F)TSection 2.2 Visual Basic Controls1.Press F4 to(A)run a program.(B)display the Properties window.(C)display the Solution Explorer window.(D)terminate a program.B2.Which of the properties in a control's list of properties is used to give the control ameaningful name?(A)Text(B)ContextMenu(C)ControlName(D)NameD

Page 9

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 9 preview image

Loading page image...

3.Visual Basic access keys are created by using which symbol in a button's Text property?(A)@(B)&(C)%(D)#B4.Which of the following steps specifiesPas the access key for a button?(A)Set the Text property to Com_pute.(B)Set the Text property to Com&pute.(C)Set the Text property to &Com_pute.(D)Set the Text property to comPute.B5.When a Visual Basic program is running, the user can move from one control to anotherusing the keyboard by pressing the(A)Tabkey.(B)Space bar.(C)Enter key.(D)Backspace key.A6.Which of the following properties determines the words appearing in a form's title bar?(A)Text(B)Caption(C)Name(D)TitleA7.What effect will the following statement have?lblOne.Visible=False(A)Enable lblOne(B)Delete lblOne(C)Make lblOne invisible(D)It is not a valid Visual Basic statement.C8.When creating a newprogramin Visual Basic, you are asked to supply a name for theprogram. If you do not specify a name, a default name is used. What is this default name?(A)Wapp followed by a number.(B)App followed by a number.(C)WindowsApp.(D)WindowsApp followed by a number.D

Page 10

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

Loading page image...

9.In Visual Basic, tooltips assist by showing a small caption about the purpose of each iconon the Toolbar. Howdo you make a tooltip appear?(A)Right click the Toolbar iconandselect purpose from the available options.(B)Position the mouse pointer over the icon for a few seconds.(C)Holddownashift key, then click the appropriate Toolbar icon to display itspurpose.(D)Holddown theAlt key, then click the appropriate Toolbar icon to display its purpose.B10.The Properties window plays an important role in the development of Visual Basicprograms. It is mainly used(A)to change how objects look and feel.(B)when opening programs stored on adisk.(C)to allow the developer to graphically design program components.(D)to set program related options like Program Name, Program Location, etc.A11.Sizing Handles make it very easy to resize virtually any control when developingprogramswith Visual Basic. When working in the Form Designer, how are these sizing handlesdisplayed?(A) A rectangle with 4 arrows, one in each corner, around your control.(B)A 3-D outline around your control.(C)A rectangle with small squares around your control.(D)None of the aboveC12.The Font dialog box allows you to select different Fonts, their style, their size, and someother special effects. How do you bring up this Font dialog box?(A)In the Properties window, click the ellipsis (…) on the right side of the settings box forthe Font property.(B)Double-click the control, and select Font Property.(C)Right-click the control, and select Font Property.(D)None of the aboveA13.What keyboard shortcutis usedto run the current program?(A)F4(B)F5(C)F6(D)F7B

Page 11

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

Loading page image...

14.What would be a good name for a text box to hold a persons first name?(A)txtFirstName(B)FirstName(C)txt First Name(D)First NameA15.What feature in Visual Basic allows you to make more room on yourscreenby temporarilyconcealingcertainwindows?(A)Help(B)Auto Hide(C)Auto Minimize(D)Expert-ViewB16.Whatproperty is available for most controls that allows you to hide/unhide them eithermanually by setting the property or by setting it during run time via code?(A)Clear(B)Refresh(C)Visible(D)View-ControlC17.What property of controls tells the order they receive the focus when the tab key is pressedduring run time?(A)Focus order(B)Focus number(C)Tab index(D)Control orderC18.What is thedefaulttab index of the first object placed on a form?(A)0(B)1(C)First(D)None of the aboveA19.What property of a control determines whether the control can receive the focus during runtime?(A)TabOrder(B)Focus(C)TabIndex(D)TabStopD

Page 12

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 12 preview image

Loading page image...

20.What menu is used toalign controls on a form?(A)View(B)Window(C)Build(D)FormatD21.Which of the following is not a submenu of theFormatmenu?(A)Align(B)Make Same Size(C)Center in Form(D)WidenD22.What property causes a control to disappear when set to False?(A)Detectible(B)Visible(C)Disabled(D)SupportedB23.What property restricts the use of a control when set to False?(A)Available(B)Accessible(C)Enabled(D)SupportedC24.Changing a control's Text property also changes how you refer to the control in code. (T/F)F25.You can display the Properties window by pressing F4. (T/F)T26.The Properties window is used to change how objects look and react. (T/F)T27.When working with text boxes, the sizing handles allow you to resize the object bydragging to make it wider or narrower. (T/F)T28.Once a text box control is placed on a form, itcannotbe resized or moved. (T/F)F29.F5 is the keyboard shortcut used to activate the Properties window. (T/F)F

Page 13

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 13 preview image

Loading page image...

30.Once a control is placed onaform, you can rename it by editing the Name property in theProperties window. (T/F)T31.The Description pane, located below the Properties windows, shows a brief explanation ofthe highlighted property. (T/F)T32.The ForeColor property of a text box changes the color of the form containing the text box.(T/F)F33.Shortcut keys like F5 (Run), allow you to perform certain tasks without the use of themouse. (T/F)T34.The recommended prefix for the name of a button control isbtn. (T/F)T35.The Auto Hide feature of the Toolbox is active when the pushpin is horizontal. (T/F)T36.A group of several controls can be resized or moved simultaneously. (T/F)T37.The control with tab index 1 is always the first control to receive the focus whentheprogram is run.(T/F)F38.Snap lines can be used to align the bottoms, middles, and tops of controls. (T/F)T39.The key combination Shift +arrow keycan be used to resize a control or a group ofcontrols. (T/F)TSection 2.3 Visual Basic Events1.When the user clicks a button, _________ israised.(A)an event(B)a method(C)a setting(D)a propertyA

Page 14

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 14 preview image

Loading page image...

2.Which of the following is not one of the three steps used to create a Visual Basic program?(A)create the interface(B)set the properties of the objects(C)specify the methods(D)write the codeC3.IntelliSense is a technology built into Visual Basic that assists the programmer by(A)automatically inserting text and words that have similar meaning to those currentlybeing entered by the programmer.(B)allowing the programmer to edit object properties from inside the code window.(C)replacing misspelled words with the correct spelling as soon as the programmer pressesthe Enter key.(D)automatically displaying the methods and properties available to a control.D4.What of the following is a correct statement for specifying the words toappear in the titlebar of Form1?(A)Form1.Text="MyText"(B)Form1.TitleBar="MyText"(C)Me.Text="MyText"(D)Me.Caption="MyText"C5.When will the following event procedure be executed?PrivateSubtxtBox_TextChanged(...)HandlestxtBox.TextChanged(A)when text is added to the text box(B)when text is deleted from the text box(C)when text is modified inside the text box(D)All of the aboveD6.Which of the following statements specifies that the color of the text in txtBox be red?(A)txtBox.Text=Color.Red(B)txtBox.ForeColor=Color.Red(C)txtBox.ForeColor=Red(D)txtBox=Color.RedB

Page 15

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 15 preview image

Loading page image...

7.The statementbtnButton.Focus()(A)has no effect.(B)moves the focus to the buttonbtnButton.(C)has the same effect as clicking on the buttonbtnButton.(D)is invalid in Visual Basic.B8.Which of the following statements sets the words on a button to "Push Me"?(A)btnButton.Name="PushMe"(B)btnButton.Text=PushMe(C)btnButton.Text="PushMe"(D)btnButton="PushMe"C9.Which of the following is a valid statement in Visual Basic?(A)Form1.Text="Revenue"(B)Form1.Caption="Revenue"(C)btnButton.Text=PushMe(D)Me.Text="Revenue"D10.A user action such as clicking a button is called(A)an accident(B)an event(C)a procedure(D)a propertyB11.Visual Basic responds to events using which of the following?(A) a code procedure(B) an event procedure(C) a form procedure(D) a propertyB12.Which of the following statements will place "Greetings" in the title bar of a form?(A)Me.Title="Greetings"(B)Me.Text="Greetings"(C)Me.Name="Greetings"(D)Me.Heading="Greetings"B

Page 16

Test Bank for Introduction to Programming Using Visual Basic, 11th Edition - Page 16 preview image

Loading page image...

13.The following lines of code are valid. (T/F)PrivateSubClick(...)HandlesClicktxtBox.Text=""EndSubF14.Keywordsare also referred to asreserved words. (T/F)T15.Complete Wordis a helpful feature produced by the Microsoft Technology calledIntelliSense. (T/F)T16.The Visual BasicCode Editorwill automatically detect certain types of errors as you areentering code. (T/F)T17.The statementtxtBox.Font.Bold=Truewill produce an error message when Visual Basic tries to execute it. (T/F)T18.The Visual Basic Code Editorautomatically capitalizes the first letters of reserved words.(T/F)T19.The first line of an event procedure must contain both the keyword Sub and Handles. (T/F)T20.The statementbtnButton="Press"produces an error message. (T/F)T21.The Properties window cannot be used to display the events associated with a control.(T/F)F22.Write a statement that gives the focus to btnCompute.btnCompute.Focus()23.Write astatement 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