100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

INF1511 ASSIGNMENT 6 SEMESTER 1 2024 QUESTION AND SOLUTIONS

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
11-07-2024
Written in
2023/2024

INF1511 ASSIGNMENT 6 SEMESTER 1 2024 QUESTION AND SOLUTIONS DISTINCTION IS GUARANTEED

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
July 11, 2024
Number of pages
8
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

1. UNISA
2. 2024
3. INF1511-24-Y
4. Welcome Message 2024 WELCOME TO INF1511 Visual Programming 2024 - The
module will commence on MONDAY 4 March 2024. the module leader for 2024 is Dr
Kgopa and the secondary lecturer is Ms Naidoo..
5. Assessment 6



QUIZ

Assessment 6
Open course index
Back
Time left 0:09:20
Question 1
Answer saved
Marked out of 1.00

Flag question

Question text
The procedure of _____ allows different methods with the same name in different classes to
perform different tasks.
a.polymorphism
b.metamorphism
c.heteromorphism
d.monomorphism
Clear my choice

Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
The Python programming language provides an option for re-useable code in the form of
____
a.instances
b.objects
c.classes
d.orientations
Clear my choice

Question 3

, Answer saved
Marked out of 1.00

Flag question

Question text
Let A and B be objects of class Foo. Which functions are called when print(A + B) is
executed?
a.__str__(), __add__()
b.__str__(), __sum__()
c.__sum__(), __str__()
d.__add__(), __str__()
Clear my choice

Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
What is the output from the execution of the following code?

class triangle:
#setting default values
def __init__(self, x=10, y=10):
self.__base=x
self.__height=y
def calc(self):
area=0.5*self.base*self.height
return (area)
#create an instance
myBase=int(input('Please enter the base length : '))
myHeight=int(input('Please enter the height : '))
myTri=triangle(myBase, myHeight)
print(myTri.base)
print(myTri.height)
myTri.calc()
a.error message

Get to know the seller

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.
mabogwaneboitumelo724 Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
38
Member since
2 year
Number of followers
23
Documents
32
Last sold
11 months ago

3.5

4 reviews

5
2
4
0
3
1
2
0
1
1

Recently viewed by you

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

Frequently asked questions