general stuff 2 Flashcards

1
Q

parameter

A

local variable th at stores an incoming argument

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

a. The scope of a parameter(local variable th at stores an incoming argument) is limited to the function which uses it.

A

True

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

b. When a function with default arguments is called and an argument is left out, all arguments that come after it must be left out as well

A

True

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

c. You cannot use the assignment operator to copy one array’s contents to another in a single statement

A

F matlab only

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

array

A

a sequence of items of the same type that are contiguously stored in memory

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

b. Parallel arrays

A

two or more arrays that have the same size where data match up based on index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Declare an array of 5 integers without providing a size declaration
A

Int Array [] = {1,2,3,4,5};

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

set rand timer to begin

A

srand(time(0))

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

random number

A

rand()%max

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