Object Oriented Programming Flashcards

1
Q

What does asynchronous mean in programming?

A

An operation that runs independently of the main program flow, allowing multiple tasks to progress without waiting for one to finish first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is bytecode?

A

Low-level, platform-independent code that is executed by a virtual machine, typically produced by compiling source code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does it mean when a language is case sensitive?

A

It treats uppercase and lowercase letters as different characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a class in object-oriented programming?

A

A blueprint for creating objects, defining the properties (fields) and behaviors (methods) they will have.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a compiler?

A

A tool that translates high-level code into machine code or bytecode for the computer to execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is encapsulation?

A

Bundling data and related methods in a class and restricting direct access to some components to protect the integrity of the object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a field?

A

A variable that holds data within a class or object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is inheritance?

A

Creating a new class from an existing one, inheriting its properties and behaviors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does it mean to instantiate a class?

A

To create a specific object (instance) from a class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an interpreter?

A

A tool that executes code line-by-line instead of compiling it all at once.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a method in OOP?

A

A function defined inside a class that represents an action or behavior of an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an object?

A

A specific instance of a class with its own data and behaviors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a paradigm in programming?

A

A style or approach to programming, such as object-oriented, procedural, or functional.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is polymorphism?

A

The ability to treat different classes as if they are the same through a common interface or superclass.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is strong typing?

A

A system where each variable has a specific type, and type rules must be strictly followed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly