You are on page 1of 3

1. Fill in the blanks. (a) .while loop (b) .Nested (c) .

Unary operators, Binary operators and Ternary operators (d) .Query (e) .Project Menu, Components option (f) . (g) .Tools, Menu Editor (h) .ADD Command Button (i) . 2. Multiple choice questions (a) (b) (c) (d) (e) iii. Unary operator ii i iv

3. Answer the following questions in brief (a) We use FORNEXT loop for situation where a task needs to be performed a specific numbers of times. Example: To display HELLO 5 times, write the code as shown below Private Sub Command1_Click() Dim VAR As Integer For VAR = 1 to 5 Step 1 Print HELLO Next VAR End Sub (b) There are three types of the DOLoop as shown below

1. Initialization: It

(c) MDI (Multiple document form) allows user to open another document irrespective of the previously opened documents. Multiple documents are supported by the window. When user implement this by converting a usual single form to a MDI form. After this MDI form will become the parent form and other form accessed within the parent window are known as the Child form. Two properties of the MDI application are as follow, 1. The child form of the MDI application can be accessed only in boundary of the parent form. 2. There can be many child form created within the parent form. (d) Menu Bar It is the standard feature of most of the windows applications. Menu Bar are used for easy navigation and control of an application. For example File, Edit, View etc.

Steps to create a Menu Bar in Visual Basic Click on Tools menu and go to Menu Editor then Menu Editor Dialog box will appear. In Menu Editor dialog box fill the options as follows: Type File in the Caption: text book. Type F in the Name: text box. Click on Next command button. The blue bar shifts to the next line. Click on the to create the options within the File menu. This is to create a submenu under the main File menu created. The caption and name textboxes will be blank so that the option caption and name can be added to the File menu. Repeat above all steps to add more options and menus to the application.

(e) Primitive data type A primitive type is predefined by the language and is named by reserved keywords. The eight primitive types supported by the Java programming language are: byte: The byte data type is an 8-bit signed twos complement integer. It has a minimum value of 128 and a maximum value of 127 (inclusive). short: The short data type is a 16-bit signed twos complement integer. It has a minimum value of 32, 768 and a maximum value of 32,767 (inclusive). int: The int data type is a 32-bit signed twos complement integer. It has a minimum value of 2,147, 483,648 and a maximum value of 2,147, 483, 647 (inclusive).

long: The long data type is a 64-bit signed twos complement integer. It has a minimum value of 9, 223,372,036,854,775,808 and a maximum value of
9, 223,372,036,854,775,807 (inclusive).

Float: The float data type is a single-precision 32-bit IEEE 754 floating point. Float is mainly used to save memory in large arrays of floating point numbers. It is never used where precision is required to be more accurate. double: The double type is a double-precision 64-bit IEEE 754 floating point. It is generally used as the default data type for decimal values. It is also never used where precision is required to be more accurate. boolean: The boolean data type has only two possible value: True or False. char: The char data type is a single 16-bit Unicode character. It has a minimum value of \u0000 (or 0) and a maximum value of \uffff (or 65,535 inclusive). It is used to store the single character.

(f) The ActiveX Data Objects (ADO) controls are used to connect the Visual Basic IDE and MS access 2007. Other uses of ADO controls are: Connecting the Text box to the fields of the Table. Executing the Form. Modification of the MS Access 2007 Table using ADO data control.