Exam 10: Classes and Object-Oriented Programming
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
In a UML diagram the first section holds the list of the class's methods.
(True/False)
4.8/5
(38)
Which method is automatically executed when an instance of a class is created in memory?
(Multiple Choice)
4.9/5
(29)
What type of method provides a safe way for code outside a class to retrieve the values of attributes,without exposing the attributes in a way that could allow them to be changed by code outside the method?
(Multiple Choice)
4.8/5
(35)
Which method is automatically called when you pass an object as an argument to the print function?
(Multiple Choice)
4.8/5
(42)
___________ programming is a method of writing software that centers on the actions that take place in a program.
(Short Answer)
5.0/5
(47)
A(n)__________ method in a class initializes an object's data attributes.
(Short Answer)
4.7/5
(37)
In ___________ programming,the programming is centered on objects that are created from abstract data types that encapsulate data and functions together.
(Short Answer)
4.9/5
(37)
A class __________ is a set of statements that defines a class's methods and data attributes.
(Short Answer)
4.8/5
(43)
Object-oriented programming allows us to hide the object's data attributes from code that is outside the object.
(True/False)
4.8/5
(38)
A(n)__________ is code that specifies the data attributes and methods for a particular type of object.
(Short Answer)
4.8/5
(31)
An object's __________ contains the values of the object's attributes at a given moment.
(Short Answer)
4.8/5
(41)
In object-oriented programming,one of first tasks of the programmer is to
(Multiple Choice)
4.8/5
(47)
Which of the following can be thought of as a self-contained unit that consists of data attributes and the methods that operate on the data attributes?
(Multiple Choice)
4.9/5
(33)
All instances of a class share the same values of the data attributes in the class.
(True/False)
4.8/5
(41)
What is the special name given to the method that returns a string containing an object's state?
(Multiple Choice)
4.9/5
(43)
An object is a stand-alone program but is used by programs that need its service.
(True/False)
4.8/5
(34)
Showing 21 - 38 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)