Questions on Chapter 01:
1- What is a programming language? Why you need to write or develop a program?2- What is object? Try to fine some objects and explain?
3- What is Control? List and explain at least five controls?
4- How many windows that you can see when you start Visual Basic 6.0? Explain each?
5- How to declare a variable in Visual Basic 6.0 and How to use it?
Answer on Chapter 01:
1/ A programming language is an artificial language designed to express computations that can be performed by a machine. we need to write or develop a program because the technology can't stay still..2/ All the controls in the ToolBox except the Pointer are objects in Visual Basic. These objects have associated properties, methods and events.For example, a TextBox accepts properties such as Enabled, Font, MultiLine, Text, Visible, Width, etc.
3/ Controls are tools in toolbox that allow us use it for draw or design on our form.
1.Label: use for notice or display text, title on our form that user can't change it when using.
2.Drive ListBox: use for select drives from a list on form.
3.Frame: use for grouping function or data together.
4.Shape: use for draw predefined colored and filled shapes, including rectangles, squares, ovals, circles.....etc
5.line: use it to display horizontal, vertical, or diagonal lines in a form
4/ There are 6 Windows that we can see when we start Visual Basic 6.
1.Main Window : consist of the title bar menu bar & toolbar.
-title bar: display title of our project.
-menu bar: a horizontal strip that contains lists of available menus for a certain program.
-toolbar: shortcut icons that has in menu bar.
2.Form Window : central of developing VBA.
3.Toolbox Window : selection menus for control used for draw & design on form.
4.Properties Window : use for edit value of objects.
5.Form Layout Window : show where our form will display on our screen.
6.Project Window: display list of all forms and modules in our project.
5/ There are 3 ways for declare variables in VB6.
-Default: allow we declare variables without use data type.
Ex: x = 10 (the default of data type is Variant)
-Implicit: allow we declare variables with data type by use suffix.
Ex: x% = 10 (It's meas that data type of x is integer)
-Explicit: allow we declare variables in syntax form:
Keyword (name of variable) As Datatype
Ex: Dim x as Integer
No comments:
Post a Comment