Overview Be able to list types and examples of programming

advertisement
Overview
1. Be able to list types and examples of programming languages.
2. For object-oriented programming (OOP) give a brief description of each of the following
 Class
 Encapsulation
 Abstraction
 Inheritance
Tutorial 1 items.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
Provide the correct naming conventions for objects such as Check Box, Label, Command
Button
When saving a Visual Basic Project, be able to give the extensions of the files in the project.
Explain the difference between choosing to "Run" the Program and "Starting with a full
compile".Define a "control" and give 5 examples of controls available in VB.
An object placed on a form, check box, frame and command button.Be able to discuss the
difference between loading and showing forms. What are the VB statements that are used for
these tasks?
Be able to discuss the ways of removing a form from view and memory.
What is the difference between properties and methods?
What is the purpose of a splash screen?
What is the purpose of the "End" statement in Visual Basic?
What is the function of the object's code window?
What does the Autosize property do?
What is a "twip"?
How do you change the properties for more than one control at a time?
What property do you set to prevent a user from changing the size of a from?How do you
place a control into a frame?
How do you hide an object?
How do you open an objects code window?
What property is used to refer to an object when coding?
Design a small form using the following: command button, form, label,text box, check-box,
radio-button, combo box;
What is the difference between caption & name?
Where should command buttons be located?
What is the limit for how many command buttons should be on a screen?
Tutorial 2 Items
1.
2.
3.
4.
5.
6.
7.
8.
Compare procedure-oriented to object-oriented/event-driven
List the 4 steps in planning an event-driven application and how the TOE chart approach is
used in the planning
List 5 design tips for using objects on screens.
Explain the use of the tabindex property
Explain the usefulness of Access Keys
Be able to use the assignment statement
What is a VB function?
Give an example of the use of the two VB intrinsic functions: Val and Format
9.
10.
11.
12.
13.
14.
15.
Compare the concept of a Method with that of a Function. Write a VB statement to invoke
the PrintForm method to print a form called frmRegistration.
List 3 properties of a form and describe the purpose of each of the properties.
Assign the following string to a label named lblDisplay."Jumpin Jehosifats, I hates
RABBITS!"lblDisplay.Text = "Jumpin Jehosifats, I hates RABBITS!"
In VB code how would you set the focus to a text box named: txtName? txtName.SetFocus
What is a TOE chart and what is it used for?
What is used to group controls?
How would you tell vb to check for undeclared variables.
Tutorial 3 Items
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
How do you force vb to require declarations of variables? What type of variable does VB
create if you do not declare one in a Dim statement?
Write code to explicitly declare an integer variable named Total.
Define a scope of a variable & list the 3 types.
Explain the difference between a Modal Form and a Modeless Form.
Write the vb code to create a symbolic constant for pi.
Write the vb code to create a local variable for a command button, click even.
Write the vb code to create a form variable for a text box.
Write the vb code to create a variable to be accessed by multiple forms. Show how to use an
inputbox function to capture the value of the variable and show how to store it.
What is the newline character?
Give an example of an intrinsic constant.
Show how to set a command button as the default.
Tutorial 4 items
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Code an example of an IF-THEN-ELSE statement.
Code an example of a nested-if selection
Code an example of a Case statement.
Explain how the nested-if and the case are different.
For a conditional involving relational and logical operators
VB evaluation of conditionals involving And/Or—under what conditions is the “short-circuit”
taken?
Explain the difference in the option button and the check box
What is the use/why is there a need for a frame control.
How do you generate random numbers in Visual Basic?
What is the MsgBox funtion and what is it used for?
Write code that will display a message to the user based on a letter grade entered in a text box
( Range A - F ) named: txtInput
Be able to prepare and use a user-defined procedure
Define and declare a static variable.
Write code using the Message Box Function to display the string: "This is the last question of
the exam!"
Match
Object
Abstraction
Properties
Method
Class
Encapsulation
Inheritance
Modal
String
Integer
Variable
Constant
““
Assignment operator
Form window
Label
Combo box
Command button
Visual Basic
Form controls
Hiding internal details from the user
Characteristics of the object
Functionally associated with the object
Template for objects, properties & methods
Bundle up the objects through a class
Create new class from another class
Deal with the form before exiting
Up to 65,000 characters
%
Data name that can be stored
Used in place of literal
Literal or empty
=
User interface design area
Lbl
Use to perform an immediate action when clicked
Object-oriented/event-driven programming
language
Download