A) It builds and returns a string representation of an object's state.
B) It is used to determine if a class attribute is a string.
C) It is used to initiate string values during instantiation.
D) It converts a string attribute within a class.
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) inheritance
B) polymorphism
C) data encapsulation
D) data modeling
Correct Answer
verified
Multiple Choice
A) Class Diagraming Language
B) Programming Structural Language
C) Direct Modeling Language
D) Unified Modeling Language
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) Use an if-else statement to check if the load function is at the end of the file.
B) Use a nested loop to run the pickle.load function line by line.
C) Use a try-except statement to catch the exception and continue with the program.
D) Use the pickle.len() function to determine the size of the file, then pass the size to the pickle.load() function using the size key.
Correct Answer
verified
Multiple Choice
A) It divides the roles and responsibilities of the system between data management and user interface display.
B) It combines the roles and responsibilities of the system between data management and user interface display.
C) It involves the user in the defining of how data will be modeled by a program.
D) It involves the creation of a model GUI environment, and then involves the creation of views for the user to choose from.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) garbage collection
B) trash expunging
C) data dumping
D) tombstoning
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) You create a def statement with an asterisk, then specify math.__add__ as the method name.
B) You create a new class with the same name as the arithmetic class, and define the __add__ method.
C) You declare a new method with the same name, __add__, and define the method.
D) You create a Python script named __add__.py, and then define the new method in that script, then import it.
Correct Answer
verified
Multiple Choice
A) Polymorphism is the restricting of the manipulation of an object's state by external users to a set of method calls.
B) Polymorphism is allowing a class to automatically reuse and extend the code of a similar but more general class.
C) Polymorphism is the use of code that is capable of making changes to itself during the execution process.
D) Polymorphism is allowing the several different classes to use the same general method names.
Correct Answer
verified
Multiple Choice
A) root
B) object
C) parentClass
D) Main
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) A class variable is only visible to a single instance of a class.
B) A class variable is visible only to methods inside a class.
C) A class variable is visible to all instances of a class, but can vary from instance to instance.
D) A class variable is visible to all instances of a class, and does not vary from instance to instance.
Correct Answer
verified
Showing 1 - 20 of 50
Related Exams