1.2.4 Programming Languages Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a programming paradigm?

A

An approach to programming.

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

What is procedural programming?

A

Reusable Components : single instructions
Key Features: Built in data types and basic structures.
Instructions run in order

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

What is functional programming?

A

Building block: functions
Key features: All instructions contained in functions.
Program runs by running functions.

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

What is declarative programming?

A

Key features: User states the desired task or outcome.
The language works out the best way to deliver the outcome.

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

What is an object?

A

A repeatable piece of code with attributes and methods.

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

What is a class?

A

A template used to create objects.

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

What is an instance?

A

An object created from a class.

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

What is an attribute?

A

A value belonging to an instance.

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

What is a method?

A

A subroutine belonging to an instance.

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

What is inheritance?

A

One class taking attributes and methods from another.

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

What is a superclass?

A

A class that is inherited by another.

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

What is a subclass?

A

A class that inherits from another.

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

What is a public attribute?

A

A variable belonging to an object.Can be read and edited from anywhere in the code.

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

What is a Private attribute?

A

A variable belonging to an object. Can only be reader edited via a public procedure.

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