Chapter 2 - Part 1 Flashcards

1
Q

What is a bit?

A

A binary digit.

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

Where was the base-10 system invented, who improved it and when, and who brought the base-10 system to the West and in what century?

A

Developed in India, improved by Arabs in the 12th century, brought to the west by Fibonacci (Leonardo Pisano) in the 13th century.

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

What’s the name for the most common way to represent signed numbers in binary?

A

Two’s complement.

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

What is a floating point number a representation of and in what?

A

Real numbers in base-2.

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

Who designed the C programming language, and at what company?

A

Dennis Ritchie, Bell Labs

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

What does the value of a pointer indicate?

A

The location of some object in memory.

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

What does the type of a pointer indicate?

A

What kind of object is stored at the location (integer, floating point, etc.)

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

How many bits in a byte?

A

8

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

What is the range of a byte in binary, and then in decimal, and then in hex. How many unique values is that (in decimal)?

A

00000000 to 11111111, 0 to 255, 00 to FF

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

In C, how do you represent a number in hex (2 ways).

A

0x or 0X, such as 0xFF

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

Run the quiz hexbin program and input the score it gives you.

A

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