Lectures 1-5 Flashcards

1
Q

What is the five step computer programming process

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
2
Q

What is programming?

A

Programming is a way of thinking about problem solving. It is not just writing down matlab commands

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

What is a computer program?

A

a set of instructions that performs a specified task by accepting input, processing it, and producing output. a program consists of source code and an excecutable

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

What are three basic constructs of programming?

A
  1. sequential construct
  2. decision making construct (conditional statements)
  3. Iterative construct (looping)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the rules of naming a variable?

A
  1. start with a letter
  2. any letter, number of underscore (no spaces or special characters)
  3. case sensitive
  4. avoid global variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
,
;
\:
[]
()
.
A

horizontal separator
vertical separator (also suppresses)
indicates an inclusive range of variables
defines the contents of an array
addresses specific contents of an array
when put before * / ^ performs element by element

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

What is good programming style?

A

header info
data input
data processing
data output

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