Computer Science
Class-VIII
Chapter-2 Introduction to Visual Basic
Section-1
A. Answer these questions:
1. What was the basic aim of creating Visual Basic Programming system?
Answer: The basic aim of creating this system was to give a user friendly environment that supports Graphical User Interface.
2. Why is Visual Basic programming system called Visual Basic?
Answer: Visual basic was one of the first systems that made it practical for writing programs for the windows operating system. This is why it is called visual basic.
3. What is the extension with which the form is saved?
Answer: A form is saved with an extension of .frm.
B. Tick the correct option:
1. Shape too is used to add________ to a form.
a. line b. message c. shape d. list
Answer: Shape
2. Text box tool is used to display___________ and enter text.
a. line b. circle c. message d. film
Answer: Message
3. Line tool is used to draw__________ in a form.
a. circle b. straight line c. rectangle d. square
Answer: Straight line
C. Write the full forms:
1. BASIC__________ 2. GUI_____________
3. CUI___________ 4. IDE_____________
Answer:
1. Beginners all purpose symbolic instruction code.
2. Graphical User Interface.
3. Character User Interface.
4. Integrated Development Environment.
D. Cancel the wrong word:
1. (Recent/new) is the default tab with standard EXE option selected.
Answer: Recent is wrong.
2. (Pointer/Label) helps in resizing and moving an object.
Answer: Label is wrong
3. (Text box/Label) displays a text that the user cannot modify or interact with.
Answer: Text box is wrong
4. (Properties/form layout) window determines the starting position of the form relative to the screen.
Answer: Properties is wrong
5. (Form design/code) window is placed in the form of a grid used to design a form.
Answer: Code is wrong
Section-2
A. Fill in the blanks:
1. Visual Basic is an ______ programming language.
Answer: Event driven
2. IDE stands for__________.
Answer: Integrated development environment
3. _________ displays the controls that can be used to design a form.
Answer: Form
4. Visual Basic is derived from___________.
Answer: Basic
5. ________ is an action performed either by using the mouse or the keyboard.
Answer: An Event
B. Give the difference between:
1. Visual Basic and Basic.
Answer: Basic is a simple language with simple programming constructs.
Visual Basic was one of the first systems that made it practical for writing programs for the windows operating system.
2. Form Design window and form layout window.
Answer: Form design window is placed in the form of a grid used to design a form.
Form layout window determines the starting position of the form relative to the screen.
3. Toolbox and Tool Bar.
Answer: The Toolbox contains a set of controls that are used to place on a form while designing it.
Tool Bar contains tools as a quick access for different options present in the menus of the Menu Bar.
4. Project Explorer window and Properties window.
Answer: The project explorer window displays a list of all the forms of a project.
Properties Window is also present at the right side of the Visual Basic window. It displays the various properties of the objects selected on the form.
5. Project and Form.
Answer: A project in Visual Basic is a collection of different objects like forms.
A form could be an introduction screen.
C. State True or false:
1. Basic supports character user interface.
Answer: T
2. Visual Basic is an event driven programming language.
Answer: T
3. The Menu Bar displays the name of the project.
Answer: F
4. Check box creates radio buttons.
Answer: F
5. Line tool is used to draw straight lines in a form.
Answer: T
D. Answer the following questions:
1. Why do you use Visual Basic? Give at least three reasons.
Answer: Visual Basic is use to give a user friendly environment that supports Graphical User Interface.
Three reasons:
1. An educational program for teaching any module for school or college level students.
2. For businessmen, it can create business programs.
3. It can create programs for programmers who create games.
2. What is an event and an event driven programming language?
Answer: An event is any action performed either by using the mouse click, double click.
Event driven programming is a way of programming in which the flow of the program is determined by an event.
3. What is IDE? Name all the components of Visual Basic IDE.
Answer: IDE stands for integrated development environment. It is a term commonly used in programming world to describe the interface and environment.
Components of IDE:
1. Menu bar 2. Tool bar 3. Tool box 4. Project explorer
5. Properties window 6. Form design window 7. form layout window
8. Code window.
4. How do you save a project and a form in Visual Basic?
Answer: Steps to save project and form:
Step 1: Click file menu->Save project as.... option.
Step 2: The save file as dialog box appears. Enter the name of the form here. Click on save button.
5. What are the three different ways of executing a form?
Answer:
1. Click on Run menu to execute the form.
2.Click on start button to execute the form.
3. The Output window appears.
6. Explain the three tabs of the New project window.
Answer:
a. New- this is the default tab with standard EXE option selected. It helps you to create a new project.
b. Existing - This tab displays the listing of the projects created earlier and stored in the system.
c. Recent- This tab displays the list of the most recently created projects.
7. How do you get the code window?
Answer:
Step 1: Click on View menu- View code option.
Step 2: The code window appears.
Step 3: You can also get the code window by double clicking anywhere on the form in the design mode.
8. How will you insert controls in Visual Basic project?
Answer:
Step 1: Click on start menu to open Visual basic.
Step 2: Select Standard EXE option.
Step 3: Click on create button.
Step 4: Use the objects present on the toolbox to design the controls on the form.
Step 5: Go to properties window and change the properties.
Step 6: Execute the form by click on start tool.
Step 7: Click on stop tool to stop the execution.
No comments:
Post a Comment