bsc (hons) computer science with network security bsc (hons) business information systems - school...

12
Page 1 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1 BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems Cohorts: BCNS/16B/FT, BIS/16B/FT Examinations for 2017 2018 / Semester 1 Resit Examinations for BIS/14B/FT, BCNS/14B/FT & BCNS/16A/FT MODULE : Visual Programming MODULE CODE : PROG 2104C/PROG 2106C Duration : 3 Hours This question paper contains 4 questions and 12 pages. Instructions to Candidates: 1. This question paper consists of two sections: Section A and Section B. 2. Section A is compulsory . 3. Answer any two questions from Section B. 4. Questions may be answered in any order but should be clearly marked 5. Start each question on a new page 6. Total marks 100.

Upload: others

Post on 18-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 1 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

BSc (Hons) Computer Science with Network

Security

BSc (Hons) Business Information Systems

Cohorts: BCNS/16B/FT, BIS/16B/FT

Examinations for 2017 – 2018 / Semester 1

Resit Examinations for BIS/14B/FT, BCNS/14B/FT &

BCNS/16A/FT

MODULE : Visual Programming

MODULE CODE : PROG 2104C/PROG 2106C

Duration : 3 Hours

This question paper contains 4 questions and 12 pages.

Instructions to Candidates: 1. This question paper consists of two sections: Section A and

Section B.

2. Section A is compulsory.

3. Answer any two questions from Section B.

4. Questions may be answered in any order but should be clearly

marked

5. Start each question on a new page

6. Total marks 100.

Page 2: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 2 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

SECTION A (Compulsory)

QUESTION 1: (40 MARKS)

a) The Norman’s design guideline applied to user interface design of computer

applications consist of six principles. With the help of examples, and using

diagrams where necessary, write short notes on any two Norman’s design

principles.

(12 marks)

b) In HCI there are different types of selection controls which can be used in

designing VB.Net applications. Some of these are :

– Radio Buttons

– Check Boxes

– List Boxes

– Combo Boxes

Using appropriate examples and diagrams write short notes on the following

(i) Radio buttons (3 marks)

(ii) Check boxes, (3 marks)

(iii) List Boxes (3 marks)

(iv) and Combo boxes (3 marks)

c) Identify and write short notes on the four different types of Windows menus

shown in the screenshots below

Page 3: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 3 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

(4 marks)

d) The .Net Framework consists of three main components. Name and briefly

describe these three components supporting your answer with an appropriate

diagram.

(9 + 3 marks)

Page 4: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 4 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

SECTION B

(Answer any two questions)

QUESTION 2: (30 MARKS)

a) Fig 2(a) (i) – (iii) shows the random outcome of 6-faced die when the

“Random” button is pressed. Write VB.Net codes to implement the die

outcome application.

Fig 2(a) (i)

Fig 2(a) (ii)

Page 5: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 5 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

Fig 2(a) (iii)

(10 marks)

b) (i) Design a form where a user can enter an integer number. The form should

have two buttons one using an ‘If Statement’ and a second one using ‘Select

Case’ to check and display if the number entered is either even or odd.

(2 marks)

(ii) Write VB.Net codes to implement the two buttons.

(8 marks)

c) Fig 2(c) (i) & Fig 2 (c) (ii) show a form to validate the entry of an Email address by checking for the presence of an ‘@’ sign.

Write VB.Net codes for the ‘Check Email Check Address’ button.

Page 6: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 6 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

Fig 2(c) (i)

Fig 2 (c) (ii)

(10 marks)

Page 7: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 7 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

Question 3 [30 Marks]

(a) Below are three screenshots (Fig 3(a)(i) – Fig 3(a) (iv)) of a small application to

display the details of flights. It consists of the Flight_Id (integer), FlightNo(String),

Destination, Distance (x 1000 km) (integer) and the fare (x Rs 1000) (integer). All

the details are stored in an MS Access database named ‘Flight.mdb’. Once the

form is loaded, the different fields of the first record is displayed in the

textboxes.

Different buttons are provided for navigational purposes in the text boxes. When

the button ‘Display data in datagrid’ is pressed, the datagrid (dgView) is

populated with the records from the table ‘tbl_Flight’ as shown below.

Fig 3 (a) (i)

Page 8: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 8 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

Fig 3 (a) (ii)

Fig 3 (a) (iii)

Page 9: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 9 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

Fig 3 (a) (iv)

Write VB.Net Codes to implement:

(i) The ‘Form Load’ event which calls a sub procedure ‘Display_Record()

(10 + 4 marks)

(ii) The ‘Display data in datagrid’ button. (6 marks)

(iii) The ‘Next’ button (4 marks)

(b) With the help of a diagram explain briefly the ADO.NET components.

(6 Marks)

Page 10: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 10 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

Question 4 [30 Marks]

a) Below are four (Fig 4.1 – 4.4) screenshots of a small application to display the

details of flights. It consists of the Flight_Id (integer), FlightNo(String),

Destination, Distance (x 1000 km) (integer) and the fare (x Rs 1000) (integer).

All the details are stored in an external plain text file (Notepad File) named

‘Flight.txt’. Once the Load Button is pressed the different record is displayed in

the listbox as shown below:

Write VB.Net codes for the following:

(i) To read in the data in the text file and display them in the listbox as

shown below.

(12 marks)

(ii) To read in the data in the text file and display the first record. (This

includes reading the text file, line by line till the end of the file; breaking

each individual line into corresponding words (fields of the records);

using a sub procedure called ‘displayRecord1()’ which will display one

record at a time in the textboxes.

(8 marks)

(iii) The ‘Next’ button (including message when user is already at last

record) (5 marks)

(iv) The ‘First’ button (including message when user is already at First

record) (5 marks)

Page 11: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 11 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

Fig 4.1

Fig 4.2

Page 12: BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems - SCHOOL OF INNOVATIVE... · 2018. 8. 23. · Page 1 of 12 Visual Programming (PROG2104C/2106C)

Page 12 of 12 Visual Programming (PROG2104C/2106C) SITE/Dec 2017/2018 Sem 1

Fig 4.3

Fig 4.4

***END OF QUESTION PAPER***