MC What happens when the __getattr__ method cannot locate an attribute name?

a) The __setattr__ method is called.
b) An exception is raised.
c) Python assigns a new attribute.
d) None of the above.


b) An exception is raised.

Computer Science & Information Technology

You might also like to view...

The intersection of a row and a table is called a cell.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

COGNITIVE ASSESSMENT You store all of your photographs on a website that uses a database to store the photos users post. What is this type of database called?

A. collaborative database B. group database C. social database D. visual database

Computer Science & Information Technology

The objective of _____ is to identify and eliminate execution errors that could cause a program to terminate abnormally, and logic errors that could have been missed during desk checking.

A. unit testing B. integration testing C. functional testing D. global testing

Computer Science & Information Technology

The ____ is the brain of the computer and the single most expensive piece of hardware in your personal computer.

A. MM B. ROM C. RAM D. CPU

Computer Science & Information Technology