CSC103 Homework 1 2017
--D. Thiebaut (talk) 20:14, 18 September 2017 (EDT)
The homework is on Moodle. This is just a list of the questions posted there.
- Question 1
- If you start counting in binary, 0, 1, 10, 11, etc, what is the binary number that will come right after 1011101?
- Question 2
- What is the binary number equal to the sum of 101110 plus 110110?
- Question 3
- What is the result of adding the following two binary numbers 11001 and 10110?
- Question 4
- Assume that you start counting in Base 5; 0, 1, 2, 3, 4, 10, 11, 12... What are the three logical numbers that follow 12?
- Question 5
- Our ice-cream fetching robot is at it again.
- You instruct it to go to the local store and pick *all* the pints of ice cream or sorbet that it can find, that match the following boolean expression: "Pick all the pints that (contain vanilla) or (contain fruit and chocolate)"
- The store contains the following number of pints of various kinds:
- 1 pint of chocolate ice cream
- 2 pints of vanilla swiss almond ice cream
- 4 pints of vanilla raspberry swirl
- 8 pints of chocolate raspberry ice cream
- 16 pints of mango sorbet
- 32 pints of vanilla-chocolate swirl
- How many pints will the robot bring back to you?
- Question 6
- Who are are the three scientists who influenced the design of computer hardware the most?