Chapter 2 - Part 1 Flashcards
What is a bit?
A binary digit.
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?
Developed in India, improved by Arabs in the 12th century, brought to the west by Fibonacci (Leonardo Pisano) in the 13th century.
What’s the name for the most common way to represent signed numbers in binary?
Two’s complement.
What is a floating point number a representation of and in what?
Real numbers in base-2.
Who designed the C programming language, and at what company?
Dennis Ritchie, Bell Labs
What does the value of a pointer indicate?
The location of some object in memory.
What does the type of a pointer indicate?
What kind of object is stored at the location (integer, floating point, etc.)
How many bits in a byte?
8
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)?
00000000 to 11111111, 0 to 255, 00 to FF
In C, how do you represent a number in hex (2 ways).
0x or 0X, such as 0xFF
Run the quiz hexbin program and input the score it gives you.
…