Exam 1 : Review Flashcards

1
Q

What is a program?

A

A program is a SET OF INSTRUCTIONS that RECEIVES INPUT, PROCESS THE INPUT, and DELIVERS OUTPUT

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

List the three steps of computer programming

A

sequential
decision making
iterative

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

what are the steps to computer programming?

A
  1. designing
  2. writing
  3. debugging/troubleshooting
  4. validating
  5. maintaining
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

list the four variable types used in matlab

A

numeric
cell
character/text/ string
structured

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

difference b/w , and ;

A

, horizontal separator

; vertical separator

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

[] vs ()

A

[] array definition

() indicates index of elements

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

.* vs *

A

.* element by element multiplication

* straight multiplication

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

: does?

A

indicates a range of values

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

if vs else

A

if - executes statement if logical expression is true

else - option when “if statement” is false

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

clc vs clear

A

clc clears the command window

clear clears all variables

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

else versus elseif

A

IDK

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