4. Explain the purpose and use of programming concepts Flashcards

1
Q

Arrey

A

A unique collection of variables that must be of the same type and are accessed using an index.

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

Function

A

A function is a piece of code that does one specific job

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

Methods

A

Classes also have methods, which are actions that the object can do. For example, a method can take input, generate output, and change data

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

Attributes

A

Depending on the programming language, an object can have its own attributes, or properties. For example, in JavaScript, an object is an entity with its own properties such as a cup.

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

Properties

A

Classes have properties, which are attributes that objects can have.

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

Variable

A

Identifier for a value that can change during program execution. Variables are usually declared with a particular data type.

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

Constants

A

A constant is like a container that holds values, but unlike a variable, constants never change—once they’re set, they’re set for good.

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