• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Judgments

Programming Tech 2.Pdf

Document preview thumbnail
Preview 2 out of 5 pages

Judgement of 5 pages for the course Electrical Engineering at Electrical Engineering (PROGRAMMING TECH)

Content preview

UNIVERSITY OF SWAZILAND
FACULTY OF SCIENCE & ENGINEERING
DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

PROG~GTEC~QUEsrr


COURSE CODE - EE272

MAIN EXAMINATION
MAY 2013

DURATION OF THE EXAMINATION - 3 HOURS




INSTRUCTIONS TO CANDIDATES

(a/There are FIVE questions in this paper. Answer questions 1 & 2, and any other
TWO questions.

. (b) Each question carries equal marks.

(c) Show all your steps clearly in any calculations.

(d) State clearly any assumptions made.

(e) Start each new question on a fresh page.

, Question 1
(a) What is the difference between an object and a class? [5]

(b) Using an example, explain what is a access specifier? [4]

(c) What are constructors used for and how are they defined? [4]

• (d) The definition of classes should promote encapsulation. Explain. [2]

(e) Explain the difference between an actual parameter and a formal parameter? [3]

(f) How are overloaded methods distinguished from each other? [3]

(g) What is the difference between a static class member and an instance class
member? [2]

(h) Using an example, explain the difference between an object pointer and an object
reference. [2]

Question 2
(a) How does inheritance promote software reuse? [1]

(b) Why would a derived class override one or more of the methods in its base class?
[1]
(c) What is the role of an abstract class? [2]

(d) What is polymorphism? [3]

(e) How does inheritance support polymorphism? [3]

(f) How is overriding related to polymorphism? [4]

(g) Discuss how polymorphism makes software systems extensible and
maintainable? [5]

(h) In what ways might a thrown exception be handled? [3]

(i) What is object persistence and how is it accomplished in C++? [3]




2

Document information

Uploaded on
November 4, 2023
Number of pages
5
Written in
2023/2024
Type
Judgments
$5.90

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Studyabroad
3.7
(3)
Sold
73
Followers
29
Items
1989
Last sold
2 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions