Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

aken in class. Do not use any computer or an be answered in the exam booklet pro

ID: 3733126 • Letter: A

Question

aken in class. Do not use any computer or an be answered in the exam booklet provided. land in arked and with your name on each sheet. The queetioms are woth th ealeulatot. you e h pokets i. The information used to define how an object behaves is called t all papes wt w i. (10 points) Answer TRUE or FALSE representation. ii. A Python class method must always have at least one iii. The representation of an object should be invisible to users of tha parametet object iv. Procedural abstraction means explaining the details of how a func- tion performs its task. v. Each step of an algorithm is always mathematically precise. vi. The method call c = a.-sub-(b) does the same thing as c-T a-b. vii. Abstraction manages complexity by hiding implementation details ii Inheritance is a way to reuse the same code for different types of data. In a sequence diagram, when one object's method calls the method of another, an arrow is drawn between the lines of both objects. x. To combine separate shapes into a drawable object whose parts move together, the Layer class is used. T

Explanation / Answer

1) True
the behaviour of object is how a object works(or the functionality of the object) hence it is represented by the information provided

2) True
either some user define parameter or self

3) True
data abstraction and encapsulation ensure that only useful data is shown to the user all the complex implementation is hidding from the user

4) False
procedural abstraction ensure the function perform its task without allowing user how it do it

5) True
for a good algorithm it is essential that it will complete in finite time and for that each of its step should be precise

6) True
sample code:-
a=10
b=12
c = a.__sub__(b)
print(c)

7) True
Abstraction is feature that hide complexity of code from the user

8) True
Inheritence allow the feature of reusability of code of any type under a class name

9) True

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote