0% found this document useful (0 votes)
56 views3 pages

Bit 2105 Application Programming

The document provides instructions for a university examination on information technology. It lists 5 questions assessing knowledge of VB.NET concepts like menus, constants, variables, controls, event handling, parsing, and arrays. Students are asked to define and explain programming terms, write code samples, identify errors, and differentiate between programming concepts. The exam tests both conceptual understanding and practical application of VB.NET skills over 2 hours.

Uploaded by

Manu Ogutu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views3 pages

Bit 2105 Application Programming

The document provides instructions for a university examination on information technology. It lists 5 questions assessing knowledge of VB.NET concepts like menus, constants, variables, controls, event handling, parsing, and arrays. Students are asked to define and explain programming terms, write code samples, identify errors, and differentiate between programming concepts. The exam tests both conceptual understanding and practical application of VB.NET skills over 2 hours.

Uploaded by

Manu Ogutu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

UNIVERSITY EXAMINATIONS: 2013/2014

ORDINARY EXAMINATION FOR THE BACHELOR OF SCIENCE


IN INFORMATION TECHNOLOGY

BIT 2105 APPLICATION PROGRAMMING

DATE: AUGUST, 2014 TIME: 2 HOURS


INSTRUCTIONS: Answer Question ONE and any other TWO

QUESTION ONE (20 MARKS)


a) i) Define Menus as used in vb.net [2 Marks]
ii) Explain why you would prefer menus to command buttons in your application.
[3 Marks]
iii) Describe Menu Strips as used in vb.net [3 Marks]
iv) List three controls that can be added to menu strips [3 Marks]

iv) Briefly describe Microsoft's Visual Studio (also called Visual Studio.NET)
programming environment [4 Marks]

b) i) Draw a flow chart for the if statement shown below [4 Marks]

If HoursDecimal <= 40D Then

'Pay only regular time

GrossPayDecimal = Decimal.Round(HoursDecimal *
PayRateDecimal, 2)

Else

'Pay regular time + overtime

GrossPayDecimal = Decimal.Round((40D *
PayRateDecimal) + _

1
((HoursDecimal - 40D) * PayRateDecimal *
1.5D), 2)

End If

ii) VB has two different types of constants. Describe them using examples to

illustrate. [6 Marks]

c) Describe how local variables and module level variables are declared in VB
[3 Marks]

d) Differentiate between list box, checked Listbox and combo box as used in VB.NET

[2 Marks]

QUESTION TWO (20 MARKS)


a) A firm needs to be able to quickly compute the value of any item in inventory.
Build a form that will enable inputting values into three textboxes: (1) product
description, (2) quantity on hand, and (3) product cost.

Clicking a Compute button should display the total value of the inventory product
to an output textbox. Clicking a Reset button will reset the form. Clicking an Exit
button will close the form. Write code to perform all the above. [20 Marks]

QUESTION THREE [20MARKS]


a) When Visual Studio is installed on a computer, there are two mandatory
components to the installation and an optional third component. Describe these
three components. [12 Marks]

b) The VB code segment shown below is incorrect. Identify the error and write the
correct code. [8 Marks]

Illegal Syntax

If HoursDecimal <= 40D Then

RegularPayCheckBox.Checked = True

2
Else if RegularPayCheckBox.Checked = False

End If

QUESTION FOUR [20MARKS]


a) Using vb.net to illustrate describe the input –process- output model of programming
[9 Marks]

b) Describe using examples how to define keyboard access keys (hot keys) for buttons
and other controls. [7 Marks]

c) Explain the use of hot keys in VB .net [4 Marks]

QUESTION FIVE (20 MARKS)


a) Using examples to illustrate differentiate between the Parse method and the
Globalization enumeration as used in vb.net. [6 Marks]

b) Describe using an example in VB the use of ToUpper and Tolower methods

[6 Marks]

c) Using sample VB codes declare a module-level array and store values to the array
immediately. [8 Marks]

You might also like