Computer Science Flashcards

1
Q

The largest 32-bit integer is 2,147,483,647. Its binary representation has 31 1’s and 0 0s. What is the last bit used for?

A

Sign. (positive or negative)

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

How is 9 represented by a computer?

A

0b1001

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

What is a Turing Machine? What does “Turing Complete” mean?

A

Turing Machine:
- Machine that performs computations by reading and writing an infinite tape
- It can write, move left/right, or terminate exectution

Turing Complete:
- A machine that can compute anything a computer can
- Easiest to prove Turing Completeness by showing that a machine can do all actions that another Complete Turing machine can do..

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