
Chapter 9 review
Authored by Adrian Ortiga
Science
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is my dog in the given code snippet?
my_dog = Dog('blacky', 2)
A method that initializes the dog object.
A variable representing the name of the dog.
An instance of the Dog class.
An attribute storing the dog's age.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access classes when importing an entire module?
Use the syntax module_name.class_name
Use the syntax class_name.module_name
You cannot import and entire module.
Use the syntax module_name -> class_name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a method in Python?
A built-in Python keyword used to define classes.
A data type that stores a collection of values.
A function that's part of a class.
A statement used to control the flow of execution in a program.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you only use one underscore before and after the method init()?
The method won't be called automatically when you use your class.
Nothing, everything will work OK.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you create multiple instances of a class in Python with the same arguments?
Only the last instance created will retain the attribute values.
Each instance will have its own unique memory address and separate attribute values.
The program will throw an error indicating duplicate instances.
Each instance will have the same memory address but separate attribute values.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What attributes are included in the Dog class?
class Dog:
def init(self, name, age):
self.name = name
self.age = age
def sit(self):
print(f'{self.name} is now sitting.')
def roll_over(self):
print(f'{self.name} rolled over!')
name and age
only name
only age
the class dog has no attributes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the attributes of an instance in Python?
By using the getattr() function (getattr(instance, 'attribute'))
By using square bracket notation (instance['attribute'])
By calling a method with the attribute name as an argument (instance.get_attribute('attribute'))
By using dot notation (instance.attribute)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
21 questions
9.1 Quiz: rotation and revolution
Quiz
•
8th - 11th Grade
21 questions
What is current?
Quiz
•
9th Grade
22 questions
SCIENCE FORM 2
Quiz
•
10th Grade
22 questions
Functions in RobotC
Quiz
•
7th - 11th Grade
23 questions
Covalent bonding
Quiz
•
9th - 11th Grade
25 questions
PHYSICAL SCIENCE Quiz
Quiz
•
12th Grade
23 questions
Ecotones and Biodiversity
Quiz
•
12th Grade - University
25 questions
Tree Growth and Functions
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Science
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
25 questions
Naming Ionic and Covalent Compounds
Quiz
•
9th Grade
14 questions
Natural Selection and Adaptation
Lesson
•
9th - 12th Grade
20 questions
Atomic Structure
Quiz
•
9th Grade
10 questions
Exploring the Ring of Fire: Volcanoes and Earthquakes
Interactive video
•
6th - 10th Grade
38 questions
Water Cycle and Groundwater
Quiz
•
9th - 12th Grade
10 questions
Exploring Spring and Neap Tides
Interactive video
•
6th - 10th Grade
15 questions
DNA and RNA review
Quiz
•
9th Grade