Object Oriented Programming Practice Test: Inbuilt Classes — Flashcards | Object Oriented Programming | FatSkills

Object Oriented Programming Practice Test: Inbuilt Classes — Flashcards

Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.

Quiz questions on inbuilt classes, IO and string class.

In object-oriented programming (OOP), a class is a blueprint for creating objects. Inbuilt classes are classes that are already provided in a programming language for use. These classes provide some functions or objects that can be used by the programmer for easier code. 

Here are some examples of classes in OOP:
Student class:
A class that has fields such as name, id, sec, and student_count.
Racing game: A game that has multiple bike and car models. Each model has common properties, such as color and number of wheels. 
In Python, you can use classes to create user-defined data structures. Classes define functions called methods, which identify the behaviors and actions that an object can perform with its data. 

Here are some other purposes of classes in OOP:
Real-world metaphors:
Classes can represent real-world objects, such as a house with doors.
Function names: Different classes can have functions with the same name.
Context: Different instances of the same class can carry their own state and context.

Related Test: Object Oriented Programming Practice Test: Classes

1 of 45 Ready
What is the use of IO class?
To handle all the input and output operations
Shortcuts
Prev Space Show / hide Next
Turn this into a study set.
Sign in with Google to save tricky questions to your reminder list and resume on any device.
Sign in with Google Free • no extra password