Harvard CS50 Week 0 Notes Study Guide.
Harvard CS50 Week 0 Notes Study Guide. Problem Solving - CORRECT ANSWER What is computer science on a fundamental level? It is the process of taking some input (details about are problem) and generate some output (the solution). - CORRECT ANSWER What is Problem Solving in CS terms? The numbers 0-9. Once we count up past 9, we carry a 1 to the left and start at 0 again (i.e. the number "10") - CORRECT ANSWER What numbers are represented in the base 10 (otherwise known as decimal) system? Computers use a base 2 or binary system to represent numbers. Computers store 0s and 1s and when we try to count past 1, we carry the "1" to the left ("10" in a base 2 system represents the number 2) - CORRECT ANSWER What system do computers use? A bit (represented as either a 0 or 1) - CORRECT ANSWER What is a singular binary digit called when talking terms of computers? Because electricity is required for a computer to run, we can simply use 2 states (a switch that is ON and a switch that is OFF) to represent 2 numbers. Making a computer off of a base 10 system would be much more complicated. - CORRECT ANSWER Why were computers designed based off a base 2 system? 7 is the highest number you can represent. It is not 8, because when every switch is off (otherwise known as 000 in binary) you start off with the number "0". with 3 switches you can store up to 8 numbers, but only 7 "non-zero" numbers. The numbers you can store are: 000 (0), 001 (1), 010 (2), 011 (3), 100 (4), 101 (5), 110 (6), and 111 (7). - CORRECT ANSWER What is the highest number you can represent with 3 switches that can either be "ON" or "OFF"?
Document information
- Uploaded on
- May 26, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers