
Intro to classes
Interactive Video
•
Computers
•
7th Grade
•
Practice Problem
•
Medium
John Streety
Used 4+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'init' function in a class?
To run the class
To initialize the class attributes
To delete the class
To print messages
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'self' keyword represent in a class?
The class itself
A global variable
A function
A local variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a function within a class?
By using a local variable
By using a global variable
By using the function name only
By using the class name and a period
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should you do if you encounter a 'missing argument' error?
Add the missing argument
Delete the function
Ignore the error
Restart the program
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'talk' function do in the class example?
It prints how many words Jimmy talks per day
It runs a race
It throws a ball
It initializes the class
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
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