MIS 6382 - Object Oriented Programming in Python
Which of the following varieties of data items can be contained in the Python list?
- int - str - float
What is true about pip?
- it's a command-line tool - there are two different pip implementations, one for Python 2 and the other for Python 3
PyPI is often referred to as:
Cheese Shop
The concept in object-oriented programming that shows only the essential data to the client is _____.
Data hiding
In object-oriented programming, which one of the access specification is given to the class members so that it cannot be accessed by inherited classes?
Private
A namespace is:
a space in which names exist
The process of binding the data members and functions in a single unit is referred to as _____. In simple words, wrapping the data in one single unit. It is not used to show only the required information to the client.
Encapsulation
_____ is used to create a new sub-class from the parent class. Using it, the user can derive two or more classes from the parent class. This concept is not used to expose only the needed information to the client.
Inheritance
A(n) _____ exhibits the methods and properties defined by the class.
Object
Which of the following object-oriented programming feature is an example of method overloading functionality?
Polymorphism
A PWG-lead repository, collecting open-source Python code, is called:
PyPI
Which of the following commands will yo uuse to determine you pip version?
- pip version - pip -version - pip --version
What can you do to indicate that a module entity should be treated as private?
- you can mark the entity name with the __ (double underscore) prefix - you can mark the entity name with the _ (single underscore) prefix
Consider the below three statements about the class: Every class should have a name. Data is present in most of the classes, although this is not mandatory. Methods are present in most of the classes, although this is not mandatory.
All the above
If you want to import pi from math, which line will you use?
from math import pi
Which of the following statements is used to import all of the resources of the random module to use with the qualifier?
import random
Which of the following is true?
packages can contain modules
The name pip comes from:
pip installs packages
When you use pip to install a package that requires one or more dependencies, then:
pip will take care of everything by itself
Which if the following are called non-numeric data types?
str