CS Ramble — Set 1a - questions
These are the questions for set 1 of A Ramble Around CS.
Questions for set 1
- When you say
a = "Hello, world"in your favorite language, how is the string stored? How about"Hello, 世界"? - When you say
a = "Hello"andb = " world"and then doc = a + b, what happens? How area,b, andcstored? - When you say
a = 42, and thenb = a, and thenb = 17, what areaandb? Why? - When you say
a = {"foo": 42}, and thenb = a, and thenb.foo = 17, what areaandb? Why? - Why do computer people use “foo” and “bar” all the time? What’s up with that? What about 42 and 17?
We’ll start discussing how memory is laid out and used to represent numbers and text in the next part.