Programming 2012/13 Flashcards

1
Q

What is computation?

A

Computation is a general term for any type of information processing that can be represented mathematically (e.g. simple calculations, human thinking(?)).

In a more narrow meaning:
Computation is a process following a well defined model that is understood and can be expressed in an algorithm.

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

What is CompSci?

A

Applied Mathematics.
Research into what is computable.
Solving problems and optimization of solutions in time and space.

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

CompSci Subdisciplines:

A
  • Technical (Digital Circuits, Robots, Networks) - embodied approach
  • Practical (Algorithms, Data Structures, Programming)
  • Theoretical (Math, Formal Languages, Complexity)
  • Applied (Operating Systems, Applications, Web)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name of the first programmer?

A

Ada Lovelace

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

Name some parts of a von Neumann architecture!

A

Bus, CPU, RAM, ROM, HD, Monitor, Keyboard

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

Levels of abstraction in a computer:

A
Internet
Apps
Operating System
High-Level Language (compiled, interpreted)
Assembly
Machine Language
Logic Gates and Binary
FET (Field Effect Transistor)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

HW/SW

A

The distinction is irrelevant. Computer is build to transform one level of abstraction into another -> moving up and down on the levels of abstraction

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

Classes of computation:

A
  • digital vs. analog
  • sequential vs. parallel
  • batch vs. interactive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Name to interpreted programming languages!

A

C and C++

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

Name one interpreted language and a special case!

A
Python
Java (both compiled and interpreted)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Who is Boolean Logic named after?

A

George Boole

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

What does identity, tautology, contradiction and negation mean?

A

id taut contr neg
11 1 0 0
00 1 0 1

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

How can mathematics be defined?

A

It is the building of interesting systems. (our number system seems to be very interesting)

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

What does an axiom do?

A

It postulates what we require of a formal system (rules).

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

5 Axioms for natural numbers:

A
  1. 0 is a natural number.
  2. For every natural number n, S(n) is a natural number.
  3. For every natural number n, S(n) = 0 is false.
  4. For all natural numbers n and m, if S(n) = S(m), then m = n.
  5. If U is a set such that: 0 is in U, and for every natural number n, if n is in U, then S(n) is in U, then U contains every natural number.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What do digits represent in binary?

A

Every digit represents an increasing power of 2.

From right to left: 2^0, 2^1, 2^2

17
Q

What does the IPO Principle stand for?

A

Input -> Processing -> Output