Quiz #1 Programming Language

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:24 AM on 5/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

What do you call an instance or creation of a class?

Object

2
New cards

What is Object-Oriented Programming (OOP)?

 A software development paradigm

3
New cards

This structure stores information about an object and defines its state:

Attribute

4
New cards

A method is best described as:

A function that performs a task

5
New cards

These are the two major concepts that OOP relies on:

Class and Object

6
New cards

Which benefit of OOP allows code to be used again without rewriting it?

Reusability

7
New cards

Which principle hides complex details and presents only the essential features?

Abstraction

8
New cards

The term meaning "many forms", which allows objects to have different behaviors depending on their type:

Polymorphism

9
New cards

What allows a new class to acquire properties and functions from an existing class?

Inheritance

10
New cards

Which OOP principle involves binding data and functions into a class to protect it?

Encapsulation

11
New cards

If you can easily add new features and classes to a system without changing existing code, it demonstrates:

Extensibility

12
New cards

In the example given, Grasshopper and Ant are subclasses that inherit features from which parent class?

Insect

13
New cards

Which principle helps improve maintainability by keeping data safe from outside interference?

Encapsulation

14
New cards

In the polymorphism example, what makes the function produce "Meow" for Cat and "Bark" for Dog?

The method is overridden

15
New cards

OOP encourages organization into discrete, self-contained units. This benefit is called:

Modularity

16
New cards

Inheritance allows code reusability and establishes class hierarchies? (true or false)

TRUE

17
New cards

Objects cannot interact with one another in OOP. (true or false)

FALSE

18
New cards

In encapsulation, private data can be accessed directly by any code outside the class. (true or false)

FALSE

19
New cards

Abstraction helps isolate the impact of changes made to the code. (true or false)

TRUE

20
New cards

Procedural programming and Object-oriented programming are exactly the same. (True or false)

FALSE