Which of the following terms describes a group of objects with common properties?
Object Orientated Programming 3

Quiz
•
Computers
•
11th - 12th Grade
•
Easy
O Hawkridge
Used 3+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
function
event
class
parameter
Answer explanation
The term 'class' refers to a group of objects that share common properties or characteristics, making it the correct choice. In programming, a class defines a blueprint for creating objects with similar attributes and behaviors.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When a class is used to build an object, the object is called a(n) ___ of the class.
method
property
instance
object
Answer explanation
When a class is used to create an object, that object is referred to as an 'instance' of the class. This term signifies that the object is a specific realization of the class blueprint.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the term for the various characteristics of an object?
properties
instances
arguments
methods
Answer explanation
The term 'properties' refers to the various characteristics of an object, such as its attributes and behaviors. This distinguishes it from 'instances', 'arguments', and 'methods', which have different meanings in programming.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The actions that an object can perform are called ___.
arguments
parameters
methods
classes
Answer explanation
The actions that an object can perform are called methods. Methods define the behavior of an object in programming, allowing it to perform specific tasks or operations.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
I want to write a shape-drawing programme to draw lots of rectangles on screen. I start the programme with the following line of code:
rect = Rectangle()
Which of the following lines of code could I add to the programme to create another instance of the class Rectangle?
Rectangle() * 2
rect2 = Rectangle()
rect = Rectangle2()
rect = rect + Rectangle()
Answer explanation
The correct choice is 'rect2 = Rectangle()' because it creates a new instance of the Rectangle class. The other options either attempt invalid operations or reference a non-existent class.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a mechanism by which an object acquires the properties of another object?
Encapsulation
Abstraction
Inheritance
Polymorphism
Answer explanation
Inheritance is a mechanism in object-oriented programming where one class acquires the properties and behaviors of another class, allowing for code reuse and the creation of hierarchical relationships.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The wrapping up of data and functions into a single unit is called
overloading
class
object
encapsulation
Answer explanation
The wrapping up of data and functions into a single unit is called encapsulation. It is a fundamental concept in object-oriented programming that helps in bundling the data (attributes) and methods (functions) together.
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Object Orientation 2

Quiz
•
11th Grade
15 questions
Java Inheritance Quiz

Quiz
•
11th Grade
14 questions
CSA 1.1.1 Why Programming? Why Java?

Quiz
•
10th - 12th Grade
10 questions
3.2.2 Mouse Press Events and onAppStart Function

Quiz
•
11th Grade
10 questions
OOP 3 Encapsulation

Quiz
•
11th Grade
10 questions
Quarter 4 - LQ1 (Oracle Prog)

Quiz
•
12th Grade
14 questions
CMU Academy 1.2

Quiz
•
9th - 12th Grade
11 questions
Object Oriented Programming

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University