
Test 1 Classes and objects Spring 2023
Authored by Maria D'antone
Computers
11th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify the code that properly creates an instance of a class named Car.
camero.car(make, model)
tesla = car.make()
mustang = Car(make,model)
porsche = car.make.model()
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the keyword to create a class?
import
__int__
class
def
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a Python class?
A function to create an object.
A template (blueprint) for creating objects.
A procedure related to an object.
A process that repeats are directed.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many objects can be made from a class?
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What choice correctly defines a class called NFL_Player with attributes name and overall.
class NFL_Player:
def __init__(self, name, overall):
self.name = name
self.overall = name
class NFL_Player()
def __init__(self, name, overall):
self.name = name
self.overall = name
class NFL_Player:
def __init__(name, overall):
self.name = name
self.overall = name
class NFL_Player()
def __init__(name, overall):
self.name = name
self.overall = name
I don't know.....
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Why do we make variable or objects global?
So people on any part of the world can see it. Across the flat earth.
Its good practice.
They are temp and only exist inside the function or class that contains them. Therefore accessible anywhere.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify the code that properly creates an instance of a class named Car.
camero.car(make, model)
tesla = car.make()
mustang = Car(make,model)
porsche = car.make.model()
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
20 questions
CPA Prelims JY 2022
Quiz
•
8th Grade - Professio...
20 questions
Ch.8 - Introducing Python
Quiz
•
6th Grade - Professio...
27 questions
CDI - Electronic Components & Signals
Quiz
•
10th - 12th Grade
20 questions
CSS - Operating System
Quiz
•
11th Grade
20 questions
Module 21 - Local Area Networking 4
Quiz
•
9th - 12th Grade
20 questions
3D Design Exam
Quiz
•
11th Grade
20 questions
INFORMATIKA
Quiz
•
9th - 12th Grade
20 questions
Latihan Ujian Sekolah
Quiz
•
11th Grade
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