Lecture 5 Flashcards
1
Q
a collection data items of the same type
A
array
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
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).
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.
5
Q
static variables
A
values retained between function calls
6
Q
git status
A
n view the status of the changed files
7
Q
git branch
A
You can check your current branch
8
Q
git branch <new-branch></new-branch>
A
(from the current branch)
9
Q
git switch <branch></branch>
A
move between branches