Basics Flashcards

1
Q

Computer program

A

A series of instructions. A sequence of small commands, one after the other.

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

statements

A

what you write in the code. think of it like a sentence in english

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

does a computer understand python or java?

A

No, what machines really understand is called “machine code”

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

why don’t we write in machine code?

A

It’s too complex for anyone to really understand…too difficult.

It is 100% possible for humans to write machine code. But the process would take too long.

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

low level code vs. higher level code

what is more difficult?

A

generally speaking, the close that a programming language is to the MACHINE CODE, the more difficult it is to write

low level code = close to MACHINE CODE

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

assembly language

A

programming language that is very close to machine code

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

lower level language

A

close to machine code

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

higher level language

A

not close to machine code

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

how does higher level language differ from lower level language in terms of HARDWARE?

A

higher level languages such as javascript DO NOT worry about hardware. lower level languages such as C worry about optimizing the hardware.

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

rank lowest to highest level code

python, ruby, C++, C, JAVA, Javascript, C#

A

C, C++, JAVA/C#, Ruby/Python, Javascript

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

source code

A

the code you write that will later be turned into machine code

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

IDE

A

Integrated development environment

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

Integrated development environment

A

a program to write code. It’s basically like a text editor with a few hand features.

Xcode for the Mac, MS Visual studio, etc…

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

interpreted vs. compile language

A

interpreted is often a high level programming language

compiler is often low level

interpreted languages is code that is sent to your computer and processed on the spot in real time (Flash, javascript) whereas compiled language is stored on your computer for later use (Apps, etc..)

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

compiled language

pros

A
  • ready to run
  • often faster
  • code is private
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

compiled language

cons

A
  • not cross platform
  • inflexible
  • extra step
17
Q

interpreted language

pros

A
  • cross platform
  • simple to test
  • easier to debug
18
Q

interpreted language

cons

A
  • interpretation required
  • often slower
  • source code is public
19
Q

intermediate approach

A
  • a combination of compile language model and interpretation model
20
Q

compiled language

*example

A

C, C++, Objective C

21
Q

interpreted language

*example

A

PHP, Javascript, Flash

22
Q

intermediate language

example

A

Java, C#, Python, VB.NET