Lecture 5 Flashcards

1
Q

a collection data items of the same type

A

array

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

What is the size of an array that supports indices from 0 to 9?

A

The array size is 10, as it has indices ranging from 0 to 9

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

How are the indices of an array represented in memory?

A

Indices are represented as positions starting from 0 up to (size - 1).

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

What does each index in the array correspond to in memory?

A

Each index corresponds to a unique memory address and can store a specific value.

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

static variables

A

values retained between function calls

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

git status

A

n view the status of the changed files

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

git branch

A

You can check your current branch

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

git branch <new-branch></new-branch>

A

(from the current branch)

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

git switch <branch></branch>

A

move between branches

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