Early Programming and Intro to Compiling Flashcards

1
Q

What is the benefit of having multiple cores in a computer?

A

It allows you to do multiple calculations in parallel

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

At the most fundamental level, what do computers use to do calculations?

A

Binary: Computers work on electronic switches or series of electrical pulses.
Two states: ON is ‘1’ and OFF is ‘0’

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

What was computer programming like before the 1950s?

A

The programmer had to set ‘ON’ or ‘OFF’ manually (Punch cards, ENIAC vacuum tubes)

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

What technology was developed during the 1950s that made it so that programmers no longer had to work in binary?

A

Assembly Language

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

What is machine language?

A

Binary

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

What is assembly language?

A

Early programming language where common binary sequences were replaced with commands

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

What are High-Level languages?

A

Modern programming languages that aim to be human readable (ex. Java or C#)

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

What was the first programming language?

A

FORTRAN (1957)

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

What happens when you press play in a processing program?

A

The processing compiler turns it into a ‘real’ Java program. Then, the Java compiler translates it into Java Byte Code, which is then run by the Java Virtual Machine on the computer

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

What does a compiler do?

A

Takes a programming language and translates it into machine language

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

Why was the Java Virtual Machine invented?

A

Different computers speak different machine languages, we compile a program to run on some imaginary virtual machine. All existing Java programs can be run on any machine that has had a JVM made for it without having to be recompiled

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