0% found this document useful (0 votes)
14 views2 pages

Home Work CH 11 Class 8

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Home Work CH 11 Class 8

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CH-11 Basics of Visual Basic

A. Fill in the blanks:-


1. The environment of Visual Basic used for work is called Integrated Development Environment .
2. Data type used for holding a whole number is called Integer.
3. Visual basic is an event driven programming language.
4. Label and text boxes are the controls of Visual Basic.
5. BASIC was developed in 1963 By Microsoft Corporation at Dartmouth College USA.
B. State Whether true or false:-
1. Visual Basic and BASIC have no difference. -F
2. BASIC is Beginner All Purpose Symbolic Instruction Code. -T
3. Any happening around the program is called a property. -F
4. Visual Basic is the product of Sun Microsystems. -F
5. Form layout window is used to set the properties of a tool -T
6. Every control processes a unique name. -T
7. The date taken through the text box is considered as Numeric. -F
8. The code for the event is written separately in Code Editor Window. -T
C. Answer the following Questions:-
1. Differentiate between BASIC and Visual Basic.
Ans- Basic is a procedural language originally created as an alternative to hard programming tools
such as FORTAN, COBOL, Algol etc. While Visual Basic is an event driven language coupled with an
IDE, GUI builder and assorted tools.
2. Define different controls used in Visual Basic.
Ans- There are some controls in Visual Basic-
i) Label- This control is a label that enables you to display the text that a user cannot change directly.
ii) Text Box- This control is a text box that enables a user to display the information in design mode
as well as in run mode.
iii) Command- The command control that enables you to begin, interrupt or end a process as you do
in other windows applications
iv) Check box- The check box control that allows a user to select multiple choices out of given
choices.
3. What is a tool Box? Define some tools.
Ans- The tool box provides the user access to the most commonly used functions of a program.
Three are some common tools-
i) Combo box – It displays a drop down list of items which can be stored by adding items to
LIST from properties windows.
ii) Drive List Box- This is used to display the drives available on the specified path.
iii) File List Box- It display a list of files available on the specified path.
4. What is standard tool bar?
Ans- A toolbar icons for commonly used tasks. The standard toolbar displays icons for most
frequently used commands in Visual Basic.
5. What is code windows editor?
Ans- This is application used to write, display and edit Visual Basic code code(programming
statement).
6. Why do you use properties windows?
Ans- .This window helps user to maintain the characteristics of the controls like sizing, font,
background color, foreground color etc.
7. How will you take controls to a form?
Ans- i). Choose Project- Add user control from the main menu.
ii). Type the name of the Visual Basic file that will hold the code for the control and click ok.
iii). Add control from the tool box window just as you would when laying out a form.
8. How would you set a caption to any label?
Ans- Steps to set a caption-
i). Select label1 control.
ii). Select caption option from properties windows.
iii). Change caption of label from label1 to Name.
9. What is meant by locking a control?
Ans- By locking a control, it prevents the controls from being dragged to new size or location on the
design surface.
10. How will you change the font style and size?
Ans- Steps to change the font style and size-
i). Select control on our form.
ii). Select font option from properties windows.
iii). Click on font style. It shows font dialog box.
iv). Choose font style and font size.
v). Click on ok button.
11. What are the different data types?
Ans- The different data types of Visual Basic are integer, long, single, double, string, byte and
Boolean.
12. What is event? Why is VB called event driven programming language?
Ans- An event is a signal that informs an application that something important has occurred. For
example – When a user click a control. VB is called event driven programming language because the
programming code responds to the user interact events.

You might also like