Cs50 under standing technology
exam 1
1- If, like me, you sometimes count using your fingers, odds are you can count
up to 5 things on one hand (using 5 fingers). But that's if you're using "unary"
notation, whereby you only have a single digit (pun intended) at your
disposal, a finger, which you can think of as a 1. Binary, by contrast, allows
you to use two digits, 0 and 1. How high could you count on one hand (with
5 fingers) using binary? Assume that a raised finger represents a 1 and a
lowered finger represents a 0.
Answer : 6
2- Recall that we looked at ASCII in lecture, which uses just 7 or 8 bits to
represent letters of the alphabet. Read up on "Unicode," as via Google, and
explain in your own words how Unicode is able to represent many more
symbols than can ASCII, which is particularly helpful for written languages
with many more characters than English.
Answer :
ASCII uses 7 bits or 8 bits in extended ASCII to
create a possible 127 different number letters
& symbols (uppercase letters, lower case
letters, numbers 0-9,
, Unicode is like ASCIIs (represents 127
character) but it's better than because it can
use more bits = more possibilities like 8,16,23
bits = about 2 million possibility.
3- 01000001 01101110 01110011 01110111 01100101 01110010
00100000 01101001 01110011 00100000 00110100 00110010
00101110
There's a way to make this meaningful; find it!
Answer : Answer is 42.
4- Describe at least one key difference, other than size/storage capacity,
between RAM and hard disk.
Answer : 1-The hard disk stores data permanently and keeps this data engraved in the
device’s memory until the user deletes it such as my files, games, applications, etc…
2- As for RAM, through its name (random memory), return, read, store information randomly.
The information that is stored manually can be controlled by e-mail and helps us access data
when searching for this information again, and it takes less time at a time, but this data
Temporary when you restart the computer again. For example: if it triggers UNITY data when
you do this when you run a faster running computer program ready the second time and then
restart the machine, it boots the machine by erasing the temporary data.
exam 1
1- If, like me, you sometimes count using your fingers, odds are you can count
up to 5 things on one hand (using 5 fingers). But that's if you're using "unary"
notation, whereby you only have a single digit (pun intended) at your
disposal, a finger, which you can think of as a 1. Binary, by contrast, allows
you to use two digits, 0 and 1. How high could you count on one hand (with
5 fingers) using binary? Assume that a raised finger represents a 1 and a
lowered finger represents a 0.
Answer : 6
2- Recall that we looked at ASCII in lecture, which uses just 7 or 8 bits to
represent letters of the alphabet. Read up on "Unicode," as via Google, and
explain in your own words how Unicode is able to represent many more
symbols than can ASCII, which is particularly helpful for written languages
with many more characters than English.
Answer :
ASCII uses 7 bits or 8 bits in extended ASCII to
create a possible 127 different number letters
& symbols (uppercase letters, lower case
letters, numbers 0-9,
, Unicode is like ASCIIs (represents 127
character) but it's better than because it can
use more bits = more possibilities like 8,16,23
bits = about 2 million possibility.
3- 01000001 01101110 01110011 01110111 01100101 01110010
00100000 01101001 01110011 00100000 00110100 00110010
00101110
There's a way to make this meaningful; find it!
Answer : Answer is 42.
4- Describe at least one key difference, other than size/storage capacity,
between RAM and hard disk.
Answer : 1-The hard disk stores data permanently and keeps this data engraved in the
device’s memory until the user deletes it such as my files, games, applications, etc…
2- As for RAM, through its name (random memory), return, read, store information randomly.
The information that is stored manually can be controlled by e-mail and helps us access data
when searching for this information again, and it takes less time at a time, but this data
Temporary when you restart the computer again. For example: if it triggers UNITY data when
you do this when you run a faster running computer program ready the second time and then
restart the machine, it boots the machine by erasing the temporary data.