Question: QUESTION 1 Adding a __call__ method to an class makes objects constructed by the class callable like functions. True or False? QUESTION 2 The first

QUESTION 1

Adding a __call__ method to an class makes objects constructed by the class callable like functions.

True or False?

QUESTION 2

The first argument in a python method inside an object is self. By convention, you call it called self, but you can call it anything you want.

True or False?

QUESTION 3

Python does not have global and nonlocal variables.

True or False?

QUESTION 4

Functional program most data is mutable.

True or False

QUESTION 5

What is not an object in Python?

number

string

function

all are objects

QUESTION 6

Magic methods start with a single _ in Python.

True or False

QUESTION 7

What programming approach has a tasked oriented approach with limited reuse of code>

Object Oriented

Functional

Imperative

Contract

QUESTION 8

An 10_000 is a valid number in Python.

True or False?

QUESTION 9

What is objects of different types can be accessed via same interface. .

Encapsulation

Inheritance

Composition

Polymorphism

QUESTION 10

Methods and properties with a name that starts with a single underscore such as _something are not private in python. By style, you should not change them since the style says they are private.

True or False?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!