Preview

Maths

Satisfactory Essays
Open Document
Open Document
363 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Maths
NATIONAL UNIVERSITY OF SCIENCE AND TECHNOLOGY
FACULTY OF APPLIED SCIENCE
AUGUST EXAMINATIONS 2009

SUBJECT:
CODE:

VISUAL PROGRAMING CONCEPTS AND DEVELOPMENT
SCS 1206

INSTRUCTIONS TO CANDIDATES
Answer all questions from section A and any 2 from section B.
Each question carries 25 marks
3HOURS
SECTION A
QUESTION ONE
a)

Explain any four advantages of using Visual Programming as compared to
Commandline Programming for application development.
[8]
b)
With the aid of examples explain the following types of programming errors;
i) Logic errors, ii) Syntax errors. iii) Run-time errors.
c)

[2]
[2]
[2]

Define the following terms as used in Visual Programming
i.
User Interface ii. Label iii. Textbox iv. Checkbox
v.
Form

[10]

QUESTION TWO

Enter Word
Reverse

Palindrome

Write a program that implements the interface shown above and should be able to perform the following functions:

When the Reverse button is clicked, a word that the user inputs in the TextBox is reversed.When the Palindrome button is clicked, the program states wether the word that the user inputs in the TextBox is a palindrome or not.
[25]

SECTION B

QUESTION THREE
a)

Explain the following terms used in object models:
i. Inheritance ii. Generalization iii. Composition iv. Polymorphism
v. Aggregation

[10]

b)

Explain what is meant by “VB.NET implements single inheritance”

[3]

c)

Write code snippet of two classes showing the concept of inheritence, use UML diagrams to express yourself.
[12]

QUESTION FOUR
a)

b)

Define the following terms;
i)
Control ii) Object iii) Property iv) Event Procedure
v)
Method

[10]

Write a VB.NET program that reads the contents of an input file and displays them on the console. The file name is to be specified by the user through the Input
Box.
[15]

2

QUESTION FIVE
a)

What are the advantages and disadvantages of using the Implicit declaration as

You May Also Find These Documents Helpful

  • Good Essays

    To store or retrieve certain files, I need to be certain which files are being referred to. This is especially important where there are a large number of files with similar names or where I have not been given enough information to be sure that I will store or retrieve the correct…

    • 501 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    The first time you save your document, choose “Save As” in the File menu and provide a new name. (This will preserve the original file and its sample.)…

    • 1075 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    concepts of classes, objects, constructors, methods, access control, this keyword, overloading methods and constructors, parameter…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Math

    • 4047 Words
    • 10 Pages

    "The history of the present King of Great Britain is a history of repeated injuries and usurpations,…

    • 4047 Words
    • 10 Pages
    Satisfactory Essays
  • Powerful Essays

    MAth

    • 1081 Words
    • 5 Pages

    2. Describe the method you have chosen for your process recording and your plans for making it. For example, if you choose to submit a video file, how will you record and produce this? How will you upload it and send it to your instructor? (14 points)…

    • 1081 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Algebra

    • 548 Words
    • 3 Pages

    The next part has to deal with electric energy and how long it would take through a 1.0 centimeter wire at the speed of light. Electric energy travels at the…

    • 548 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Math

    • 288 Words
    • 1 Page

    The major achievements in human history during the Old Stone Age was the invention of tools, mastery over fire, and the development in language.…

    • 288 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Maths Business

    • 1539 Words
    • 7 Pages

    Communicating your written work  You will also be marked on your use of English. It is important to: - make sure that all your work is legible - use correct spelling, punctuation and grammar - use a style of writing which suits the person you are writing it for - organise your information clearly, so that you make yourself understood - use ICT terms where they are needed.…

    • 1539 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Math

    • 447 Words
    • 2 Pages

    2. A sample of 100 professors at Collin College is randomly selected. The average of their…

    • 447 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Math

    • 340 Words
    • 2 Pages

    This Discussion will give you the opportunity to calculate or identify the three measures of central tendency. You will be asked to select an appropriate real life situation in which one measure would be more appropriate than the other two measures of center.…

    • 340 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    math

    • 291 Words
    • 1 Page

    What were the most revolutionary social and economic developments of the last quarter of the nineteenth century?…

    • 291 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Math

    • 841 Words
    • 4 Pages

    The required DBQ differs from the standard essays in its emphasis on your ability to analyze and synthesize historical data and assess verbal, quantitative, or pictorial materials as historical evidence. Like the standard essays, however, the DBQ is judged on its thesis and argument.…

    • 841 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    lecture 23

    • 2252 Words
    • 17 Pages

    There are many technical terms that you will encounter as you go along studying Visual Basic. You must be very familiar with these terms to easily understand the instructions that will be given in the next lessons to come.…

    • 2252 Words
    • 17 Pages
    Powerful Essays
  • Satisfactory Essays

    Abstract Classes

    • 546 Words
    • 3 Pages

    Abstract classes CANNOT be instantiated.  So what are they good for?  How can you use them?  You might say that abstract classes are meant to be inherited  It contains abstract methods  Abstract methods are methods with no definition  If abstract methods have no definition, how can you use them?…

    • 546 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    C++ HW1 ANSWER

    • 993 Words
    • 4 Pages

    Initialize a variable number F that keeps a very large value (must be larger than those values of A, B, C, D, E)…

    • 993 Words
    • 4 Pages
    Good Essays