Study your flashcards anywhere!

Download the official Cram app for free >

  • 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

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


Play button


Play button




Click to flip

76 Cards in this Set

  • Front
  • Back
A programming language whereby the user actions determine the sequence of actions.
Object-Oriented Programming (OOP)

e.g. C++, Visual Basic .NET & Java
A programming language whereby the programmer determines the sequence of actions by program logic.
Procedural Programming

e.g. BASIC, C, COBOL, FORTRAN, PL/I and Pascal
A programming language whereby both the user and programmer determine the sequence of actions.
Event Driven Programming

e.g. Early versions of Visual Basic
Forms and controls are examples of...
Objects (the nouns of VB)
Windows and dialog boxes you place on the screen are examplse of...
Text boxes, buttons and list boxes are examples of...
Describing an object by its name, color, size, location or how it will behave are examples of...
Properties (the adjectives of OOP)
The syntax to refer to the Text property of a form called Form1 is:

Name the Object, add a period, and then name the property
Actions associated with objects are known as...
Methods (the verbs of OOP)
The syntax to apply the method Show to the object Form1 and then btnExit is:
Form1.Show and btnExit.Show

Name the Object, add a period, and then name the Method.
When a user takes an action, such as clicking a button or pressing a key, it is an example of...
An Event
A template or blueprint used to create a new object is...
A Class
Classes contain the definition of all available...
Properties, Methods and Events
Each time you create a new object, it must be based on a...
An individual Object of a class is called:
An Instance of the class.
The syntax for object YourCar and event Crash:

Object, underscore (not period) and then Event
Visual Basic .NET is sometimes referred to as Version...
Seven (7)
Microsoft Intermediate Language (MSIL) code is called:
Managed Code
Three advantages of the .NET framework are:
1. Easier development of Web-based and Windows-based applications

2. Allows objects from different languages to operate together

3. Standardizes how the languages refer to data and objects
The three-step process for planning a VB application are:
1. Design the user interface
2. Plan the properties
3. Plan the Basic code
The screens the user will see when running your project are known as the:
User Interface
Pseudocode is...
An English expression or comment that describes and action.
The three-step process for constructing the VB project:
1. Define the user interface
2. Set the properties
3. Write the Basic code
When you define the user interface you are actually defining what?
The Objects
When you set the properties of the objects in your project, you are actually...
Describing each Object
When you write the Basic code for your project you are defining what?
The actions of your program
A Visual Basic application is also called a:
One solution equals
One project
A Visual Basic application consists of one project, true or false? can contain many.
A project can contain one or more form files, true or false?
True...they can contain multiple forms and additional files
This text file holds information about the solution and the projects it contains:
Solution File, the primary file for the solution (.sln)
The file you open to work on or run your project is the:
Solution File (.sln)
This file stores information about the selected options, so that all customizations can be restored each time you open the solution:
Solution User Options File (.suo)
This text file holds the definition of a form, its controls, and code procedures:
Visual Basic file (.vb)
The .vb can only be opened by the Visual Studio editor, true or false? can be opened by any editor, so be careful!
This text file defines all resources used by the form, including strings of text, numbers and any graphics:
Resource file for a form (.resx)
A text file that describes the project and lists the files that are included in the project:
Project File (.vbproj)
This text file holds project option settings, so that the next time you open the project, all selected options will be restored:
Project User Option File (.vbproj.user)
This is the only file you will open directly:
The Solution File (.sln)
IDE stands for:
Integrated Development Environment
The Visual Studio environment contains these six tools:
1. Form designer
2. Editor
3. Compiler
4. Debugger
5. Object browser
6. Help facility
MSDN stands for:
Microsoft Developer Network library
Visual Basic's three distinct modes are:
1. Design time
2. Run time
3. Break time
Define "design time"
The period of time when you are designing the user interface and writing the code.
Define "run time"
The period of time when you are running your project.
Define "break time"
The period of time when you get a run-time error or pause project execution.
Visual Basic ignores events for which no procedures are written, true or false?
Define "remark statements"
Also known as "comments", they are used for project documentation only. They begin with an apostrophe.
Define "assignment statements"
Assigns a value to a property or variable.
What are the steps in Planning a Project?
1. Sketch the Interface
2. List the Objects and Properties needed
3. Write the Pseudocode for the Event Procedures
What are the steps in Creating a Project?
1. Define the user interface
2. Set the properties
3. Write teh Basic code
List some of the components of the Visual Studio IDE
1. Form designer
2. Editor
3. Compiler
4. Debugger
5. Object browswer
6. Help facility
List the modes of Visual Basic
1. Design time
2. Run time
3. Break time
What is the difference between the Name and Text properties of a control?
The Name refers to the control in code; the Text holds the words the user sees on the screen.
What does an Assignment Statement do?
It assigns a value to a property or a variable.
What types of errors can occur in a Visual Basic project?
1. Syntax errors
2. Run-time errors
3. Logic errors
What is a syntax error, when does it occur, and what might cause it?
When you break VB's rules for punctuation, format, or spelling. It occurs when you are running the program to test whether it works. VB will automatically correct most syntax errors, but examples are incorrect spelling of controls, omitting a closing quote, or forgeting the opening and closing parentheses after a method name (e.g. "Close()").
What is a run-time error, when does it occur, and what might cause it?
They are statements that are correctly formed Basic statements and pass the syntax checking; however, the statements fail to execute. They occur during execution of the project and show you a dialog box highlighting the statement causing the problem. They can be caused by attempting to do impossible math calculations, such as calculate with non-numeric 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?
These errors allow your program to run, but it produces incorrect results. Perhaps the results of a calculation or incorrect or the wrong text appears, or the text is OK but apears in the wrong location. They do not result in an error message because the program runs...but it doesn't work or look right. Examples include: incorrect computations; incorrect text; switched procedures in two or more objects; etc.
What is "debugging"?
The process of finding and fixing programming errors.
Define "clean compile"
When a project is compiled and there are zero errors of any kind.
How are objects and properties related to each other?
Objects are to nouns as Properties are to adjectives.
What is the purpose of the Visual Basic file types: .sln, .suo, and .vb?
The .sln (solution) file holds information about the solution and the projects it contains; it is the main file for the solution.
The .suo (solution user options) file stores information about the selected options, so that all the customizations can be restored each time you open the solution.
The .vb file holds the definition of a form, its controls, and code procedures. This is a text file that can be opened with any text editor so BE CAREFUL!
What does btnPush_Click mean? To what does the btnPush refer? To what does Click refer?
It is an event procedure. btnPush refers to the object and Click refers to the event that will be carried out.
What is a Visual Basic event? Give some examples of events.
An event occurs when the user takes an action such as clicking a button or scrolling. Events can also be triggered by actions of other objects, such as repainting a form or a timer reaching a preset point.
What is the Declarations section of a file? What belongs there?
The top portion of the file before the code for procedures. An explanation (remarks) by the programmer about the project are best put in this section.
You can display program output in a text box or a label. When should you use a text box? When is a label appropriate?
A text box's primary function is that of user input. If a user should be allowed to edit the output, a text box should be used. In contrast, a label should be used to display ouput that cannot be edited by the user.
How does the behavior of radio buttons differ from the behavior of check boxes?
Radio buttons are like a group instance of the control (within a form or group box control) and only one of them can be selected at any one time, like a multiple-choice question on a test. Check boxes, however, are always individual instances of the control and are like individual true-false questions.
If you want two groups of radio buttons on a form, how can you make the groups operate independently?
You would need to use the group box control to isolate each group from one another.
Explain how to make a graphic appear in a picture box control.
First, add and resize the picture box control on the form. Second, change the image property so that it knows the location of the image to be displayed. Each image is eventually stored in the resource file of the project, but at first you need to import them. Third, you must change the SizeMode property to fit the image as you want.
Describe how to select several labels and set them all to 12-point font size at once.
Either click and drag around the labels or shift-click on each one to select them. Then modify the font property to 12-point.
What is a ToolTip? How can you make a ToolTip appear?
They are text that appear when the user pauses the cursor over the control on a form and gives them informatino pertinent to that control. Simply add the ToolTip control to a form by selecting it and clicking anywhere on the form. Then enable the ToolTip property for the objects you want and type in the information within the properties for that same object.
What is the focus? How can you control which object has the focus?
The focus is what it sounds like: the object which has the focus of the cursor. Initially the focus starts on a page with the object which has the lowest Focus value (default being 0). You can modify the Focus by changing the properties of the objects you want on the form individually or you can open the Tab Order view from the View menu.
How are With and End With statements used? Give an example.
They are used when you want to change multiple properties of an object within an event procedure without having to type in the object for each property. Basically, it saves coding time as well as execution time. For example: With lblMessage; (next line) .Text "Blah blah"; .ForeColor Color.Blue; .Focus(); End With
What is concatenation and when would it be useful?
It is used to join strings of text, such as joining a literal and a property. Use an ampersand (&), preceded and followed by a space, between the two strings.
Explain how to continue a very long Basic statement onto another line.
Simply add a space, then an underscore (_) and then press Enter, continuing the code on the next line.