Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Online test trouble
#1
Hi am trying to answer an online test for python and am not moving any step
any one wanna help please reply i send you the few questions
Reply
#2
Ask the questions here, question are not answered in private messages.
Reply
#3
1. Which of the following choices contains the terms that are most closely associated with Object Oriented Programming?
*Abstraction, Inheritance, Polymorphism, Functions
*Polymorphism, Methods, Encapsulation, Inheritance
*Encapsulation, Assignments, Polymorphism, Abstraction
*Methods, Assignments, Encapsulation, Abstraction

2.Consider the following statements.
*1 Class attributes are more suitable for sharing data across instances of a class as opposed to instance variables.
*2 Instance variables always point to a common location in memory regardless of which instance of a class is used to access them
*3 Abstraction cannot be utilized without Inheritance
*4 In order to enable access to instance variables, functions must have a “self” argument.
*5 Composition represents an “is-a” relationship between two entities.

Which combination of statements is true?

4, 3, 5, 1

1, 2, 3, 5

2, 3, 5, 4

5, 2, 4, 1

3. Which of the following scenarios depict true inheritance.
NB: -> represents the is a/an

*Vehicle -> Car -> Truck
*Pet -> Animal -> Dog
*Person -> Employee -> Manager
*User -> Admin -> Guest

4. Which of these is a valid interpretation of the expression foo = X()?
* Create an object foo of class X
* Assign variable foo an instance of X
* Set foo to an instance of X
*A and B
*A, B and C
5. The code class X(object): def __init__(self, J) can be interpreted as:
*Make a subclass X of class object that defines a constructor method that takes self and J as parameters
*Make a class X of object with a constructor method that has as parameters self and J
*Make a class X that inherits from an object class and has defined a constructor method that accepts as arguments the values of self and J
*All of the above
Reply
#4
We cant actually do you homework questions for you, that's cheating.
We can assist you in specific problems you are having.
Reply
#5
okay I will try do the homework alone though its hard for a newbie,, share the he tools that i will need to develop softwares with python
Reply
#6
(Dec-17-2016, 05:04 PM)Joseri Wrote: share the he tools that i will need to develop softwares with python

Well, there's python.  And a text editor.
Atom is pretty cool.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I'm having trouble with a test case using python kekersqueaker 1 4,750 Nov-05-2017, 12:13 AM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020