4.3 Explain the use and purpose of programing concepts Flashcards

1
Q

Which of the following best defines a container?

A

It is a special type of identifier that can reference multiple values or elements.

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

What key role do functions play in both consistency and functionality?

A

They enable you to create segments of code that you will reuse.

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

What BEST describes the purpose of properties in object-oriented programming?

A

They allow external code to access a field of an object.

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

During program execution, a value changes and returns a new value to be used. Which type of identifier is this?

A

A variable

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

What BEST defines the AND condition?

A

If both conditions are TRUE, then the whole statement is TRUE.

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

What does “!=” mean in a logical test

A

that the two values do not equal each other

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

What accurately describes arrays?

A

Arrays can be either single-dimensional or multi-dimensional. An array is an identifier for a group of variables of the same type. The number of possible elements in an array is fixed when the array is declared.

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

In what situation would you use a vector?

A

To include a container that can grow or shrink in size as elements are added or removed

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

What BEST defines the XOR condition?

A

If either, but not both, condition is TRUE, then the whole statement is TRUE.

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

What BEST defines the OR condition?

A

If either condition is TRUE, then the whole statement is TRUE.

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

What BEST describes the purpose of attributes?

A

They are values and data types that define the object.

The attributes are stored within the object as fields or private variables.

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

What BEST describes the purpose of methods?

A

They define what you can do to an object.

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