Professional Documents
Culture Documents
Bba 3rd Sem
Bba 3rd Sem
Q-1GUI stands for Graphical User Interface, a visual way for users to interact with
electronic devices or software through graphical elements such as icons and
buttons.
Q-2 TextBox, Button, Label, and CheckBox are four standard controls in VB (Visual
Basic).
Q-3 IDE stands for Integrated Development Environment, a software suite that
combines tools for coding, debugging, and compiling to facilitate software
development.
Q-4 A form is a graphical user interface (GUI) element that allows users to input
data or interact with a program through various controls such as buttons and text
fields.
Q-5 A variable is a storage location in a program that holds data and has a
specific name, data type, and value.
section B
Q1(a)The `InputBox` function in VB is used to gather input from the user, typically
through a text box, whereas the `MsgBox` function is employed to display a message
box with information or prompts for user interaction. In short, `InputBox` is for
receiving input, and `MsgBox` is for displaying messages.
Q2(a) User-defined data types allow programmers to create custom data structures.
In languages like C, C++, or some versions of BASIC, you can use structures or
classes to define these types.
Example in C:
```c
struct Point {
int x;
int y;
};
In this example, `Point` is a user-defined data type with members `x` and `y`. The
structure allows grouping related variables together, enhancing code organization
and readability.
Check Box:
A Check Box is a GUI element that presents users with a binary choice, typically
true/false or yes/no. Users can select or deselect a Check Box by clicking on it.
Message Box:
A Message Box is a dialog box that displays messages to the user. It provides a
simple way for software applications to communicate information, warnings, errors,
or to prompt the user for a decision.
Q4(b) MDI stands for Multiple Document Interface. It is a graphical user interface
design in which multiple documents or windows can be opened within a single
application.
1. **Parent Window:** The main window that acts as a container for child windows.
3. **Navigation:** Users can switch between open documents within the same
application.
4. **Menu and Toolbar:** MDI applications often have a shared menu and toolbar for
actions that apply to the entire application, along with specific actions for each
document.
5. **Event Binding:** In addition to properties, the window may also display events
associated with the selected object,
section - c
Q-2) The `Open` method for an ADO (ActiveX Data Objects) connection is used to
establish a connection to a data source. It is a part of the ADO Connection object,
and its syntax is as follows:
```vbscript
connection.Open ConnectionString, UserID, Password, Options
```
Example:
```vbscript
Dim conn
Set conn = CreateObject("ADODB.Connection")