Professional Documents
Culture Documents
Visual Programming - Prog2104c PDF
Visual Programming - Prog2104c PDF
Visual Programming - Prog2104c PDF
Security
Cohort: BCNS/18A/FT
Duration: 3 Hours
Instructions to Candidates:
Page 1 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1
SECTION A (Compulsory)
d) Name any three programming languages you know under the .Net
Framework.
(3 marks)
Page 2 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1
SECTION B
(Answer any two questions)
(10 marks)
Fig 2.1
b) You are given the following listbox as shown below. Write codes to
implement the four buttons: Add Item, Delete Item, Clear, and Item Count.
(3 + 2 + 2 + 2 + 2 marks)
Page 3 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1
Fig 2.2
Fig 2.3
Page 4 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1
c) Identify the four different types of Windows menus shown in the screenshots
below.
(4 marks)
Fig 2.4
Page 5 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1
Question 3 (30 Marks)
Fig 3 shows some screenshots of a small application to display the details of some
birds on sale. It consists of the ID (integer), Bird (String), Gender (String), Age
(Number) and the Price (Integer). All the details are stored in a table named ‘tblBird’
in an MS Access database named ‘Ajit_Bird.mdb’. Once the ‘Display in textbox’
button is pressed, the first record is displayed in the textboxes. Navigation buttons
are also provided to browse through the different records.
Page 6 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1
(iii) to display the data (first record) in the text boxes using the button ‘Display in
textboxes’ which calls a dedicated procedure named ‘display_record ()’
to exclusively display the data.
(4 marks)
(iv) to display all the records at one go in the datagrid (dgBird).
(3 marks)
Page 7 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1
Fig 3 (a) (iii)
(b) Write VB.Net codes to implement the ‘First’ and the ‘Next’ buttons. Your codes
should call the ‘display_record ()’.
(4 + 2 marks)
Fig 4 shows some screenshots of a small application to display the details of some
birds on sale. It consists of the ID (integer), Bird (String), Gender (String), Age
(Number) and the Price (Integer). All the details are stored in an external plain text
file (Notepad File) named ‘myBird.txt’. Once the ‘Display records in Listbox’ button
is pressed, all the records are displayed in the Listbox named ‘lstAllRecords’. When
the ‘Classify by Gender’ button is pressed the records are displayed in different list
boxes based on their ‘Gender’.
Page 8 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1
Fig 4.1
Fig 4.2
Page 9 of 9
Visual Programming (PROG2104C) SITE/June 2019 Sem 1