• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/38

Click to flip

38 Cards in this Set

  • Front
  • Back
What are objects and properties? How are they related to each other?
"An object is a thing (nouns).  Some examples of objects are forms and controls. Properties are like adjectives.  Properties tell something about an object, such as its name, color, size, location, or how it will behave.  Properties describe the objects just as an adjective describes a noun."
"In order to refer to a property, the object must first be named, then a period is added, and then the property is named."
What are the three steps for planning and creating Visual Basic projects?  Describe what happens in each step.
"When you write a Visual Basic application, you follow a three-step process for planning the project and then repeat the process for creating the project. The three steps involve setting up the user interface, defining the properties, and then creating the code."
Planning:
"Step 1 — Design the Interface:  When you plan the user interface, you draw a sketch of the screens the user will see when running your project."
"Step 2 — Plan the properties: For each object, write down the properties that you plan to set or change during the design of the form."
Step 3 — Plan the Basic code: In this step you plan the procedures that will execute when your project runs. You will determine which events require action to be taken and then make a step-by-step plan for those actions.
Programming
"Step 1 — Design the Interface: When you define the user interface, you create the forms and controls that you designed in the planning stage. During this step you will build forms that contain the objects you will use in your application."
"Step 2 — Plan the properties: Set the properties. When you set the properties of the objects, you give each object a name and define such attributes as the contents of a label, the size of the text, and the words that appear on top of a button and in the form’s title bar. Setting properties is like describing each object."
Step 3 — Write the Basic code: You will use Basic programming statements (called Basic code) to carry out the actions needed by your program. In this step the actions of the program are defined.
"     What is the purpose of these Visual Basic file types: .sln, .suo, and .vb?"
.sln — The solution file. A text file that holds information about the solution and the projects it contains. This is the primary file for the solution—the one that you open to work on or run your project.
".suo — Solution user options file. Stores information about the selected options, so that all customizations can be restored each time you open the solution."
".vb — A .vb file holds the definition of a form, its controls, and code procedures. This is a text file that you can open in any editor. Warning: You should not modify this file unless you are using the editor in the Visual Studio environment."
When is Visual Basic in design time? run time? debug time?
"Visual Basic has three distinct modes. While you are designing the user interface and writing code, you are in design time. When you are testing and running your project, you are in run time. You are in debug time if you get a run-time error or if you pause project execution. "
What is the purpose of the Name property of a control?
The Name property is used to refer to the control in the Basic code.
   Which property determines what appears on the form for a Label control?
The Text property determines what will appear on the form for a Label control.
   What is the purpose of the Text property of a button? the Text property of a form?
The Text property of a button determines what words will appear in the button.  The Text property of a form determines what will display in the form’s title bar.
  What does pushButton_Click mean? To what does pushButton refer? To what does Click refer?
pushbutton_Click — means that an object named pushButton contains an event called Click. 
pushButton — This is a button object that has been created. The Name property of the button has been set to pushButton.  The last word in the name identifies the object as a button.
Click — This refers to the Click event of the pushButton object.  This event occurs when the user places the mouse pointer over the pushButton object and clicks the mouse. 
9.      What is a Visual Basic event? Give some examples of events.
"Each user action can cause an event to occur, which triggers the code to execute in a procedure. For example, the user clicks on a button labeled Calculate. The clicking causes the button’s Click event to occur, and the program automatically jumps to a procedure that contains code to do the calculations. "
"Some examples of events include; clicking a button, pressing a key, scrolling, or closing a window. Events can also be triggered by actions of other objects, such as repainting a form or a timer reaching a preset point. "
What property must be set to center text in a label? What should be the value of the property?
The TextAlign property can be used to center text in a label.  The value of the TextAlign property should be set to MiddleCenter.
What is the Declarations section of a file? What belongs there?
"The Declarations section is located at the top of the file, above all of the code in the procedures.  It is a good location for remarks that identify the project name, the programmer name, the date the project was created, and a description of the project."
What is meant by the term debugging?
"Computer programs can contain errors.  Finding and fixing these errors, or “bugs”, is called debugging."
"What is a syntax error, when does it occur, and what might cause it?"
"A syntax error is the most obvious type of error.  A syntax error will occur when the rules of the VB language are not followed in the code.  Syntax errors might be caused by errors in punctuation, format, or spelling. Fortunately, the smart editor finds most syntax errors and even corrects many of them for you. The syntax errors that the editor cannot identify are found and reported by the compiler as it attempts to convert the code into intermediate machine language."
"What is a run-time error, when does it occur, and what might cause it?"
"If your project halts during execution, that’s called a run-time error or an exception. Visual Basic displays a dialog box and highlights the statement causing the problem. Run-time errors occur when statements cannot execute correctly. The statements are correctly formed Basic statements that pass the syntax checking; however, the statements fail to execute. Run-time errors can be caused by attempting to do impossible arithmetic operations, such as calculate with nonnumeric data, divide by zero, or find the square root of a negative number."
"What is a logic error, when does it occur, and what might cause it?"
"A logic error produces incorrect output.  The project may still run, but the results are incorrect. Perhaps the results of a calculation are incorrect or the wrong text appears or the text is OK but appears in the wrong location."
Tell the class of control and the likely purpose of each of these object names:
addressLabel
class of control: Label
purpose: a label that can be used to display a customer’s address
exitButton
class of control: Button
"purpose: when this button is clicked, the project stops running"
nameTextBox 
class of control: TextBox
purpose: The user can type their name in this box
textBlueRadioButton
class of control: Radio button
purpose: The user can change the color of the text to blue
What does context-sensitive Help mean? How can you use it to see the Help page for a button?
Context-sensitive Help means that the Help window will open to the appropriate topic for the currently selected object or word.  Context-sensitive Help is a quick way to view help on a topic.
"In order to see the Help page for a button—place a button on the form and then select the object. Press F1. Or, if you are in the Editor window, you can place the insertion point inside the name of the button and press F1. "