Visual Basic Ch. 6 - 9 Review Chapter 6 Formatting and Arrays 1.Use the Format$ string function to format numerical values, dates, and times.
Review the predefined numerical formats (Currency, Fixed, Standard, etc.) on pp. 214 & 215. You should be able to identify the differences between the predefined numerical formats there. Review customized numerical format techniques on p. 216. 2.Understand the concept of reusability.
Review pp. 226+ regarding reusability. This is a very important concept in computer science. Be able to explain how one can use code reusability in Visual Basic to be an efficient programmer. 3.Understand and use the concept of scope of variables. Be able to discuss the visibility and the lifetime of variables within a program.
Review pp. 230+ regarding the scope of variables. Be able to explain the visibility of a variable & how it is determined. Be able to explain the lifetime of a variable. Explain the three levels of scope with regard to variables: local, static, & global. 4.Use a scrollbar as input to a program. Use the value of the scrollbar to provide a subscript for an array.
Identify a scrollbar control and show how it can be used. 5.Use an array to store information.
Define an array. Demonstrate how an array is declared. Draw a diagram showing how a programmer might track the values of elements within an array on paper. 6.Use the Do-While loop construct in applications.
Explain the main difference(s) between Do-While and For-Next loops. Give an example of when a Do-While loop is a better choice than a For-Next loop. Show the proper syntax of a Do-While loop. Explain why indentation is important when coding loops of any type. 7.Use two drawing methods: Circle and Line.
Explain how the Circle method can be used demonstrating proper syntax. Explain how the Line method can be used demonstrating proper syntax. 8.Use three mouse events: MouseDown, MouseUp, and MouseMove.
Explain the difference between the MouseDown, MouseUp, and MouseMove events. Explain why MouseDown, MouseUp, and MouseMove are called events.
Chapter 7 Graphics 1.Understand and use the typesetting and computer display concepts associated with monitor and hardcopy displays.
Explain fonts, points, twips, and pixels. 2.Describe and use the various built-in coordinate systems provided in the ScaleMode property of the picture box and the form object.
Identify several built-in ScaleMode coordinate systems in Visual Basic: Twips, Points, Pixels, Inches, etc. (see p. 277). 3.Initialize and use user-defined coordinate systems appropriate to application programs. 4.Use the PSet method to draw points whose coordinates are stored in an array. 5.Use the Line method to draw lines.
Explain how the Line method can be used to draw boxes of various colors (see p. 288). 6.Use the Circle method to draw circles and ellipses of various sizes at various positions. 7.Use the color functions of Visual Basic.
Explain how the RGB function can be used to create colors in Visual Basic (see p. 285.)
Chapter 8 Arrays and Chaos 1.Use the Checked and Enabled properties in menu designs.
Explain how the Checked and Enabled properties are used in menus. 2.Implement menu control arrays.
Explain how a menu control array is used with a menu. Describe an example of a menu control array. 3.Use the Select Case statement in programs.
Demonstrate the proper syntax for a Select Case statement. Explain why a Select Case statement is an effective method of control in a program by giving an example. 4.Program with arrays.
Define an array and draw a desk-checking diagram for one. Show efficient programming by using an array with a loop. 5.Understand the idea of chaos in a dynamic system. 6.Write programs to illustrate the principles of chaos inherent in the non-linear difference equation: p2 = r * p1 * (1 - p1).
Chapter 9 File Handling 1.Understand and use the concepts associated with computer databases.
List and explain the differences between the 3 types of files used in Visual Basic. Demonstrate the proper syntax with the Open, Close, & Kill statements. Explain situations in which sequential and random access files would be best used. 2.Manipulate random access files.
Demonstrate the proper syntax with the Put and Get statements. 3.Program a simple database. 4.Integrate error-handling routines with programs.
Explain how the On Error Resume Next and the On Error GoTo line statements should be used to perform error-handling.
Basic Programming Ch. 9 Resources | Basic Programming Home Page