ADTs
5 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

  1. What are the two parts that compose an Abstract Data Type (ADT)?

The two parts that compose an ADT are the types of information, called attributes, that we need to maintain about the things, and the operations that we are allowed to use to access or modify that information.

  1. In a python class, what names do we call each of the parts mentioned in the previous question?

In a python class, we call the types of information (attributes) instance variables, and the operations methods.

  1. List two instance variables of the Turtle object.

Two instance variables of the Turtle object are position and heading.

  1. List two methods of the Turtle object.

<p>Two methods of the Turtle object are forward and backward.</p> Signup and view all the answers

  1. What does an import statement do?

<p>An import statement allows us to access the contents of a module.</p> Signup and view all the answers

More Like This

Abstract Data Types (ADTs) Quiz
141 questions
Abstract Data Types (ADTs) Fundamentals
14 questions
Abstract Data Types (ADTs) Quiz
16 questions

Abstract Data Types (ADTs) Quiz

TalentedMossAgate8009 avatar
TalentedMossAgate8009
Data Structures and ADTs Overview
16 questions
Use Quizgecko on...
Browser
Browser