Lecture 9: Introduction to Computer Programming Flashcards

1
Q

How do humans and computers represent numbers?

A

Humans represent numbers through a base 10 system while computers represent them through a base 2/binary system

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

What is the overall process by which humans program computers?

A

Programming language –> compiler –> machine language
Human readable –> Translator –> Computer-readable

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

What is a compiler?

A

Translates human-readable code to a set of computer-readable instructions

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

Integrated Development Environment (IDE)

A

Provides an interface for running and debugging code. You can view variables, debug in real time, use autocomplete, access version control (e.g. Git), and more

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

Drawbacks of IDE

A

You can lose understanding of what’s happening behind the scenes and can offer too many confusing features

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

Code debugging

A

Correcting coding errors

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

Compile-time error

A

A typo in code

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

Run-time error

A

The code works but gives the wrong output

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