INTERNATIONAL INDIAN SCHOOL-DAMMAM DEPARTMENT OF COMPUTER SCIENCE BOYS’ SECONDARY SECTION Work Sheet No:01XIIP0809

advertisement

INTERNATIONAL INDIAN SCHOOL-DAMMAM

DEPARTMENT OF COMPUTER SCIENCE

BOYS’ SECONDARY SECTION

Work Sheet No:01XIIP0809

Chapter -1 Introduction to VB

I-Board Questions

1.What do you understand by the term Event Driven programming ? Explain. {delhi-2006}

Definition:

In computer programming , event-driven programming or event-based programming is a programming paradigm in which the flow of the program is determined by events — i.e. sensor outputs or user actions

( mouse clicks, key presses) or messages from other programs

When programming in VB the application developer must decide how the application interacts with the user. The user may click a mouse on various controls ,or press a key combination on the user interface. These are known as events.

The application developer must decide how the application must react to each of the user actions. This is called event driven programming.

In VB the application does not determine the flow. Instead, the events caused by the user determine the flow of the application. The applications are to be programmed to react to various external conditions known as events.

2. “Visual basic is not an Object Oriented language” . justify your statement. { SP-12007}

The basic factor, which decides that a programming language is Object Oriented, is that whether it follows Object Oriented paradigms or not. Object Oriented Languages works on a belief that everything logical or physical present in the world is an object. An object is an instance of a Class. A

Class is a repository to serve as a template for an object. A Class can be inherited from other Class’s, and is the feature that is not available in Visual Basic. There are other features like Polymorphism

(Function Overloading, Operator Overloading etc) that is also not available in visual basic. Due to these reason Visual Basic is a Object Based Language but not an Object Oriented Language.

3. What do you understand by the term IDE? Why is VB called IDE. {AI-2006}

An integrated development environment (IDE) also known as integrated design environment or integrated

debugging environment is a software application that provides comprehensive facilities to computer programmers for software development . An VB IDE normally consists of a:

 Form designer, project explorer, properties window

 Menu bar, title bar, tool box

VB is an IDE in which you can develop, run, test, and debug, your applications

4. What does Object Oriented Modeling Technique mean?

In this world everything that we see or feel is an object. Modeling physical world object is known as

Object Modeling technique. The modern software applications are designed using Object Modeling

Techniques. The common example for object can be “Student”, “Table”, “Car” etc.

5. What does a Variable mean and what is meant by its scope? State using suitable example

A variable is a container to hold some value. A variable is declared using data type.By variable scope we mean the visibility of the variable in the program. By default the variables have the scope inside the block in which they are declared.

6. Difference between Event Driven Programming and Object Oriented Programming. {compt.2006}

Event Driven Programming Object Oriented Programming

In

( computer programming which the is determined by sensor events

, event-driven programming or event-based programming is a programming paradigm in flow of the program

— i.e.

outputs or user actions mouse clicks, key presses) or messages from other programs

Object-oriented programming (OOP) is a programming paradigm that uses

" objects " and their interactions to design applications and computer programs.

Programming techniques may include features such as encapsulation , modularity , polymorphism , and inheritance . It was not commonly used in mainstream software application development until the early 1990s. Many modern programming languages now support OOP.

When programming in VB the application developer must decide how the application interacts with the user. The user may click a mouse on various controls ,or press a key combination on the user interface.

7. Difference between SDI and MDI. Write one example each of SDI and MDI type application

{delhi-2007}

Single document Multiple document interface(SDI) interface(MDI)

SDI applications allow only one open document frame window at a time

MDI applications allow multiple document frame windows to be open in the same instance of an application. An

MDI application has a window within which multiple MDI child windows, which are frame windows themselves, can be opened, each containing a separate document. In some applications, the child windows can be of different types, such as chart windows and spreadsheet windows. In that case, the menu bar can change as

MDI child windows of different types are activated.

Example Example MS-WORD, Power

Point

Windows Note pad, word pad

8. What are events? What are Event procedures? How are they related? {delhi-2007}

Events:

When programming in VB the application developer must decide how the application interacts with the user. The user may click a mouse on various controls ,or press a key combination on the user interface.These are known as events.

Event Procedure:

Event procedures :are VB procedure containing code that executed when event occurs(such as when user clicks a button).In VB applications are divided into smaller blocks called procedures.

9.What is ActiveX DLL? {dehi-2005}

An ActiveX DLL is a code component that runs in the same process as the client application. So it runs in the same address space as the client application that is using the component.

Any components you create to work with Microsoft Transaction Server must be ActiveX DLL components. Any other components you develop for use on the same machine as the client application can also be ActiveX DLL components. This is normally the preferred choice because it is easier to test (by adding another project using the new VB5 project group feature) and has better performance.

10. Name six common controls in VB. {dehi-2005}

Label, picture box, option box, command button, frame, text box, time control

11. Write names of any two properties which are common to text box , label object and command button object.{AI-2006} name properties, caption and font properties

12. What is time control ?

You can use this control to perform tasks at regular intervals. The main property of the timer control is interval, which determines how often the timer notifies your applications.

13. Explain the following Terms

(i) Modular Programming

(ii) Object Oriented Programming

(iii) Event Driven Programming

(iv) RAD

( i) Modular Programming

An approach of dividing a big programming task into small manageable program modules

(ii) Object Oriented Programming

A programming technique used to program with Object Oriented Programming languages and follows object oriented programming paradigms.

(iii) Event Driven Programming

In this type of programming the Events plays major role to execute a set of program code. Events are the actions such as Mouse Click, Double Click, Key Press etc.

(iv) RAD

Rapid Application Development is the current programming approach in which a prototype (or sample model) of the software application is made much before its actual implementation to give a feel of application before starting working with the actual code behind the application

.

14. Explain the term Client Server Computing using suitable example.

Client-Server Technology is the name of the technology that we use in modern day computer related tasks. Client Server Computing is the programming practice, which we adapt to develop Client Server

Application. A bank is a better example to understand the outcome of Client-Server Computing. In modern Banks the areas like Enquiry Counter, Teller, Manager etc are computerized through Client

Server technology. The Bank Premises can have one or two main servers that cater the need of many

Clients like the users working in the areas mentioned above.

Download