Chapter 10: Object Oriented Programming

Chapter 10: Object Oriented Programming

15 Qs

quiz-placeholder

Similar activities

Entity Relationship Diagrams

Entity Relationship Diagrams

KG - University

20 Qs

1) CSC186 Online Quiz Chapter 1

1) CSC186 Online Quiz Chapter 1

KG - University

10 Qs

CONNECTORS

CONNECTORS

5th Grade

10 Qs

Social Class

Social Class

KG - University

10 Qs

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma A

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma A

KG - University

13 Qs

CSB Checkpoint 1

CSB Checkpoint 1

12th Grade

10 Qs

Synergy quiz

Synergy quiz

KG - University

13 Qs

Quiz PBO persiapan UTS

Quiz PBO persiapan UTS

KG - University

10 Qs

Chapter 10: Object Oriented Programming

Chapter 10: Object Oriented Programming

Assessment

Quiz

others

Medium

Created by

Dottie Holland

Used 8+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 6 pts

In Python, a class is ___________ for a concrete object.
a blueprint
a distraction
an instance
a nuisance

2.

MULTIPLE CHOICE QUESTION

30 sec • 6 pts

class Dog: def __init__(self, name, age): self.name = name self.age = age The correct way to instantiate the above Dog class is:
Dog("Rufus", 3)
Dog.create("Rufus", 3)
Dog()
Dog.__init__("Rufus", 3)

3.

MULTIPLE CHOICE QUESTION

30 sec • 6 pts

Object and class attributes are accessed using ___________ notation in Python.
dash
indent
dot
slash

4.

MULTIPLE CHOICE QUESTION

30 sec • 6 pts

In Python, a function within a class definition is called a:
an operation
a method
a callable
a factory
a class function

5.

MULTIPLE CHOICE QUESTION

30 sec • 7 pts

Media Image
What concept of OOP is demonstrated by the 'Dog' and 'Cat' classes in the above code?
Encapsulation
Inheritance
Polymorphism
Abstraction

6.

MULTIPLE CHOICE QUESTION

30 sec • 7 pts

What is Object-Oriented Programming (OOP)?
A method of programming that uses procedures and functions.
A programming paradigm based on the concept of "objects".
A type of programming that focuses solely on data analysis.
A programming technique used only in web development.

7.

MULTIPLE CHOICE QUESTION

30 sec • 7 pts

What does a class represent in OOP?
A specific data type, like integers or strings.
A blueprint for creating objects.
A function inside an object.
A variable used in object methods.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?